Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
DSC a-b-c's
Andrew Best
October 14, 2015
Technology
0
89
DSC a-b-c's
A short introduction to Powershell DSC terminology
Andrew Best
October 14, 2015
Tweet
Share
More Decks by Andrew Best
See All by Andrew Best
Learn Authentication The Hard Way
andrewabest
0
120
Finding The Sweet Spot BNE
andrewabest
1
160
Finding The Sweet Spot
andrewabest
0
240
Automating AWS
andrewabest
2
150
Conventional Wisdom
andrewabest
1
200
AWS a-b-c's
andrewabest
3
140
What is Git?
andrewabest
0
190
Client Side Testing
andrewabest
0
48
Seven Year Itch
andrewabest
0
150
Other Decks in Technology
See All in Technology
データをモデリングしていたら、組織をモデリングし始めた話 / engineers-in-carta-vol3-data-engineer
pei0804
4
3.3k
UIKitのアップデート #WWDC22
akatsuki174
4
340
Custom GitHub Actions by Java
kazamori
0
290
OpsJAWS Meetup21 システム運用アンチパターンのすすめ
yoshiiryo1
0
1.5k
機械学習システムアーキテクチャ入門 #1
asei
3
1.2k
【toranoana.deno#7】Denoからwasmを呼び出す基礎
toranoana
0
130
プログラマがオブジェクト指向しても幸せになれない理由
shirayanagiryuji
0
140
UWBを使ってみた
norioikedo
0
430
What's Data Lake ? Azure Data Lake best practice
ryomaru0825
2
750
The Fractal Geometry of Software Design
vladikk
1
1.2k
開発組織の生産性を可視化する State of DevOpsとFour Keysとは / deep dive into State of DevOps
yfcgpsebp
0
280
LINEのB2Bプラットフォームにおけるトラブルシューティング2選
line_developers
PRO
4
300
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1M
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
119
28k
Code Reviewing Like a Champion
maltzj
506
37k
VelocityConf: Rendering Performance Case Studies
addyosmani
316
22k
Designing on Purpose - Digital PM Summit 2013
jponch
106
5.6k
Robots, Beer and Maslow
schacon
152
7.1k
The Cult of Friendly URLs
andyhume
68
4.8k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
5
510
Three Pipe Problems
jasonvnalue
89
8.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
351
21k
Visualization
eitanlees
125
11k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
181
15k
Transcript
Powershell DSC A-B-C’s
Page Windows Management Framework 4 › Brought us Powershell v4
and Powershell DSC 1.0 › Brings together tooling we can use to configure windows servers and their environment into a central location, rather than having it scattered throughout various cmdlets and tools / Copyright ©2014 by Readify Pty Ltd 2
Page Powershell DSC › It is an extension to the
powershell language › Use the powershell language to create and deploy configurations to servers › Primarily server focused, but can be run on client OS’s › Ensures servers are verifiably configured as you say they are –0 configuration drift, self healing › The future of server management –you shouldn’t manage the server directly, just its configuration / Copyright ©2014 by Readify Pty Ltd 3
Page Local Configuration Manager › The ‘server side’ of DSC
› Consumes the configuration it is provided and does the heavy lifting › Takes the hard work out of configuring systems – you don’t need to know all of the commands required to do the work › Set it and forget it / Copyright ©2014 by Readify Pty Ltd 4
Page Configuration › A new powershell command type we use
to build the configuration templates that the LCM will apply to our servers › A configuration is just powershell code that defines the resources that make up our configuration, and what nodes they apply to › Once a configuration is processed, produces a MOF file – an industry standard format, not proprietary. / Copyright ©2014 by Readify Pty Ltd 5
Page Nodes › Define the targets the configuration applies to
› Won’t go into depth here since our configurations are only applied to single servers / Copyright ©2014 by Readify Pty Ltd 6
Page Resources › Are a type of powershell module, used
during DSC configuration to do the actual configuration work › The have three methods: Get-TargetResource, Set- TargetResource and Test-TargetResources › When a configuration is applied to a server, each resource defined runs its Test-TargetResource, and if this returns negative, Set-TargetResource is then run, which ‘makes it so’. / Copyright ©2014 by Readify Pty Ltd 7
Page Requirements › WMF 4.0 › .NET 4.5 › Server
2008 R2 SP1 or higher › Windows 7 SP1 or higher › Powershell Remoting must be enabled on servers you want to configure – on by default on Server 2012 / Copyright ©2014 by Readify Pty Ltd 8
Page Honourable Mentions › Pull vs Push configuration › Configuration
variables / Copyright ©2014 by Readify Pty Ltd 9
None