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
f7107a02
Commit
f7107a02
authored
Dec 09, 2016
by
Markus Frosch
Browse files
For rubocop
parent
07d5b15d
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/facter/icingatest.rb
View file @
f7107a02
...
...
@@ -16,22 +16,22 @@ if domain == 'vagrant.icinga.org'
end
if
hostname
=~
/^icinga-test-(.+)$/
fragment
=
$1
fragment
=
Regexp
.
last_match
(
1
)
if
fragment
=~
/^(\w+-\w+)-([a-z]+)(\d+)$/i
Facter
.
add
(
:icingatest_instance
)
do
setcode
do
$1
Regexp
.
last_match
(
1
)
end
end
Facter
.
add
(
:icingatest_role
)
do
setcode
do
$2
Regexp
.
last_match
(
2
)
end
end
Facter
.
add
(
:icingatest_hostno
)
do
setcode
do
$3
Regexp
.
last_match
(
3
)
end
end
end
...
...
Write
Preview
Markdown
is supported
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