Puppet Training Notes from Day 3.
By Jesse Morgan
Final notes from day 3:
- Using an External Node Classifier(ENC) is considered best practice over site.pp
- There is a “puppet visual index” that has useful examples
- You can use ~> and -> to chain dependencies to help make things more readable.
- If I can figure out how to integrate it, I could use LDAP inventory tags to indicate puppet classes
- Hiera can be used to extract out data from configs
- Once data is abstracted out, I can put them on github and puppetforge
- the config_version parameter can be used to control the format of the puppet version (using date command, for example)
- There is a style guide available for puppet- it’s what puppet-lint uses.
- there is a vim-puppet plugin on github, however it’s currently broken in apt on ubuntu
- syntastic may be worth checking into to make vim a better IDE
- I really need to reconfigure ctags for perl.
- I should use case default: { fail(“this ${module_name} isn’t supported here”)} for better errors on case statements
- ask.puppetlabs.comn is a great resource when IRC fails me.
- I can use rspec with puppet to do TDD. This sounds very promising.
- Certification is $200, however I get get a 25% discount. I should be able to pass this.
- If puppet dashboard is slow, clean out old reports.
- Consider signing up for the test pilot program.