PowerShell ¡Desired ¡State ¡ Configuration ¡for ¡Linux
By: ¡Kolby ¡Allen
August ¡19, ¡2015 LINUXCON ¡North ¡America
PowerShell Desired State Configuration for Linux By: Kolby - - PowerPoint PPT Presentation
PowerShell Desired State Configuration for Linux By: Kolby Allen August 19, 2015 LINUXCON North America Outline - What is PowerShell and Desired State Configuration?
By: ¡Kolby ¡Allen
August ¡19, ¡2015 LINUXCON ¡North ¡America
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 2
Outline
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 3
What ¡is ¡PowerShell?
Reboot ¡Local ¡Machine: Restart-Computer Reboot ¡Remote ¡Machine: Restart-Computer -ComputerName Server01 Reboot ¡Remote ¡Machines ¡(multiple):
Restart-Computer -ComputerName Server01, Server02, localhost
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 4
What ¡is ¡Desired ¡State ¡Configuration?
deployment ¡and ¡management ¡of ¡configuration ¡data
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 5
Why ¡use ¡DSC? WHY ¡NOT ¡ONE ¡OF ¡THESE?
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 6
Why ¡use ¡DSC? Because ¡of ¡this…
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 7
Review ¡of ¡DSC ¡– Server ¡Setup ¡-‑ PUSH
Push ¡Server
Start-DscConfiguration Local Target Configurations Local Configuration Manager (LCM) Remote Machine LCM Remote Machine LCM configuration configuration
http://blogs.msdn.com/b/powershell/archive/2013/11/26/push-‑and-‑pull-‑configuration-‑modes.aspx
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 8
Review ¡of ¡DSC ¡– Server ¡Setup ¡-‑ PUSH
http://blogs.msdn.com/b/powershell/archive/2013/11/26/push-‑and-‑pull-‑configuration-‑modes.aspx
Author Configuration Generate MOF Push Configuration
DSC OData Endpoint IIS Service Configurations Remote Machine LCM Remote Machine LCM Resources get send get send
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 9
Review ¡of ¡DSC ¡– Server ¡Setup ¡-‑ PULL
Pull ¡Server
http://blogs.msdn.com/b/powershell/archive/2013/11/26/push-‑and-‑pull-‑configuration-‑modes.aspx
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 10
Review ¡of ¡DSC ¡– Server ¡Setup ¡-‑ PULL
http://blogs.msdn.com/b/powershell/archive/2013/11/26/push-‑and-‑pull-‑configuration-‑modes.aspx
Author Configuration for Target Setup Pull Server Setup DSC
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 11
Review ¡of ¡DSC ¡– Client ¡Setup Support ¡Operating ¡Systems
Required ¡Packages:
glibc
python
Infrastructure
ctypes
libcurl DSC ¡for ¡Linux ¡Binaries https://github.com/MSFTOSSMgmt/WPSDSCLinux
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 12
Review ¡of ¡DSC ¡– Client ¡Setup ¡– LINUX ¡Resources DSC ¡Resources ¡– building ¡blocks ¡to ¡DSC ¡Configurations Linux ¡Resources
Currently ¡in ¡beta ¡but ¡growing.
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 13
DSC ¡Examples ¡– DSC ¡Configuration Force ¡feature ¡to ¡be ¡installed Servers ¡installed ¡on Adds ¡file ¡to ¡OS
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 14
DSC ¡Examples ¡– DSC ¡Configuration ¡– Windows ¡WebServer
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 15
DSC ¡Examples ¡– Demo
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 16
DSC ¡Examples ¡– End ¡to ¡End ¡Provisioning
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 17
DSC ¡Examples ¡– End ¡to ¡End ¡Provisioning ¡– Hyper-‑V
http://mikefrobbins.com/2015/01/22/creating-‑hyper-‑v-‑vms-‑with-‑desired-‑state-‑configuration/
8/19/2015 PowerShell ¡DSC ¡for ¡Linux 18
Review ¡of ¡DSC ¡– Conclusion