Guest User

Untitled

a guest
Jul 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ######## the fact file -> /etc/puppet/modules/custom/lib/facter/year_month.rb
  2.  
  3. # hardware_platform.rb
  4.  
  5. Facter.add("hardware_platformz") do
  6. setcode do
  7. %x{/bin/uname -i}.chomp
  8. end
  9. end
  10.  
  11. ######## Added to puppet
  12.  
  13. confpluginsync = true
  14. #factpath = $vardir/lib/facter
  15. factpath = /etc/puppet/modules/custom/lib/facter
  16.  
  17. ######## Tried:
  18.  
  19. # facter |grep hardw
  20. hardwareisa => x86_64
  21. hardwaremodel => x86_64
Add Comment
Please, Sign In to add comment