Building Powerful Workflow Automation with Cherwell Software and PowerShell - CGC 2016
Automation: PowerShell & DSC
-
Upload
josh-gillespie -
Category
Technology
-
view
252 -
download
3
Transcript of Automation: PowerShell & DSC
![Page 1: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/1.jpg)
Automat ion: PowerShel l & DSCTools for the DevOps toolbox
![Page 2: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/2.jpg)
Introductions
https
://fl
ic.k
r/p/
89xk
sJ
![Page 3: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/3.jpg)
Application Lifecycle ManagementDefineIdeation
DevelopIdea to working software
OperateWorking software in production Value realization
Users/Stakeholders
Development & testing
Operations
PRODUCTBACKLOG
OPSBACKLOG
MonitorImplement
MeasureActionable learning
![Page 4: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/4.jpg)
Transition to Operations
How smooth is your handoff? What does a release look like for you?
https
://fl
ic.k
r/p/
6gob
fx
![Page 5: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/5.jpg)
Release?
https
://fl
ic.k
r/p/
ctho
6
![Page 6: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/6.jpg)
Release?
https
://fl
ic.k
r/p/
6Esb
R7
![Page 7: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/7.jpg)
Release
https
://fl
ic.k
r/p/
f5N
NeZ
![Page 8: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/8.jpg)
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.
![Page 9: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/9.jpg)
Operat ions i s hard(ware).. and many other things, but let’s talk about hardware.
https://flic.kr/p/dZaCMA
![Page 10: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/10.jpg)
Server HerdingServer Configurations
![Page 11: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/11.jpg)
Role based configuration
Web Servers
SQL Servers
Web Services Servers
![Page 12: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/12.jpg)
App based configuration
App 1
App 2
App 3
![Page 13: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/13.jpg)
Environment based configuration
Dev
Test
Production
![Page 14: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/14.jpg)
Why is this hard?
https://flic.kr/p/8tjkup
![Page 15: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/15.jpg)
What would be bet ter?
https://flic.kr/p/nC1mb
![Page 16: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/16.jpg)
Automation
![Page 17: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/17.jpg)
https://flic.kr/p/c4QJzC
We need another tool
![Page 18: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/18.jpg)
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
![Page 19: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/19.jpg)
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
![Page 20: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/20.jpg)
Three Phased Approach.
Authoring
Staging
“Make it so”
![Page 21: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/21.jpg)
Kick ing the t i res
http
s://f
lic.k
r/p/s
7cR
Dv
![Page 22: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/22.jpg)
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
![Page 23: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/23.jpg)
Contoso Univers i ty Webs i teLet’s make this a little more real.
![Page 24: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/24.jpg)
RecapHow does this solve the problems we saw earlier?
https://flic.kr/p/bpKh74
![Page 25: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/25.jpg)
Separation of Concerns
Dev
Test
Production
Structural Configurations
Environment Configuration Data
Application Configuration
![Page 26: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/26.jpg)
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
![Page 27: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/27.jpg)
Questions?
![Page 28: Automation: PowerShell & DSC](https://reader036.fdocuments.us/reader036/viewer/2022082216/589ae1c71a28abee708b525f/html5/thumbnails/28.jpg)
Thank you!Josh [email protected]@jcgillespie