Puppet templates and facter facts hello world
I am writing this post as part of course Linuxin keskitetty hallinta held by Tero Karvinen. In this post I will write hello world module which use puppet templates and facter facts (ex. my hardware details).
See your computer details
When we run facter command, we will see our computer details. Read more: http://www.puppetcookbook.com/posts/list-facter-facts.html
Create new module
Create new view for hardware_details module:
The code in details.erb:
Create new directory:
Do next class in file modules/hardware_details/manifests/init.pp:
Run puppet module:
Test module
Last we verify that module works right:
My result:
Hardware model: x86_64
Kernel version: 3.2
Puppet version: 2.7.11
Ruby version: 1.8.7