Skip to content

Commit

Permalink
Merge pull request #244 from jcpunk/confdir
Browse files Browse the repository at this point in the history
Add `confdir` to extlib__puppet_config
  • Loading branch information
jcpunk authored Feb 13, 2025
2 parents b90800e + 44ceafb commit 5ea30a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/facter/extlib__puppet_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

Facter.add(:extlib__puppet_config) do
setcode do
puppet_config = {}
puppet_config = {
'confdir' => Puppet.settings['confdir'],
}

desired_settings = {
master: %i[
Expand Down
3 changes: 2 additions & 1 deletion spec/unit/facter/extlib__puppet_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
'agent' => {
'environment' => 'production'
}
},
'confdir' => '/dev/null'
}
end

Expand Down

0 comments on commit 5ea30a0

Please sign in to comment.