Your SlideShare is downloading. ×
Little Puppet Tools To Make Your Life Better
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Little Puppet Tools To Make Your Life Better

140
views

Published on

A short talk I gave at the first Puppet User Group in London about three tools I made to make my Puppet life easier: …

A short talk I gave at the first Puppet User Group in London about three tools I made to make my Puppet life easier:

* puppet-install-shell
* vagrant-puppet-install
* puppet-doc-lint

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
140
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. LittlePuppetToolsToMakeYour LifeBetter!
  • 2. Bithyperbolic...
  • 3. SomethingsImadethathelpme! Hopefully they can help you too!
  • 4. Me Developer turned ops guy Working at Kainos, contracting on Government Projects
  • 5. PreviouslyontheIERproject Now live! https://www.gov.uk/register-to-vote
  • 6. Now on the DEFRA CAPD project
  • 7. Sofirstup!
  • 8. puppet-install-shell https://github.com/petems/puppet- install-shell
  • 9. · Shell (not bash!) script · Installs Puppet on (most!) Unix flavour machines · Plan to support all platforms officially supported by Puppet (https:// docs.puppetlabs.com/guides/platforms.html) · Currently supports EL, Fedora, Debian, Ubuntu, OSX and Arch!
  • 10. Amixofvariousprovisioner scriptsIfoundaroundthe Internet
  • 11. Alotof test -f
  • 12. machine=`uname -m` os=`uname -s` if test -f "/etc/lsb-release" && grep -q DISTRIB_ID /etc/lsb-release; then platform=`grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr '[A-Z]' '[a-z]'` platform_version=`grep DISTRIB_RELEASE /etc/lsb-release | cut -d "=" -f 2`
  • 13. Quickonesteptogetpuppet installedonamachine:
  • 14. curl https://raw.github.com/petems/ puppet-install-shell/master/ install_puppet.sh | sudo sh
  • 15. LiveDemoWarning!
  • 16. Itsmainusewasforanother tool:
  • 17. vagrant-puppet-install
  • 18. Well,makingisastrongterm...
  • 19. Tookovermaintenanceof!
  • 20. Easywaytoprovisionservers createdwithVagrant
  • 21. WorkswithVagrantCloud Providerstoo!
  • 22. Vagrant.configure("2") do |config| config.vm.define :ubuntu do |ubuntu| ubuntu.puppet_install.puppet_version = '3.6.1' ubuntu.vm.box = "puppetlabs/ubuntu-14.04-64-nocm" ubuntu.vm.provision :puppet do |puppet| puppet.manifests_path = File.expand_path('../../../support/manifests', __FILE__) puppet.manifest_file = "base.pp" end ubuntu.vm.provision "shell", inline: "puppet --version" end
  • 23. Niceandsimple... · Checks the version you've defined is valid (from RubyGems.org...) · Rsyncs or downloads a script that installs puppet (uses puppet-install-shell script by default!) · Standard error handling and catching · Windows support soon!
  • 24. LiveDemoWarning!
  • 25. Andfinally
  • 26. Puppet-doc-lint · Tool for module maintainers · Looks through your Puppet documentation and shows when you have undocumented parameters · Or documentation on parameters that are now missing
  • 27. Currentstatus:Verybrittle! · New syntax breaks it! · A few false positives · A few false negatives...
  • 28. Butpeopleareusingit (woo!) Well,afew...
  • 29. @electrical (Richard Pijnenburg) is my current ginea pig! He's been using it for logstash Puppet module It's helped him, so it's helped at least 1 person! :)
  • 30. LiveDemoWarning!
  • 31. That'sit!
  • 32. Q&A