Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394747
icinga2_attributes.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
781 B
Subscribers
None
icinga2_attributes.rb
View Options
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'../../..'
,
'puppet_x/icinga2/utils.rb'
)
module
Puppet::Parser::Functions
newfunction
(
:icinga2_attributes
,
:type
=>
:rvalue
)
do
|
args
|
raise
Puppet
::
ParseError
,
'icinga2_atributes(): Must provide at least one argument.'
if
args
.
length
>
4
||
args
.
length
<
1
if
args
[
1
]
indent
=
args
[
1
]
else
indent
=
0
end
if
args
[
2
]
globals
=
args
[
2
].
concat
(
lookupvar
(
'::icinga2::params::globals'
))
else
globals
=
lookupvar
(
'::icinga2::params::globals'
)
end
if
args
[
3
]
constants
=
args
[
3
].
merge
(
lookupvar
(
'::icinga2::_constants'
))
else
constants
=
lookupvar
(
'::icinga2::_constants'
)
end
Puppet
::
Icinga2
::
Utils
.
attributes
(
args
[
0
]
,
globals
,
constants
,
indent
)
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:29 PM (9 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399191
Attached To
rSPICI Icinga 2 Puppet Module
Event Timeline
Log In to Comment