AWS Cloudformation and Windows PowerShell DSC Better Together
Automation: PowerShell & DSC
-
Upload
josh-gillespie -
Category
Technology
-
view
251 -
download
3
Transcript of Automation: PowerShell & DSC
Automat ion: PowerShel l & DSCTools for the DevOps toolbox
Introductions
https
://fl
ic.k
r/p/
89xk
sJ
Application Lifecycle ManagementDefineIdeation
DevelopIdea to working software
OperateWorking software in production Value realization
Users/Stakeholders
Development & testing
Operations
PRODUCTBACKLOG
OPSBACKLOG
MonitorImplement
MeasureActionable learning
Transition to Operations
How smooth is your handoff? What does a release look like for you?
https
://fl
ic.k
r/p/
6gob
fx
Release?
https
://fl
ic.k
r/p/
ctho
6
Release?
https
://fl
ic.k
r/p/
6Esb
R7
Release
https
://fl
ic.k
r/p/
f5N
NeZ
Why do we care?• 2015 State of DevOps survey• Gap
• Lead Time – 200x gap • Deployment failures – 60x fewer• Mean Time To Recovery – 168x faster• 2x more likely to exceed profitability, market share, & productivity goals.• 50% higher market cap growth over 3 years.
Operat ions i s hard(ware).. and many other things, but let’s talk about hardware.
https://flic.kr/p/dZaCMA
Server HerdingServer Configurations
Role based configuration
Web Servers
SQL Servers
Web Services Servers
App based configuration
App 1
App 2
App 3
Environment based configuration
Dev
Test
Production
Why is this hard?
https://flic.kr/p/8tjkup
What would be bet ter?
https://flic.kr/p/nC1mb
Automation
https://flic.kr/p/c4QJzC
We need another tool
What is PowerShell DSC?• Extension to PowerShell language
• PS Syntax• Creates configuration scripts
• Creates and manages configuration files• Emphasis on servers
• Ensures servers are configured the way you need.• “Set it and forget it”
• The future of Windows Server Management (and Linux?)
https://en.wikipedia.org/wiki/Windows_PowerShell#/media/File:Windows_PowerShell_icon.png
Where does PS DSC fit in?
• Similar to Chef/Puppet • Based on industry standards
• Managed Object Format (MOF)• Common Information Model (CIM)
https://flic.kr/p/763JUC
Three Phased Approach.
Authoring
Staging
“Make it so”
Kick ing the t i res
http
s://f
lic.k
r/p/s
7cR
Dv
Recap• Implemented as a module
Get-Command –Module PSDesiredStateConfiguration
• Configuration is in a new command type.
• Get-DscResource is your friend
• Get-DscResource <name> -syntax is totally sweet
Contoso Univers i ty Webs i teLet’s make this a little more real.
RecapHow does this solve the problems we saw earlier?
https://flic.kr/p/bpKh74
Separation of Concerns
Dev
Test
Production
Structural Configurations
Environment Configuration Data
Application Configuration
Give me more!Write custom DSC resourcesPull modelPartial ConfigurationsDevelop configuration like code (version control, testing)Integration with server deployment processReporting
Works locally too…
https://flic.kr/p/cBFFFL
Questions?
Thank you!Josh [email protected]@jcgillespie