Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf
-
Upload
paul-stack -
Category
Technology
-
view
2.569 -
download
0
Transcript of Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf
![Page 1: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/1.jpg)
Windows: Having It’s Windows: Having It’s Ass Kicked by Puppet Ass Kicked by Puppet and PowerShell since and PowerShell since 20122012
Paul StackPaul Stackhttp://www.paulstack.co.ukhttp://twitter.com/stack72http://twitter.com/stack72mail: mail: [email protected]@paulstack.co.ukk
![Page 2: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/2.jpg)
PaurShellPaurShellThis is actually the Northern Irish This is actually the Northern Irish pronunciation of the Windows task based framework, PowerShell
![Page 3: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/3.jpg)
About MeAbout Me
Develop software for OpenTableDevelop software for OpenTable
Member of the Jetbrains Development Member of the Jetbrains Development AcademyAcademy
DevOps ExtremistDevOps Extremist
![Page 4: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/4.jpg)
AgendaAgenda
Classic infrastructure managementClassic infrastructure management
Snowflake / Phoenix Servers / Immutable Snowflake / Phoenix Servers / Immutable InfrastructureInfrastructure
Infrastructure as CodeInfrastructure as Code
PowerShell as a way to manage WindowsPowerShell as a way to manage Windows
PowerShell + Puppet = Kicking Windows’ AssPowerShell + Puppet = Kicking Windows’ Ass
![Page 5: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/5.jpg)
Classic Infrastructure Classic Infrastructure ManagementManagement
![Page 6: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/6.jpg)
““The Run book”The Run book”
![Page 7: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/7.jpg)
People are generally People are generally rubbish at performing rubbish at performing manual repetitive tasksmanual repetitive tasks
![Page 8: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/8.jpg)
SnowFlake ServerSnowFlake Server
Image courtesy of Liz West and under Creative Commons Image courtesy of Liz West and under Creative Commons LicenseLicense
Martin Fowler: Martin Fowler: http://martinfowler.com/bliki/SnowflakeServer.html
![Page 9: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/9.jpg)
Machines are much Machines are much more reliable at more reliable at performing repetitive performing repetitive taskstasks
![Page 10: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/10.jpg)
Image courtesy of FoodBev Photos and under Creative Commons Image courtesy of FoodBev Photos and under Creative Commons LicenseLicense
![Page 11: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/11.jpg)
Can’t we automate our Can’t we automate our manual run books?manual run books?
![Page 12: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/12.jpg)
Infrastructure As CodeInfrastructure As Code
![Page 13: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/13.jpg)
Phoenix ServersPhoenix Servers
Martin Fowler: Martin Fowler: http://martinfowler.com/bliki/PhoenixServer.html
![Page 14: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/14.jpg)
ChaosMonkeyChaosMonkey
Chaos Monkey: Chaos Monkey: http://techblog.netflix.com/2012/07/chaos-monkey-released-into-wild.html
![Page 15: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/15.jpg)
Immutable Immutable infrastructureinfrastructure
Chad Fowler: Chad Fowler: http://chadfowler.com/blog/2013/06/23/immutable-deployments/
![Page 16: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/16.jpg)
Code Is BetterCode Is Better
![Page 17: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/17.jpg)
What can we do on What can we do on Windows?Windows?
![Page 18: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/18.jpg)
![Page 19: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/19.jpg)
Managing Windows Managing Windows Server 2008 with Server 2008 with PowerShellPowerShell
![Page 20: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/20.jpg)
Puppet on WindowsPuppet on Windows
![Page 21: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/21.jpg)
Types AvailableTypes Available
filefile
useruser
groupgroup
scheduled_taskscheduled_task
packagepackage
serviceservice
execexec
hosthost
![Page 22: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/22.jpg)
Puppet + PowerShell = Puppet + PowerShell = Windows Tap OutWindows Tap Out
![Page 23: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/23.jpg)
Puppet ForgePuppet Forge
![Page 24: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/24.jpg)
Puppet integration with Puppet integration with Windows will get better Windows will get better and betterand better
![Page 25: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/25.jpg)
SummarySummary
Code is much better for managing servers than Code is much better for managing servers than peoplepeople
PowerShell is a tool to use when working with PowerShell is a tool to use when working with WindowsWindows
Puppet compliments what PowerShell does Puppet compliments what PowerShell does perfectly in a DSL formatperfectly in a DSL format
Windows Server management is no longer a Windows Server management is no longer a pain in the ass. pain in the ass.
![Page 26: Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf](https://reader035.fdocuments.in/reader035/viewer/2022070315/554f548db4c905423f8b5442/html5/thumbnails/26.jpg)
Further InformationFurther Information
http://forge.puppetlabs.comhttp://forge.puppetlabs.com/ /
http://blogs.msdn.com/b/powershell/http://blogs.msdn.com/b/powershell/
http://github.com/opentable/puppet-iishttp://github.com/opentable/puppet-iis
http://github.com/opentable/puppet-http://github.com/opentable/puppet-windowsfeaturewindowsfeature