Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Package Management on Windows with Chocolatey

2.179 Aufrufe

Veröffentlicht am

Webinar

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

Package Management on Windows with Chocolatey

  1. 1. Package Management on Windows With Chocolatey Kenaz Kwa Sr. Product Manager Rob Reynolds Sr. Software Engineer, creator of Chocolatey
  2. 2. Agenda • How Puppet Enterprise works • Why Chocolatey • Chocolatey Puppet Provider • Creating Packages • Hosting Your Own Server • Demo • Puppet Labs Windows support • Resources • Q&A
  3. 3. Our software automates the provisioning, configuration & ongoing management of your machines & the applications, services & software running on them.
  4. 4. Puppet Deployment Ubuntu Server PUPPET MASTER Windows Server Cisco Switch
  5. 5. How Puppet Enterprise Works
  6. 6. Why Chocolatey
  7. 7. Package Manager for Windows • Behaves much like Yum • Uses NuGet packaging framework + PowerShell for automation scripts • CLI tool - choco.exe • GUI - ChocolateyGUI • Allows non-centralized/private repositories • Microsoft validated - there will be a OneGet provider
  8. 8. Chocolatey == Universal Software Packaging
  9. 9. chocolatey.org (Community Repo) • Community Feed / Community Maintained • Moderated as of October 2014 • A couple people have downloaded packages (1 yr ago at 5 Million) • Organizations should not depend on community b/c trust and control
  10. 10. Chocolatey Puppet Provider
  11. 11. Puppet Provider • puppet module install chocolatey/chocolatey • Approved module, supported module coming • Manages install of Chocolatey • Packages • Soon manages full configuration of Chocolatey
  12. 12. Install Chocolatey • Install and initial configuration • Point to internal resources
  13. 13. Package Resource • installable, uninstallable, upgradeable, versionable, holdable, install_options, uninstall_options • Still later: virtual_packages
  14. 14. Why Chocolatey Provider? • This is the built-in provider • Note the following: • Name of package • Source • Manifest maintenance
  15. 15. Why Chocolatey Provider? • Package resource default to provider => chocolatey for Windows. • Platform agnostic packaging
  16. 16. Creating Packages
  17. 17. Creating Packages • choco new -h • Create organizational templates! • *.nuspec • chocolateyInstall.ps1 • Other resources like binaries / config files, etc • Getting started / reference at http://bit.ly/choco-create
  18. 18. packagename.nuspec • This is a nuget packaging specification • Enhanced with provides, conflicts, replaces (although choco doesn’t know what to do with them yet) • Will be enhancing further: architecture, os versions, etc
  19. 19. chocolateyInstall.ps1 • Helpers / Functions • Reduce work • PowerShell, you can do anything • Function reference https://bit.ly/choco-functions
  20. 20. Hosting Your Own Server
  21. 21. Hosting Your Own Packages • chocolatey/chocolatey_server module • Non-Windows Hosting – Artifactory – Sonatype Nexus • NuGet Gallery proper • ProGet / MyGet • https://bit.ly/choco-package- server
  22. 22. DEMO
  23. 23. 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 Windows Module Pack, Supported SQL Sever & DSC modules • Azure Integration – Microsoft Azure extension handler for bootstrapping Puppet installs. Supported Azure module.
  24. 24. Puppet 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
  25. 25. 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
  26. 26. Windows Webinar Series Register for upcoming webinars at: http://info.puppetlabs.com/1885- Windows-Series-Main_LP-Registration.html • 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
  27. 27. Questions & Answers
  28. 28. Resources PuppetConf 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 Blog • Chocolatey blog series • PowerShell DSC blog series Docs • Managing Windows Configurations Education • Learning VM • Puppet Essentials for Windows – Instructor-led • Puppet Essentials for Windows - Virtual

×