Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395244
puppet_config.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
622 B
Subscribers
None
puppet_config.rb
View Options
desired_settings
=
{
master
:
[
:localcacert
,
:ssldir
]
,
main
:
[
:hostpubkey
,
:hostprivkey
,
:hostcert
,
:localcacert
,
:ssldir
,
:vardir
,
:server
]
}
Facter
.
add
(
:puppet_config
)
do
puppet_config
=
{}
setcode
do
desired_settings
.
each_pair
do
|
section
,
settings
|
settings
.
each
do
|
setting
|
puppet_config
[
section
.
to_s
]
=
{}
unless
puppet_config
.
key?
(
section
.
to_s
)
puppet_config
[
section
.
to_s
][
setting
.
to_s
]
=
Puppet
.
settings
.
values
(
Puppet
[
:environment
].
to_sym
,
section
)
.
interpolate
(
setting
)
end
end
puppet_config
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 7:36 PM (10 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3372893
Attached To
rSPEXTL puppet-extlib
Event Timeline
Log In to Comment