Date post: | 16-Jan-2017 |
Category: |
Technology |
Upload: | puppet |
View: | 1,023 times |
Download: | 1 times |
Windows Configuration ManagementManaging Packages, Services & PowerShell
Ethan BrownSenior Software Engineer
Grace AndrewsTechnical Solutions Engineer
Agenda• How Puppet Enterprise works• Installing Packages (Chocolatey)• Managing Services (WSUS)• Using PowerShell with Puppet• Puppet for Windows• Q&A
Our software automates the provisioning,
configuration & ongoing management
of your machines & the applications, services & software running on them.
PUPPET DEPLOYMENT
Ubuntu Server
PUPPET MASTER
Windows Server
Cisco Switch
HOW PUPPET ENTERPRISE WORKS
1. Define
3. Enforce
PUPPET
ENTERPRISE
2. Simulate 4. Report
1. Define the desired state
2. Simulate configuration changes
3. Enforce desired state automatically
4. Report on differences & changes made
INSTALLING PACKAGES
• Methods for installing packages• Chocolatey
• Benefits• Ensure that correct packages are installed• Remediating drift• Reporting (you can see what packages are
installed on each machine)
Chocolatey Workflow Package Source• Here is the Chocolatey
workflow. It’s worth noting that there is no Puppet in this workflow (yet)
• 1: User or system requests an installation of package X. Package X isn’t on the system.
• Chocolatey goes to its source repositories (by default it’s chocolatey.org) and requests the package.
• If Source has the package it says here you go and hands package URL over
• OS downloads package and package install proceeds.
Windows Desktop
choco install x
do you have x
yes here is x
performs silent install of x
1
2
3
4
CODE
DEMO
MANAGING SERVICES
• Service Resources with Puppet • Windows Server Update Services (WSUS)
Patch Set Test
Patch Set Development
Windows Server
Patch Set Production
Dev Release Test Release
Promotion Process
Working with Puppet Enterprise
CODE
USING POWERSHELL
• Puppet Supported PowerShell Module: https://forge.puppetlabs.com/puppetlabs/powershell
• Benefits of using PowerShell with Puppet• Get started quickly• Perform certain tasks that you can’t perform
with Puppet• Create a template
PUPPET LABS WINDOWS SUPPORT
• 32- & 64-bit Support – Native MSI packages for x64 as of Puppet Enterprise 3.7
• Broad Platform Support - Windows 2008, 2012, 7, 8• Windows Provisioning - Provision Windows OSes with Razor• Puppet Supported & Approved Modules for Windows - including the
Windows Module Pack, Supported SQL Sever & DSC modules• 100s of Community Modules – Adding more each week• Azure Integration – Windows Azure extension handler for bootstrapping
Puppet installs. Supported Azure module.
SUPPORTED & APPROVED MODULESPuppet Supported Modules• SQL Server – Installs & manages MS SQL Server 2012 & 2014 on Windows systems• WSUS Client – Configure clients to point to update servers; schedule updates• DSC – Manages PowerShell DSC resources• Azure – Provision and manage Azure VMs• ACL – manage permissions with Windows ACLs• Registry – manage Registry keys and values• PowerShell – execute PowerShell commands with Puppet• Reboot – Automatically reboot after install
Puppet Approved Modules• IIS – install and manage IIS• Chocolatey – package manager• windows_env – manage Windows environment variables• Windows Java – Install and manage Oracle Java on Windows• pget – PowerShell alternative to wget or curl
RESOURCESPuppetConf 2015 Windows Track• Chocolatey and Puppet - Rob Reynolds• Azure for the Non-Microsoft Person - Rob Reynolds & Scott Hanselman, MSFT• Better Together: Managing Windows with Puppet and DSC - Ethan Brown &
Bruce Payette, MSFT• Beyond the Registry - Matthew Stone, T-Mobile• The Wild World of Windows: Developing for Puppet on Windows - Travis
Fields, Nike• IT Leader Breakout Q&A - Angel Calvo, MSFT
Blog• Chocolatey blog series• PowerShell DSC blog series
Education• Learning VM• Puppet Essentials for Windows – Instructor-led• Puppet Essentials for Windows - Virtual• Puppet Fundamentals
WINDOWS WEBINAR SERIES
Register for upcoming webinars at: http://info.puppetlabs.com/1885-Windows-Series-Main_LP-Registration.html
• Deploying IIS and ASP.NET with Puppet• Package Management on Windows with Chocolatey• Managing PowerShell DSC with Puppet• Patch Management on Windows with Puppet• Setting up Windows for System and Application Monitoring• Getting Up and Running with the Windows Module Pack• Get Started on Azure with Puppet
Questions &Answers