git and code organization for managing your puppet code - puppetconf 2014

8
2014 Presented by Workshop: Git and Puppet Code Terri Haber Professional Services Engineer Puppet Labs [email protected] @baconqurlyq http://www.terrihaber.com

Upload: puppet-labs

Post on 24-May-2015

834 views

Category:

Technology


0 download

DESCRIPTION

Workshop: Git and Code Organization for Managing Your Puppet Code - Terri Haber, Puppet Labs

TRANSCRIPT

Page 1: Git and Code Organization for Managing Your Puppet Code - PuppetConf 2014

2014

Presented by

Workshop: Git and Puppet Code Terri Haber Professional Services Engineer Puppet Labs [email protected] @baconqurlyq http://www.terrihaber.com

Page 2: Git and Code Organization for Managing Your Puppet Code - PuppetConf 2014

Presented by

Workshop!• Simple GIT organization

• No workflow

Page 3: Git and Code Organization for Managing Your Puppet Code - PuppetConf 2014

Presented by

Yes, source control!• Puppet is infrastructure as code

• Easily roll back mistakes

• Integration with other tools

Page 4: Git and Code Organization for Managing Your Puppet Code - PuppetConf 2014

Presented by

F*%# yeah GIT!• Distributed VCS model

• Very popular

• Used by Puppet Labs

Page 5: Git and Code Organization for Managing Your Puppet Code - PuppetConf 2014

Presented by

One repo per module!• Treat each module as its own project

• Less confusion

• Exception: r10k control repo

Page 6: Git and Code Organization for Managing Your Puppet Code - PuppetConf 2014

Presented by

Automate simple testing• STOP!

• pre-commit is nice

• post-receive is better

• puppet and puppet-lint

Page 7: Git and Code Organization for Managing Your Puppet Code - PuppetConf 2014

Presented by

Questions?

Page 8: Git and Code Organization for Managing Your Puppet Code - PuppetConf 2014

Presented by

Thank you!https://github.com/terrimonster/gitworkshop

[email protected]

@baconqurlyq

http://www.terrihaber.com