Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

20
Puppet on Windows: Now You’re Getting Chocolatey! Rob Reynolds Software Engineer | Puppet Labs [email protected] @ferventcoder Friday, August 23, 13

description

 

Transcript of Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

Page 1: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

Puppet on Windows: Now You’re Getting Chocolatey!Rob ReynoldsSoftware Engineer | Puppet [email protected]@ferventcoder

Friday, August 23, 13

Page 2: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Who am I?

•Developer at Puppet Labs / started July 1

•Creator of Chocolatey

•DevOps interest for 2+ yrs or 7+ yrs

•Long time .NET Dev

•Learning Ruby

•Also still learning Puppet

Friday, August 23, 13

Page 3: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Why are you here?

Friday, August 23, 13

Page 4: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Is it...

Friday, August 23, 13

Page 5: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Is it...

Friday, August 23, 13

Page 6: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Or is it...

?

Friday, August 23, 13

Page 7: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Welcome!

Friday, August 23, 13

Page 8: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

What is Chocolatey?

•Package manager for Windows

•Kind of like yum or apt-get, but for Windows

•Package provider for Puppet on Windows

Friday, August 23, 13

Page 9: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Where does it fit into Puppet?

•Chocolatey (choco) has a package provider

•Module on forge (rismoney/chocolatey)

Friday, August 23, 13

Page 10: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Use the built in windows package provider?

Friday, August 23, 13

Page 11: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Does this replace built in Windows pkg provider?

•Official answer at this time: no

•Unofficial answer at this time: no

•Built in provider requires no addtl setup

•Choco requires PowerShell 2+ and .NET Framework 4.0

Friday, August 23, 13

Page 12: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Why would I use Chocolatey provider then?

•Versionable / Upgradeable

•Community / Packaging Provider Focus

•Packaging is simple

•Most Windows come w/PowerShell 2, so all you need is .NET 4.0

Friday, August 23, 13

Page 13: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Future of Chocolatey on Puppet

•This is still an open discussion

•Chocolatey will continually evolve

•Security / trust focus

Friday, August 23, 13

Page 14: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Anatomy of a provider

Friday, August 23, 13

Page 15: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Build Packages?

Friday, August 23, 13

Page 16: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Text

Friday, August 23, 13

Page 17: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

ChocolateyInstall.ps1

Friday, August 23, 13

Page 18: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

DEMO

Friday, August 23, 13

Page 19: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

Vagrant FTW?!•Installed .Net 4.0 / Chocolatey•Installed Puppet & Modules•Used chocolatey provider to install git, posh-git and putty•Updated git to latest version

Friday, August 23, 13

Page 20: Puppet on Windows: Now You're Getting Chocolatey PuppetConf2013

puppetconf.com #puppetconf

[email protected]@ferventcoder

Friday, August 23, 13