Added fact for puppet_* enviroment variables
This commit is contained in:
parent
760dc96f06
commit
2ec895cf92
1 changed files with 8 additions and 0 deletions
8
custom/lib/facter/environment.rb
Normal file
8
custom/lib/facter/environment.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
ENV.each do |k,v|
|
||||
next if not k.downcase.start_with?("puppet_")
|
||||
Facter.add("env_#{k.downcase}".to_sym) do
|
||||
setcode do
|
||||
v
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue