Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf

Post on 10-May-2015

2.569 views 0 download

Tags:

Transcript of Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf

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: puppetconf@paulstack.co.upuppetconf@paulstack.co.ukk

PaurShellPaurShellThis is actually the Northern Irish This is actually the Northern Irish pronunciation of the Windows task based framework, PowerShell

About MeAbout Me

Develop software for OpenTableDevelop software for OpenTable

Member of the Jetbrains Development Member of the Jetbrains Development AcademyAcademy

DevOps ExtremistDevOps Extremist

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

Classic Infrastructure Classic Infrastructure ManagementManagement

““The Run book”The Run book”

People are generally People are generally rubbish at performing rubbish at performing manual repetitive tasksmanual repetitive tasks

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

Machines are much Machines are much more reliable at more reliable at performing repetitive performing repetitive taskstasks

Image courtesy of FoodBev Photos and under Creative Commons Image courtesy of FoodBev Photos and under Creative Commons LicenseLicense

Can’t we automate our Can’t we automate our manual run books?manual run books?

Infrastructure As CodeInfrastructure As Code

Phoenix ServersPhoenix Servers

Martin Fowler: Martin Fowler: http://martinfowler.com/bliki/PhoenixServer.html

ChaosMonkeyChaosMonkey

Chaos Monkey: Chaos Monkey: http://techblog.netflix.com/2012/07/chaos-monkey-released-into-wild.html

Immutable Immutable infrastructureinfrastructure

Chad Fowler: Chad Fowler: http://chadfowler.com/blog/2013/06/23/immutable-deployments/

Code Is BetterCode Is Better

What can we do on What can we do on Windows?Windows?

Managing Windows Managing Windows Server 2008 with Server 2008 with PowerShellPowerShell

Puppet on WindowsPuppet on Windows

Types AvailableTypes Available

filefile

useruser

groupgroup

scheduled_taskscheduled_task

packagepackage

serviceservice

execexec

hosthost

Puppet + PowerShell = Puppet + PowerShell = Windows Tap OutWindows Tap Out

Puppet ForgePuppet Forge

Puppet integration with Puppet integration with Windows will get better Windows will get better and betterand better

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.

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