Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

How Hudson hit Puppet with a Cucumber

30.396 Aufrufe

Veröffentlicht am

What sysadmins can learn from developer practices. Use Cucumber a Behavior Driven Test tool to test your puppet recipes. And automate it with CI tool Hudson.

Talks was given at UKUUG by Julian Simpson (http://www.builddoctor.com) and Patrick Debois (http://jedi.be/blog)

Veröffentlicht in: Technologie

How Hudson hit Puppet with a Cucumber

  1. Hudson, Puppet, Cucumber Patrick Debois Julian Simpson 23-25 March 2010 http://www.ukuug.org/ Thursday 25 March 2010
  2. Patrick: Belgian http://www.flickr.com/photos/bookeditor/ Thursday 25 March 2010
  3. Julian: New Zealand http://www.flickr.com/photos/glutnix/ Thursday 25 March 2010
  4. A story about an IT company not so far away http://www.flickr.com/photos/timmygunz/213619310/sizes/l/ Thursday 25 March 2010
  5. Meet the manager http://www.flickr.com/photos/thomashawk/31562846/sizes/l/ Thursday 25 March 2010
  6. Project Managers http://www.flickr.com/photos/praziquantel/32023792/sizes/o/ Thursday 25 March 2010
  7. Rock-Star developers http://www.flickr.com/photos/mikeygottawa/400926090/sizes/o/ Thursday 25 March 2010
  8. Rock-Star sysadmins http://www.flickr.com/photos/auntylaurie/2486555769/sizes/l/ Thursday 25 March 2010
  9. Stubborn guys from operations Thursday 25 March 2010
  10. Typical chain of command http://www.flickr.com/photos/keepwaddling1/3088388506/sizes/l/ Thursday 25 March 2010
  11. Ops and Sysadmins usually get along http://www.flickr.com/photos/anjibarton/3115066604/sizes/l/ Thursday 25 March 2010
  12. But devs and sysadmins often debate about ‘quality’ http://www.flickr.com/photos/charles_nouyrit/3102079345/sizes/o/ Thursday 25 March 2010
  13. Devs:“You should be able to make changes faster in production” http://www.flickr.com/photos/poenaru/1304953088/sizes/o/ Thursday 25 March 2010
  14. Sysadmins: “You should Test More” http://www.flickr.com/photos/cenz/15108117/sizes/o/ Thursday 25 March 2010
  15. Usually results in .... Fight! http://www.flickr.com/photos/timmygunz/213619310/sizes/l/ Thursday 25 March 2010
  16. Then the managers created silos http://www.flickr.com/photos/bulldogsrule/35701005/sizes/o/ Thursday 25 March 2010
  17. Now only some deploys get through http://www.flickr.com/photos/elsie/3577264876/sizes/l/ Thursday 25 March 2010
  18. But over time developers evolved Thursday 25 March 2010
  19. They looked on the internet http://www.flickr.com/photos/gigijin/2400999295/sizes/o/ Thursday 25 March 2010
  20. Found new ways to automate the tests TDD, BDD http://www.flickr.com/photos/dvorscak/498914813/sizes/l/ Thursday 25 March 2010
  21. New ways of automating delivery http://www.flickr.com/photos/eiriknewth/282275178/sizes/l/ Thursday 25 March 2010
  22. Solved their focus problem Thursday 25 March 2010
  23. Kept operations on a leash http://www.flickr.com/photos/squeakywheel/264379350/ Thursday 25 March 2010
  24. And what about the sysadmins? http://www.flickr.com/photos/24443965@N08/2893354732/sizes/o/ Thursday 25 March 2010
  25. Whenever a customer wanted some new server http://www.flickr.com/photos/31525296@N06/2951515346/sizes/o/ Thursday 25 March 2010
  26. They would go off and do their manual installs http://www.flickr.com/photos/maistora/485092742/sizes/l/ Thursday 25 March 2010
  27. Even in terrible conditions http://www.flickr.com/photos/brianatwebbmoto/3096643650/sizes/l/ Thursday 25 March 2010
  28. Just like their role models http://www.flickr.com/photos/eelcoc/809648617/sizes/l/ http://www.flickr.com/photos/fmpgoh/4123201107/ http://www.flickr.com/photos/s9500/2490150854/sizes/l/ Thursday 25 March 2010
  29. Then they started to use kickstarts http://www.flickr.com/photos/alanhogan/3094280494/sizes/o/ Thursday 25 March 2010
  30. Automated it with ‘ugly’ custom scripting http://www.flickr.com/photos/donpezzano/2061429048/sizes/o/ Thursday 25 March 2010
  31. config mgt v1 = Lcfg, CFEngine http://www.flickr.com/photos/extraketchup/408727662/sizes/o/ Thursday 25 March 2010
  32. What’s a DSL? http://strongdogz.com/wp-content/uploads/2009/11/dog-1.png Thursday 25 March 2010
  33. Puppet is a DSL for systems administration http://www.flickr.com/photos/schockwellenreiter/2184781281/sizes/l/ http://reductivelabs.com/products/puppet/ Thursday 25 March 2010
  34. # verify owner & permissions class base_etc {     file { "/etc/passwd": owner => root, group => root, mode => 644}     file { "/etc/sudoers": owner => root, group => root, mode => 440} }   # install apache class apache2 {     # using the local package manager, install the reqd pkg     package { "apache2": ensure => installed }       service { "apache2":         ensure => running,         hasstatus => true,         hasrestart => true,         require => Package["apache2"],     } }     # default node is applied by _all_ connecting puppet clients node default {     include base_etc }   # specific config for host www01 node www01 {     # load the corresponding class defined above     include apache2 }   Example Puppet Recipe Read more: http://www.agileweboperations.com/configuration-management-introduction-to-puppet/#ixzz0iyVDqF89 http://www.flickr.com/photos/paguma/4282178983/ Thursday 25 March 2010
  35. Config Management is evolving Sysadmin Puppet Chef http://www.opscode.com/chef/ http://www.flickr.com/photos/pmtorrone/65245861/sizes/l/ Thursday 25 March 2010
  36. Deploy new systems more often, faster and better reproducible http://www.flickr.com/photos/deannas_pics/3071841122/sizes/l Thursday 25 March 2010
  37. Models http://www.flickr.com/photos/keirmoffatt/35306073/sizes/o/ http://www.flickr.com/photos/xjy/2269150356/sizes/o/ convergence congruence making systems rebuild the similar over time whole node http://resources.metapress.com/pdf-preview.axd?code=yuce6e26a51dx9nh&size=largest http://www.infrastructures.org/papers/turing/turing.html Thursday 25 March 2010
  38. Provisioning Different Environments Test Dev Production http://www.flickr.com/photos/idan586/3570542251/sizes/l/ http://www.flickr.com/photos/richtpt/2173590295/sizes/l/ Thursday 25 March 2010
  39. Becoming agile http://www.pet-dog-cat-supply-store.com/shop/shop_image/product/ad41a25245cbb895fbfbc950b1a0a3f5.jpg Thursday 25 March 2010
  40. Cloud for testing configuration systems http://www.flickr.com/photos/stopbeingcarbon/231737755/sizes/o/ Thursday 25 March 2010
  41. Sysadmins should look at problems from a development perspective http://www.flickr.com/photos/utherpendragonsphotos/14010402/sizes/o/ Thursday 25 March 2010
  42. Devs should view it from operational point of view Thursday 25 March 2010
  43. Infrastructure is becoming code http://www.flickr.com/photos/briandewitt/534143047/sizes/o/ Thursday 25 March 2010
  44. So I’m a programmer now? http://c0424311.cdn.cloudfiles.rackspacecloud.com/perfect-pet.jpg Thursday 25 March 2010
  45. If you’re a programmer, be a good one http://www.flickr.com/photos/zippy/199990105/sizes/l/ Thursday 25 March 2010
  46. Version your scripts http://www.flickr.com/photos/thelifeofshannon/385604955/sizes/o/ Thursday 25 March 2010
  47. Use a repository http://www.flickr.com/photos/jeffreygutermanflickr/2674219854/ Thursday 25 March 2010
  48. Testing http://www.flickr.com/photos/ideonexus/2897085942/sizes/l/ Thursday 25 March 2010
  49. You might like http://cukes.info/ http://www.flickr.com/photos/the_harry_philes/217927389/sizes/l/ Thursday 25 March 2010
  50. Results Thursday 25 March 2010
  51. Gherkin http://www.flickr.com/photos/lawriecate/2543688459/ Thursday 25 March 2010
  52. Validating Apache config Thursday 25 March 2010
  53. Mail Scenarios Test Test Test http://github.com/albanpeignier/tryphon-puppet Thursday 25 March 2010
  54. Mail Step definitions http://www.flickr.com/photos/sziliotti/3787189858/sizes/o/ Thursday 25 March 2010
  55. Testing will make the pains visible http://www.flickr.com/photos/-konayuki-/3986635994/sizes/l/ Thursday 25 March 2010
  56. Things will get dirty http://www.flickr.com/photos/schneelocke/467551426/sizes/l/ Thursday 25 March 2010
  57. It requires a strong stomach to keep it up http://www.flickr.com/photos/82213449@N00/68608360/sizes/o/ Thursday 25 March 2010
  58. Extra bonus : Cucumber-Nagios $ cucumber-nagios ukuug.feature critical: 0, warning: 0, 2 okay | passed=2, failed=0 http://auxesis.github.com/cucumber-nagios/ http://www.flickr.com/photos/showbizsuperstar/4033321314/sizes/l/ Thursday 25 March 2010
  59. Keep an overview on your changes Thursday 25 March 2010
  60. Don’t change your infrastructure all at once http://www.flickr.com/photos/sugarpond/2851411809/sizes/l/ Thursday 25 March 2010
  61. One piece at a time http://www.flickr.com/photos/lumpy_golightly/3479956609/sizes/l/ Thursday 25 March 2010
  62. It’s still a human process http://www.flickr.com/photos/shehal/2725353884/sizes/l/ Thursday 25 March 2010
  63. Tools help Story! http://www.flickr.com/photos/cvr/2914455499/ Thursday 25 March 2010
  64. Hudson facilitates the process http://hudson-ci.org/ http://www.flickr.com/photos/clofresh/3384877145/ Thursday 25 March 2010
  65. provisions Puppet invokes Puppet manifests = are tested Hudson OS runs tests Cucumber http://www.flickr.com/photos/tupwanders/89267092/sizes/l/ Thursday 25 March 2010
  66. Tools are only a means to an end http://images0.cafepress.com/product/36081430v1_225x225_Front.jpg Thursday 25 March 2010
  67. Devs and Ops working together http://www.flickr.com/photos/42614915@N00/104222743/sizes/o/ Thursday 25 March 2010
  68. Ops-Ops working together Network Operating System Database Thursday 25 March 2010
  69. It’s about the business http://www.phantompub.com/images/CDPanel_Page_1.jpg Thursday 25 March 2010
  70. Devops: a bit of everything business developers sysadmins http://www.flickr.com/photos/stephenpoff/2852616498/sizes/l/ Thursday 25 March 2010
  71. http://www.devopsdays.org/ http://planet.devops.info/ http://www.devops.info/ #devops - twitter #infra-talk - irc agile-system-administration - googlegroups Puppetcamp Europe 2010 : Ghent, Belgium , on 27&28 May, 2010 Devopsdays US: Mountain View, California, US on Friday, June 25, 2010 Devopsdays Europe coming somewhere in October/November Thursday 25 March 2010
  72. Questions? http://www.flickr.com/photos/rosslittle/161718033/sizes/l/ Thursday 25 March 2010
  73. Thank you! Patrick Debois @patrickdebois patrick.debois@jedi.be http://jedi.be/blog Julian Simpson simpsonjulian@gmail.com @builddoctor http://www.build-doctor.com http://www.flickr.com/photos/caliope-olga/4247576011/sizes/o/ Thursday 25 March 2010

×