SlideShare una empresa de Scribd logo
1 de 64
Manage patching and
updates with ease
A Puppet and Chocolatey Workshop
Meet our Presenters
Matt Stone
Sr. Solutions Engineer / Windows Advocate
Puppet, Inc.
@matthewrstone | github.com/matthewrstone | @souldo (puppet slack)
2
Paul Broadwith
Sr. Technical Engineer / MVP
Chocolatey Software
@pauby | github.com/pauby | https://chocolatey.org/contact
Agenda
Today’s webinar will feature:
• Quick Intro to Puppet and Chocolatey
• Using Chocolatey for Package Management
• Using Puppet Enterprise to automate package
deployment.
• Using Puppet and Chocolatey as part of a CI/CD
pipeline for infrastructure code.
• How Chocolatey and Puppet differ from tools like
SCCM.
3
4
What is
Chocolatey?
Windows Automation: Goals and Challenges
5
Goals
● Deploy more software faster;
● Automate infrastructure using latest tools (eg. PowerShell, Puppet etc.)
● Standardize, consistent and scalable approach;
Challenges
● TIME: Deploying software manually time consuming / inefficient.
● COMPLEXITY: Traditional tools complex / ineffective in modern IT env.;
● COST: Deploying & managing software without package management;
“Chocolatey allows you to
deploy any Windows
software, anywhere, with
anything, and manage and
track that software over
time.” - Rob Reynolds, Creator of Chocolatey
6
apt | yum | pacman | brew
Chocolatey Is The Package Manager For Windows
Chocolatey’s Unique Approach
7
Chocolatey uses a universal packaging format for managing all Windows
software (i.e. native installers, zips, scripts, binaries) as first class citizens.
● Write a software deployment one time (with PowerShell);
● Deploy it anywhere you have Windows (i.e Desktop, Servers, Docker,
Azure, AWS, etc.);
● Deploy to any supported version of Windows;
● With everything (i.e. Puppet);
● Then manage & track that software over time (even without installers);
Chocolatey - Sane Software Management
8
● Packages are independent building blocks;
● Uses tools you already know (ie. PowerShell);
● Chocolatey is 9+ years old;
● Extensive community – 979M+ downloads;
● No need to reinvent the wheel - 7600+ unique Community packages;
Business Version which is more closely aligned to organizational use cases
and allows complete software management.
Easily manage the entire software lifecycle.
9
What is
Puppet?
With Puppet Enterprise, you can...
• Continuously enforce configuration and security policy.
• Run ad-hoc tasks or orchestrated workflows on a schedule or on demand.
• Analyze the impact of changes to your environment before code is merged.
• Quickly migrate PowerShell scripts into the Puppet automation framework.
• Migrate PowerShell DSC code into the Puppet automation framework.
10
With Chocolatey and Puppet, you can...
• Deliver chocolatey packages at scale.
• Include non-package dependencies, such as Windows Features, registry settings and
more.
• Write a software deployment one time (with PowerShell).
• Analyze the impact of your deployments before they go to production.
• Manage deployments to Windows Server, regardless of edition.
• Review inventory of packages installed, regardless of provider.
• Cross-platform - Manage Windows and Linux, agent or not.
11
12
What is a
Chocolatey
package?
Anatomy of a Chocolatey Package
13
Anatomy of a Chocolatey Package
14
15
Traditional
software
installation...
Installing software the traditional way.
● Let’s install paint.net
16
Installing software the traditional way.
17
Installing software the traditional way.
18
Installing software the traditional way.
19
Installing software the traditional way.
20
Installing software the traditional way.
21
There IS a better way ….
… and we need to talk about sources and organizational best practices….
22
Chocolatey
package
sources...
About Chocolatey Sources
23
“Chocolatey has had the ability to
be able to work with packages
from one or more sources since its
inception back in 2011. With that,
Chocolatey comes with a default
package repository configured -
the Chocolatey Community
Package Repository”
About Chocolatey Repositories
24
● Sonatype Nexus OSS;
● Artifactory;
● ProGet;
● Any other NuGet v2 repository;
● NFS/CIFS share can be used to lesser results;
● Chocolatey Quick Deployment Environment;
Repository Managers
Chocolatey Community Package Repository
25
● Community Maintained;
● Moderated as of October 2014;
● Everything goes through VirusTotal;
● Not recommended for organizations:
○ Not fully reliable;
○ Distribution rights;
○ Trust;
○ Bandwidth;
● Solution: Package Internalization
Chocolatey Package Internalizer
26
● Take advantage of existing
packages without dependency on
the internet
● Downloads existing package and all
remote resources
● Recompiles package to use those
internal resources
● Option to download and point to
other locations
Exercise: Before We Start
● Disable license warning
27
choco feature disable -n=warnOnUpcomingLicenseExpiration
Exercise: Using Package Internalizer
● List sources
28
choco download firefox --internalize
Exercise: Using Internal Sources
● List sources
29
choco source list
Exercise: Using Internal Sources
● Remove the public source
30
choco source remove --name="'chocolatey'"
Exercise: Using Internal Sources
● Add the internal source
31
choco source add --name="'nexus'" ` --
source="'http://localhost:8081/repository/internalrepo/'" `
--allow-self-service
Exercise: Using Internal Sources
● List packages
32
choco source list
Exercise: Using Internal Sources
● Get Nexus Password
● In your browser open http://localhost:8081 and login with the
username admin and the password obtained above.
● When logged in, change password when prompted and choose to enable
Anonymous access.
○ This is important if the repository is used for installing packages, without
authenticating.
33
Get-Content C:my_nexus_pw.txt
Exercise: Using Internal Sources
● Get Nexus API Key
● Add the Nexus API Key to Chocolatey - this allows you to push packages
34
$apikey = Get-Content C:my_api_key.txt
choco apikey --api-key=$apikey ` --
source="'http://localhost:8081/repository/internalrepo/'
Exercise: Using Internal Sources
● Install firefox
35
choco install firefox
36
Using
Puppet Bolt
for Tasks
● Cross platform on-demand or
scheduled task execution
● Easily share scripts amongst team
members
● Integrates with Puppet Enterprise
RBAC, logging and a simple
execution interface
● Easily migrate scripts into Bolt Tasks
enabling version control and
collaboration
• Step based orchestration of commands,
scripts, tasks, plans and puppet code.
• Easily share workflows among team
members.
• Integrates with Puppet Enterprise RBAC,
logging and a simple execution interface.
• Start quickly with YAML plans or use the
puppet language for more advanced
features.
39
Exercise: Install a Package with Bolt
● Change to C:workshop
(this is case sensitive)
● Run `bolt plan run choco_workshop::install_edge`
● When completed, run `choco list --lo`
40
Exercise: Managing Sources with Puppet DSL
● Change to C:workshop
(this is case sensitive)
● Run `bolt plan run choco_workshop::sources`
● When completed, run `choco sources list`
41
42
An Easy Life
With
Self Service
Background Agent
43
● Non-admin can install only from
approved, configured sources;
● GUI or command line;
● Commands / sources validated prior
to running;
● Abuses logged for further review;
● Background mode defaults for
install / upgrade - can be configured
for other commands;
Graphical Interface and Self Service - ChocolateyGUI
44
● Big clickable buttons;
● Manage software;
● Great for desktop / non-
technical users;
● Great for Self-Service
Management (C4B)
45
Chocolatey
Sync
Package Synchronizer - Automatic Sync
46
● Chocolatey maintains state based
on packages;
● System state can be manipulated
outside of Chocolatey;
● Any Chocolatey command will
trigger synchronization in licensed
editions of Chocolatey;
● Package Synchronizer syncs with
manual software removal or
software that automatically
upgrades, such as Chrome;
Exercise: Using Automatic Sync
● Run:choco install paint.net -y
Get-Cotent C:my_nexus_pw.t
47
choco list --local-only
Exercise: Using Automatic Sync
48
Exercise: Using Automatic Sync
● Open Programs and Features and manually uninstall
chocolateygui.
● Run:stall paint.net -y
Get-Cotent C:my_nexus
49
choco list --local-only
Exercise: Using Automatic Sync
50
Package Synchronizer
51
● Programs and Features is only
50-80% of installed software;
● Chocolatey brings
management for non-installer
packages;
● Supporting legacy inventory
reporting systems is now easy;
● No need to build MSI /
Installers for internal use just to
support legacy reporting
Exercise: Using Package Synchroniser
● Run:choco install paint.net -y
Get-Cotent C:my_nexus_pw.t
52
choco list --local-only --include-programs
Exercise: Using Package Synchroniser
● Run:choco install paint.net -y
Get-Cotent C:my_nexus_pw.t
53
choco sync --id="'VLC media player'" --package-id="'vlc'"
choco list --local-only --include-programs
Exercise: Using Automatic Sync
54
Exercise: Using Package Synchroniser
● Run:choco install paint.net -y
Get-Cotent C:my_nexus_pw.t
55
choco oudated
Exercise: Using Package Synchroniser
● Run:choco install paint.net -y
Get-Cotent C:my_nexus_pw.t
56
choco upgrade vlc
57
Inventory
Management
Chocolatey Central Management
58
● See reports / information
across the organization;
● Modules / plugins coming;
Puppet Enterprise Console
Package Inventory
59
Continuous Delivery for Puppet Enterprise
Events
60
Continuous Delivery for Puppet Enterprise
Impact Analysis
61
62
See it in action:
Continuous
Enforcement
See it in action:
Tasks and Plans in
Console
64
Questions?

Más contenido relacionado

La actualidad más candente

CMake: Improving Software Quality and Process
CMake: Improving Software Quality and ProcessCMake: Improving Software Quality and Process
CMake: Improving Software Quality and Process
Marcus Hanwell
 
Package Management on Windows with Chocolatey
Package Management on Windows with ChocolateyPackage Management on Windows with Chocolatey
Package Management on Windows with Chocolatey
Puppet
 

La actualidad más candente (20)

PuppetCamp SEA 1 - The State of Puppet
PuppetCamp SEA 1 - The State of PuppetPuppetCamp SEA 1 - The State of Puppet
PuppetCamp SEA 1 - The State of Puppet
 
Symfony Under Control by Maxim Romanovsky
Symfony Under Control by Maxim RomanovskySymfony Under Control by Maxim Romanovsky
Symfony Under Control by Maxim Romanovsky
 
CMake: Improving Software Quality and Process
CMake: Improving Software Quality and ProcessCMake: Improving Software Quality and Process
CMake: Improving Software Quality and Process
 
IBM Drupal Users Group Discussion on Managing and Deploying Configuration
IBM Drupal Users Group Discussion on Managing and Deploying ConfigurationIBM Drupal Users Group Discussion on Managing and Deploying Configuration
IBM Drupal Users Group Discussion on Managing and Deploying Configuration
 
IBM ConnectED 2015 - BP106 From XPages Hero To OSGi Guru: Taking The Scary Ou...
IBM ConnectED 2015 - BP106 From XPages Hero To OSGi Guru: Taking The Scary Ou...IBM ConnectED 2015 - BP106 From XPages Hero To OSGi Guru: Taking The Scary Ou...
IBM ConnectED 2015 - BP106 From XPages Hero To OSGi Guru: Taking The Scary Ou...
 
openQA hands on with openSUSE Leap 42.1 - openSUSE.Asia Summit ID 2016
openQA hands on with openSUSE Leap 42.1 - openSUSE.Asia Summit ID 2016openQA hands on with openSUSE Leap 42.1 - openSUSE.Asia Summit ID 2016
openQA hands on with openSUSE Leap 42.1 - openSUSE.Asia Summit ID 2016
 
Continuous Integration & Drupal
Continuous Integration & DrupalContinuous Integration & Drupal
Continuous Integration & Drupal
 
Continuous Integration and DevOps with Open Build Service(OBS)
Continuous Integration and DevOps with Open Build Service(OBS)Continuous Integration and DevOps with Open Build Service(OBS)
Continuous Integration and DevOps with Open Build Service(OBS)
 
DNUG Webcast: IBM Notes V10 Performance Boost
DNUG Webcast: IBM Notes V10 Performance BoostDNUG Webcast: IBM Notes V10 Performance Boost
DNUG Webcast: IBM Notes V10 Performance Boost
 
Package Management on Windows with Chocolatey
Package Management on Windows with ChocolateyPackage Management on Windows with Chocolatey
Package Management on Windows with Chocolatey
 
Get the best out of Bootstrap with Bootstrap4XPages - Engage 2014
Get the best out of Bootstrap with Bootstrap4XPages - Engage 2014Get the best out of Bootstrap with Bootstrap4XPages - Engage 2014
Get the best out of Bootstrap with Bootstrap4XPages - Engage 2014
 
Jenkins Pipelines
Jenkins PipelinesJenkins Pipelines
Jenkins Pipelines
 
Introduction to yocto
Introduction to yoctoIntroduction to yocto
Introduction to yocto
 
Essential applications management with Tiny Puppet
Essential applications management with Tiny PuppetEssential applications management with Tiny Puppet
Essential applications management with Tiny Puppet
 
Drupal Continuous Integration (European Drupal Days 2015)
Drupal Continuous Integration (European Drupal Days 2015)Drupal Continuous Integration (European Drupal Days 2015)
Drupal Continuous Integration (European Drupal Days 2015)
 
Getting Started With Jenkins And Drupal
Getting Started With Jenkins And DrupalGetting Started With Jenkins And Drupal
Getting Started With Jenkins And Drupal
 
Pipeline as code - new feature in Jenkins 2
Pipeline as code - new feature in Jenkins 2Pipeline as code - new feature in Jenkins 2
Pipeline as code - new feature in Jenkins 2
 
Cmake
CmakeCmake
Cmake
 
Virtual Puppet Ecosystem Workshop - March 18,2020
Virtual Puppet Ecosystem Workshop - March 18,2020Virtual Puppet Ecosystem Workshop - March 18,2020
Virtual Puppet Ecosystem Workshop - March 18,2020
 
Tribal Nova Docker feedback
Tribal Nova Docker feedbackTribal Nova Docker feedback
Tribal Nova Docker feedback
 

Similar a Easily Manage Patching and Application Updates with Chocolatey + Puppet - April 29, 2020

Chocolatey + DSC = Software Automation Sweeter - PowerShell Day UK
Chocolatey + DSC = Software Automation Sweeter - PowerShell Day UKChocolatey + DSC = Software Automation Sweeter - PowerShell Day UK
Chocolatey + DSC = Software Automation Sweeter - PowerShell Day UK
Rob Reynolds
 
Modern Software Management on Windows w/Chocolatey - That Conference 2017
Modern Software Management on Windows w/Chocolatey - That Conference 2017Modern Software Management on Windows w/Chocolatey - That Conference 2017
Modern Software Management on Windows w/Chocolatey - That Conference 2017
Rob Reynolds
 

Similar a Easily Manage Patching and Application Updates with Chocolatey + Puppet - April 29, 2020 (20)

Chocolatey for Organizations: Easily Manage Software - PowerShell Summit 2019
Chocolatey for Organizations: Easily Manage Software - PowerShell Summit 2019Chocolatey for Organizations: Easily Manage Software - PowerShell Summit 2019
Chocolatey for Organizations: Easily Manage Software - PowerShell Summit 2019
 
Modern Software Management on Windows with Chocolatey and Puppet
Modern Software Management on Windows with Chocolatey and PuppetModern Software Management on Windows with Chocolatey and Puppet
Modern Software Management on Windows with Chocolatey and Puppet
 
PuppetConf 2017: Modern Software Management on Windows with Chocolatey and Pu...
PuppetConf 2017: Modern Software Management on Windows with Chocolatey and Pu...PuppetConf 2017: Modern Software Management on Windows with Chocolatey and Pu...
PuppetConf 2017: Modern Software Management on Windows with Chocolatey and Pu...
 
Chocolatey + DSC = Software Automation Sweeter - PowerShell Day UK
Chocolatey + DSC = Software Automation Sweeter - PowerShell Day UKChocolatey + DSC = Software Automation Sweeter - PowerShell Day UK
Chocolatey + DSC = Software Automation Sweeter - PowerShell Day UK
 
Chocolatey + Artifactory = A Sweet Solution for Managing Windows
Chocolatey + Artifactory = A Sweet Solution for Managing WindowsChocolatey + Artifactory = A Sweet Solution for Managing Windows
Chocolatey + Artifactory = A Sweet Solution for Managing Windows
 
Modern Software Management on Windows w/Chocolatey
Modern Software Management on Windows w/ChocolateyModern Software Management on Windows w/Chocolatey
Modern Software Management on Windows w/Chocolatey
 
Modern Software Management on Windows w/Chocolatey - That Conference 2017
Modern Software Management on Windows w/Chocolatey - That Conference 2017Modern Software Management on Windows w/Chocolatey - That Conference 2017
Modern Software Management on Windows w/Chocolatey - That Conference 2017
 
Chocolatey - Software Automation for Windows (and sneak peak of Central Mana...
 Chocolatey - Software Automation for Windows (and sneak peak of Central Mana... Chocolatey - Software Automation for Windows (and sneak peak of Central Mana...
Chocolatey - Software Automation for Windows (and sneak peak of Central Mana...
 
NJEdgeCon2018-Automating-Package-Management-in-Windows-with-Chocolatey
NJEdgeCon2018-Automating-Package-Management-in-Windows-with-ChocolateyNJEdgeCon2018-Automating-Package-Management-in-Windows-with-Chocolatey
NJEdgeCon2018-Automating-Package-Management-in-Windows-with-Chocolatey
 
Modern Software Management on Windows with Chocolatey - Automation Management...
Modern Software Management on Windows with Chocolatey - Automation Management...Modern Software Management on Windows with Chocolatey - Automation Management...
Modern Software Management on Windows with Chocolatey - Automation Management...
 
Easily Manage Software on Windows with Chocolatey - PuppetConf 2016
Easily Manage Software on Windows with Chocolatey - PuppetConf 2016Easily Manage Software on Windows with Chocolatey - PuppetConf 2016
Easily Manage Software on Windows with Chocolatey - PuppetConf 2016
 
PuppetConf 2016: Easily Manage Software on Windows with Chocolatey – Rob Reyn...
PuppetConf 2016: Easily Manage Software on Windows with Chocolatey – Rob Reyn...PuppetConf 2016: Easily Manage Software on Windows with Chocolatey – Rob Reyn...
PuppetConf 2016: Easily Manage Software on Windows with Chocolatey – Rob Reyn...
 
Chocolatey and Puppet: Managing Your Windows Software Since 2011
Chocolatey and Puppet: Managing Your Windows Software Since 2011Chocolatey and Puppet: Managing Your Windows Software Since 2011
Chocolatey and Puppet: Managing Your Windows Software Since 2011
 
Software Management with PowerShell DSC and Chocolatey - PowerShell Summit 2017
Software Management with PowerShell DSC and Chocolatey - PowerShell Summit 2017Software Management with PowerShell DSC and Chocolatey - PowerShell Summit 2017
Software Management with PowerShell DSC and Chocolatey - PowerShell Summit 2017
 
PuppetConf 2016: A Tale of Two Hierarchies: Group Policy & Puppet – Matt Ston...
PuppetConf 2016: A Tale of Two Hierarchies: Group Policy & Puppet – Matt Ston...PuppetConf 2016: A Tale of Two Hierarchies: Group Policy & Puppet – Matt Ston...
PuppetConf 2016: A Tale of Two Hierarchies: Group Policy & Puppet – Matt Ston...
 
Warsaw MuleSoft Meetup #6 - CI/CD
Warsaw MuleSoft Meetup  #6 - CI/CDWarsaw MuleSoft Meetup  #6 - CI/CD
Warsaw MuleSoft Meetup #6 - CI/CD
 
Accelerate your Journey to Pervasive Automation 05.03.2018
Accelerate your Journey to Pervasive Automation 05.03.2018Accelerate your Journey to Pervasive Automation 05.03.2018
Accelerate your Journey to Pervasive Automation 05.03.2018
 
The Business Value of Modernizing your Windows Infrastructure and Bringing Li...
The Business Value of Modernizing your Windows Infrastructure and Bringing Li...The Business Value of Modernizing your Windows Infrastructure and Bringing Li...
The Business Value of Modernizing your Windows Infrastructure and Bringing Li...
 
Easily adapt Puppet Modules with PDK Convert 02/22/2018
Easily adapt Puppet Modules with PDK Convert 02/22/2018Easily adapt Puppet Modules with PDK Convert 02/22/2018
Easily adapt Puppet Modules with PDK Convert 02/22/2018
 
Bootstrapping a New Machine in 1 Click
Bootstrapping a New Machine in 1 ClickBootstrapping a New Machine in 1 Click
Bootstrapping a New Machine in 1 Click
 

Más de Puppet

Puppet camp2021 testing modules and controlrepo
Puppet camp2021 testing modules and controlrepoPuppet camp2021 testing modules and controlrepo
Puppet camp2021 testing modules and controlrepo
Puppet
 
2021 04-15 operational verification (with notes)
2021 04-15 operational verification (with notes)2021 04-15 operational verification (with notes)
2021 04-15 operational verification (with notes)
Puppet
 
Enforce compliance policy with model-driven automation
Enforce compliance policy with model-driven automationEnforce compliance policy with model-driven automation
Enforce compliance policy with model-driven automation
Puppet
 

Más de Puppet (20)

Puppet camp2021 testing modules and controlrepo
Puppet camp2021 testing modules and controlrepoPuppet camp2021 testing modules and controlrepo
Puppet camp2021 testing modules and controlrepo
 
Puppetcamp r10kyaml
Puppetcamp r10kyamlPuppetcamp r10kyaml
Puppetcamp r10kyaml
 
2021 04-15 operational verification (with notes)
2021 04-15 operational verification (with notes)2021 04-15 operational verification (with notes)
2021 04-15 operational verification (with notes)
 
Puppet camp vscode
Puppet camp vscodePuppet camp vscode
Puppet camp vscode
 
Modules of the twenties
Modules of the twentiesModules of the twenties
Modules of the twenties
 
Applying Roles and Profiles method to compliance code
Applying Roles and Profiles method to compliance codeApplying Roles and Profiles method to compliance code
Applying Roles and Profiles method to compliance code
 
KGI compliance as-code approach
KGI compliance as-code approachKGI compliance as-code approach
KGI compliance as-code approach
 
Enforce compliance policy with model-driven automation
Enforce compliance policy with model-driven automationEnforce compliance policy with model-driven automation
Enforce compliance policy with model-driven automation
 
Keynote: Puppet camp compliance
Keynote: Puppet camp complianceKeynote: Puppet camp compliance
Keynote: Puppet camp compliance
 
Automating it management with Puppet + ServiceNow
Automating it management with Puppet + ServiceNowAutomating it management with Puppet + ServiceNow
Automating it management with Puppet + ServiceNow
 
Puppet: The best way to harden Windows
Puppet: The best way to harden WindowsPuppet: The best way to harden Windows
Puppet: The best way to harden Windows
 
Simplified Patch Management with Puppet - Oct. 2020
Simplified Patch Management with Puppet - Oct. 2020Simplified Patch Management with Puppet - Oct. 2020
Simplified Patch Management with Puppet - Oct. 2020
 
Accelerating azure adoption with puppet
Accelerating azure adoption with puppetAccelerating azure adoption with puppet
Accelerating azure adoption with puppet
 
Puppet catalog Diff; Raphael Pinson
Puppet catalog Diff; Raphael PinsonPuppet catalog Diff; Raphael Pinson
Puppet catalog Diff; Raphael Pinson
 
ServiceNow and Puppet- better together, Kevin Reeuwijk
ServiceNow and Puppet- better together, Kevin ReeuwijkServiceNow and Puppet- better together, Kevin Reeuwijk
ServiceNow and Puppet- better together, Kevin Reeuwijk
 
Take control of your dev ops dumping ground
Take control of your  dev ops dumping groundTake control of your  dev ops dumping ground
Take control of your dev ops dumping ground
 
100% Puppet Cloud Deployment of Legacy Software
100% Puppet Cloud Deployment of Legacy Software100% Puppet Cloud Deployment of Legacy Software
100% Puppet Cloud Deployment of Legacy Software
 
Puppet User Group
Puppet User GroupPuppet User Group
Puppet User Group
 
Continuous Compliance and DevSecOps
Continuous Compliance and DevSecOpsContinuous Compliance and DevSecOps
Continuous Compliance and DevSecOps
 
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick MaludyThe Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
 

Último

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 

Easily Manage Patching and Application Updates with Chocolatey + Puppet - April 29, 2020

  • 1. Manage patching and updates with ease A Puppet and Chocolatey Workshop
  • 2. Meet our Presenters Matt Stone Sr. Solutions Engineer / Windows Advocate Puppet, Inc. @matthewrstone | github.com/matthewrstone | @souldo (puppet slack) 2 Paul Broadwith Sr. Technical Engineer / MVP Chocolatey Software @pauby | github.com/pauby | https://chocolatey.org/contact
  • 3. Agenda Today’s webinar will feature: • Quick Intro to Puppet and Chocolatey • Using Chocolatey for Package Management • Using Puppet Enterprise to automate package deployment. • Using Puppet and Chocolatey as part of a CI/CD pipeline for infrastructure code. • How Chocolatey and Puppet differ from tools like SCCM. 3
  • 5. Windows Automation: Goals and Challenges 5 Goals ● Deploy more software faster; ● Automate infrastructure using latest tools (eg. PowerShell, Puppet etc.) ● Standardize, consistent and scalable approach; Challenges ● TIME: Deploying software manually time consuming / inefficient. ● COMPLEXITY: Traditional tools complex / ineffective in modern IT env.; ● COST: Deploying & managing software without package management;
  • 6. “Chocolatey allows you to deploy any Windows software, anywhere, with anything, and manage and track that software over time.” - Rob Reynolds, Creator of Chocolatey 6 apt | yum | pacman | brew Chocolatey Is The Package Manager For Windows
  • 7. Chocolatey’s Unique Approach 7 Chocolatey uses a universal packaging format for managing all Windows software (i.e. native installers, zips, scripts, binaries) as first class citizens. ● Write a software deployment one time (with PowerShell); ● Deploy it anywhere you have Windows (i.e Desktop, Servers, Docker, Azure, AWS, etc.); ● Deploy to any supported version of Windows; ● With everything (i.e. Puppet); ● Then manage & track that software over time (even without installers);
  • 8. Chocolatey - Sane Software Management 8 ● Packages are independent building blocks; ● Uses tools you already know (ie. PowerShell); ● Chocolatey is 9+ years old; ● Extensive community – 979M+ downloads; ● No need to reinvent the wheel - 7600+ unique Community packages; Business Version which is more closely aligned to organizational use cases and allows complete software management. Easily manage the entire software lifecycle.
  • 10. With Puppet Enterprise, you can... • Continuously enforce configuration and security policy. • Run ad-hoc tasks or orchestrated workflows on a schedule or on demand. • Analyze the impact of changes to your environment before code is merged. • Quickly migrate PowerShell scripts into the Puppet automation framework. • Migrate PowerShell DSC code into the Puppet automation framework. 10
  • 11. With Chocolatey and Puppet, you can... • Deliver chocolatey packages at scale. • Include non-package dependencies, such as Windows Features, registry settings and more. • Write a software deployment one time (with PowerShell). • Analyze the impact of your deployments before they go to production. • Manage deployments to Windows Server, regardless of edition. • Review inventory of packages installed, regardless of provider. • Cross-platform - Manage Windows and Linux, agent or not. 11
  • 13. Anatomy of a Chocolatey Package 13
  • 14. Anatomy of a Chocolatey Package 14
  • 16. Installing software the traditional way. ● Let’s install paint.net 16
  • 17. Installing software the traditional way. 17
  • 18. Installing software the traditional way. 18
  • 19. Installing software the traditional way. 19
  • 20. Installing software the traditional way. 20
  • 21. Installing software the traditional way. 21 There IS a better way …. … and we need to talk about sources and organizational best practices….
  • 23. About Chocolatey Sources 23 “Chocolatey has had the ability to be able to work with packages from one or more sources since its inception back in 2011. With that, Chocolatey comes with a default package repository configured - the Chocolatey Community Package Repository”
  • 24. About Chocolatey Repositories 24 ● Sonatype Nexus OSS; ● Artifactory; ● ProGet; ● Any other NuGet v2 repository; ● NFS/CIFS share can be used to lesser results; ● Chocolatey Quick Deployment Environment; Repository Managers
  • 25. Chocolatey Community Package Repository 25 ● Community Maintained; ● Moderated as of October 2014; ● Everything goes through VirusTotal; ● Not recommended for organizations: ○ Not fully reliable; ○ Distribution rights; ○ Trust; ○ Bandwidth; ● Solution: Package Internalization
  • 26. Chocolatey Package Internalizer 26 ● Take advantage of existing packages without dependency on the internet ● Downloads existing package and all remote resources ● Recompiles package to use those internal resources ● Option to download and point to other locations
  • 27. Exercise: Before We Start ● Disable license warning 27 choco feature disable -n=warnOnUpcomingLicenseExpiration
  • 28. Exercise: Using Package Internalizer ● List sources 28 choco download firefox --internalize
  • 29. Exercise: Using Internal Sources ● List sources 29 choco source list
  • 30. Exercise: Using Internal Sources ● Remove the public source 30 choco source remove --name="'chocolatey'"
  • 31. Exercise: Using Internal Sources ● Add the internal source 31 choco source add --name="'nexus'" ` -- source="'http://localhost:8081/repository/internalrepo/'" ` --allow-self-service
  • 32. Exercise: Using Internal Sources ● List packages 32 choco source list
  • 33. Exercise: Using Internal Sources ● Get Nexus Password ● In your browser open http://localhost:8081 and login with the username admin and the password obtained above. ● When logged in, change password when prompted and choose to enable Anonymous access. ○ This is important if the repository is used for installing packages, without authenticating. 33 Get-Content C:my_nexus_pw.txt
  • 34. Exercise: Using Internal Sources ● Get Nexus API Key ● Add the Nexus API Key to Chocolatey - this allows you to push packages 34 $apikey = Get-Content C:my_api_key.txt choco apikey --api-key=$apikey ` -- source="'http://localhost:8081/repository/internalrepo/'
  • 35. Exercise: Using Internal Sources ● Install firefox 35 choco install firefox
  • 37. ● Cross platform on-demand or scheduled task execution ● Easily share scripts amongst team members ● Integrates with Puppet Enterprise RBAC, logging and a simple execution interface ● Easily migrate scripts into Bolt Tasks enabling version control and collaboration
  • 38. • Step based orchestration of commands, scripts, tasks, plans and puppet code. • Easily share workflows among team members. • Integrates with Puppet Enterprise RBAC, logging and a simple execution interface. • Start quickly with YAML plans or use the puppet language for more advanced features.
  • 39. 39
  • 40. Exercise: Install a Package with Bolt ● Change to C:workshop (this is case sensitive) ● Run `bolt plan run choco_workshop::install_edge` ● When completed, run `choco list --lo` 40
  • 41. Exercise: Managing Sources with Puppet DSL ● Change to C:workshop (this is case sensitive) ● Run `bolt plan run choco_workshop::sources` ● When completed, run `choco sources list` 41
  • 43. Background Agent 43 ● Non-admin can install only from approved, configured sources; ● GUI or command line; ● Commands / sources validated prior to running; ● Abuses logged for further review; ● Background mode defaults for install / upgrade - can be configured for other commands;
  • 44. Graphical Interface and Self Service - ChocolateyGUI 44 ● Big clickable buttons; ● Manage software; ● Great for desktop / non- technical users; ● Great for Self-Service Management (C4B)
  • 46. Package Synchronizer - Automatic Sync 46 ● Chocolatey maintains state based on packages; ● System state can be manipulated outside of Chocolatey; ● Any Chocolatey command will trigger synchronization in licensed editions of Chocolatey; ● Package Synchronizer syncs with manual software removal or software that automatically upgrades, such as Chrome;
  • 47. Exercise: Using Automatic Sync ● Run:choco install paint.net -y Get-Cotent C:my_nexus_pw.t 47 choco list --local-only
  • 49. Exercise: Using Automatic Sync ● Open Programs and Features and manually uninstall chocolateygui. ● Run:stall paint.net -y Get-Cotent C:my_nexus 49 choco list --local-only
  • 51. Package Synchronizer 51 ● Programs and Features is only 50-80% of installed software; ● Chocolatey brings management for non-installer packages; ● Supporting legacy inventory reporting systems is now easy; ● No need to build MSI / Installers for internal use just to support legacy reporting
  • 52. Exercise: Using Package Synchroniser ● Run:choco install paint.net -y Get-Cotent C:my_nexus_pw.t 52 choco list --local-only --include-programs
  • 53. Exercise: Using Package Synchroniser ● Run:choco install paint.net -y Get-Cotent C:my_nexus_pw.t 53 choco sync --id="'VLC media player'" --package-id="'vlc'" choco list --local-only --include-programs
  • 55. Exercise: Using Package Synchroniser ● Run:choco install paint.net -y Get-Cotent C:my_nexus_pw.t 55 choco oudated
  • 56. Exercise: Using Package Synchroniser ● Run:choco install paint.net -y Get-Cotent C:my_nexus_pw.t 56 choco upgrade vlc
  • 58. Chocolatey Central Management 58 ● See reports / information across the organization; ● Modules / plugins coming;
  • 60. Continuous Delivery for Puppet Enterprise Events 60
  • 61. Continuous Delivery for Puppet Enterprise Impact Analysis 61
  • 62. 62 See it in action: Continuous Enforcement
  • 63. See it in action: Tasks and Plans in Console