Skip to content

Commit 5ea30a0

Browse files
authored
Merge pull request #244 from jcpunk/confdir
Add `confdir` to extlib__puppet_config
2 parents b90800e + 44ceafb commit 5ea30a0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/facter/extlib__puppet_config.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Facter.add(:extlib__puppet_config) do
44
setcode do
5-
puppet_config = {}
5+
puppet_config = {
6+
'confdir' => Puppet.settings['confdir'],
7+
}
68

79
desired_settings = {
810
master: %i[

spec/unit/facter/extlib__puppet_config_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
},
2424
'agent' => {
2525
'environment' => 'production'
26-
}
26+
},
27+
'confdir' => '/dev/null'
2728
}
2829
end
2930

0 commit comments

Comments
 (0)