Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
testing
puppet-icinga2_testing
Commits
8c759b26
Commit
8c759b26
authored
Dec 08, 2016
by
Markus Frosch
Browse files
autorole: Avoid problems with future parser
Facts are not comparable to integers, they are strings...
parent
403aef33
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/roles/autorole.pp
View file @
8c759b26
...
...
@@ -12,8 +12,10 @@ class icinga2_testing::roles::autorole
$repo_version
=
hiera
(
'icinga2_testing::profiles::repository::version'
)
if
$::icingatest_role
==
'master'
{
validate_integer
(
$::icingatest_hostno
)
include
::icinga2_testing::roles::master
if
$::icingatest_hostno
==
1
{
if
$::icingatest_hostno
==
'1'
or
$::icingatest_hostno
==
1
{
include
::icinga2_testing::roles::master_config
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment