26
Windows: Having It’s Ass Kicked by Puppet and PowerShell since 2012 Paul Stack http://www.paulstack.co.uk http://twitter.com/stack72 mail: [email protected] Saturday, August 24, 13

Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Embed Size (px)

DESCRIPTION

Unix environments has fantastic tooling order to irridicate the need for manual server configuaration. Windows is completely behind in the use of these tools. PowerShell is now emerging as the tool for Windows admins to manage environments and deployments. Can PowerShell help to bring the devops culture to the Windows development world? In this session, I will demonstrate how PowerShell has become a tool necessary to know when working on a windows environment. The session will demonstrate how development environments can be built in a fraction of the time using Puppet and PowerShell. PowerShell is fast becoming a rockstar of the Windows configuration world. Since Puppet added support for Windows, we can really kick windows configuration management into submission Paul Stack Principal Software Developer, OpenTable Paul Stack is a London based developer working on the .net technology stack. Paul has spoken at various events throughout the world as well as extensively in the UK about his passion for continuous integration and continuous delivery and why they should be part of what developers do on a day to day basis. He believes that reliably delivering software is just as important as its development. Paul's newest passion is the DevOps movement and how this helps not just development and operations but the entire business and it's customers.

Citation preview

Page 1: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Windows: Having It’s Ass Kicked by Puppet and PowerShell since 2012

Paul Stackhttp://www.paulstack.co.ukhttp://twitter.com/stack72mail: [email protected]

Saturday, August 24, 13

Page 2: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

About Me

Develop software for OpenTable

Member of the Jetbrains Development Academy

DevOps Extremist

Saturday, August 24, 13

Page 3: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

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

Saturday, August 24, 13

Page 4: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Agenda

Classic infrastructure management

Snowflake / Phoenix Servers / Immutable Infrastructure

Infrastructure as Code

PowerShell as a way to manage Windows

PowerShell + Puppet = Kicking Windows’ Ass

Saturday, August 24, 13

Page 5: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Classic Infrastructure Management

Saturday, August 24, 13

Page 6: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

“The Run book”

Saturday, August 24, 13

Page 7: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

People are generally rubbish at performing manual repetitive tasks

Saturday, August 24, 13

Page 8: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

SnowFlake Server

Image courtesy of Liz West and under Creative Commons License

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

Saturday, August 24, 13

Page 9: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Machines are much more reliable at performing repetitive tasks

Saturday, August 24, 13

Page 10: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Image courtesy of FoodBev Photos and under Creative Commons License

Saturday, August 24, 13

Page 11: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Can’t we automate our manual run books?

Saturday, August 24, 13

Page 12: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Infrastructure As Code

Saturday, August 24, 13

Page 13: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Phoenix Servers

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

Saturday, August 24, 13

Page 14: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

ChaosMonkey

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

Saturday, August 24, 13

Page 15: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Immutable infrastructure

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

Saturday, August 24, 13

Page 16: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Code Is Better

Saturday, August 24, 13

Page 17: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

What can we do on Windows?

Saturday, August 24, 13

Page 18: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Saturday, August 24, 13

Page 19: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Managing Windows Server 2008 with PowerShell

Saturday, August 24, 13

Page 20: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Puppet on Windows

Saturday, August 24, 13

Page 21: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Types Availablefile

user

group

scheduled_task

package

service

exec

hostSaturday, August 24, 13

Page 22: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Puppet + PowerShell = Windows Tap Out

Saturday, August 24, 13

Page 23: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Puppet Forge

Saturday, August 24, 13

Page 24: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Puppet integration with Windows will get better and better

Saturday, August 24, 13

Page 25: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Summary

Code is much better for managing servers than people

PowerShell is a tool to use when working with Windows

Puppet compliments what PowerShell does perfectly in a DSL format

Windows Server management is no longer a pain in the ass.

Saturday, August 24, 13

Page 26: Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012

Further Information

http://forge.puppetlabs.com/

http://blogs.msdn.com/b/powershell/

http://github.com/opentable/puppet-iis

http://github.com/opentable/puppet-windowsfeature

Saturday, August 24, 13