Skip to content

Commit

Permalink
Merge pull request #613 from reidmv/add_puppet_server_fact
Browse files Browse the repository at this point in the history
Add puppet_server fact to return agent's server
  • Loading branch information
wilson208 authored Dec 20, 2016
2 parents 2894838 + f81ba54 commit 7fe6f07
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/facter/puppet_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@
end
end
end

Facter.add(:puppet_server) do
setcode do
Facter::Util::PuppetSettings.with_puppet do
Puppet[:server]
end
end
end

0 comments on commit 7fe6f07

Please sign in to comment.