Commit 8c759b26 authored by Markus Frosch's avatar Markus Frosch 📣
Browse files

autorole: Avoid problems with future parser

Facts are not comparable to integers, they are strings...
parent 403aef33
...@@ -12,8 +12,10 @@ class icinga2_testing::roles::autorole ...@@ -12,8 +12,10 @@ class icinga2_testing::roles::autorole
$repo_version = hiera('icinga2_testing::profiles::repository::version') $repo_version = hiera('icinga2_testing::profiles::repository::version')
if $::icingatest_role == 'master' { if $::icingatest_role == 'master' {
validate_integer($::icingatest_hostno)
include ::icinga2_testing::roles::master include ::icinga2_testing::roles::master
if $::icingatest_hostno == 1 { if $::icingatest_hostno == '1' or $::icingatest_hostno == 1 {
include ::icinga2_testing::roles::master_config include ::icinga2_testing::roles::master_config
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment