From 5ca318482409371b225d5caf18b3a8a366f63b1d Mon Sep 17 00:00:00 2001 From: Ryan Richter Date: Wed, 17 Jul 2024 08:02:47 -0400 Subject: [PATCH] (#230) Adds ChocolateyCore Repository and Jenkins Job - Add ChocolateyCore repo as main repo for core packages - Add callout to new ChocolateyCore repository - Remove See It In Action README section as video is outdated - Fixup spelling/grammar in README - Add new Update ChocolateyCore Repository Jenkins Job - Add test to check for new Jenkins job - Remove legacy build files from new and existing Jenkins jobs --- README.md | 26 ++++++----- Set-SslSecurity.ps1 | 40 ++++++++++++++--- Start-C4bNexusSetup.ps1 | 10 +++-- .../builds/legacyIds | 0 .../builds/permalinks | 2 - .../nextBuildNumber | 1 - .../config.xml | 43 +++++++++++++++++++ .../builds/legacyIds | 0 .../builds/permalinks | 6 --- .../nextBuildNumber | 1 - .../builds/legacyIds | 0 .../builds/permalinks | 2 - .../nextBuildNumber | 1 - scripts/ClientSetup.ps1 | 23 ++++++---- tests/jenkins.tests.ps1 | 4 ++ tests/nexus.tests.ps1 | 7 ++- 16 files changed, 120 insertions(+), 46 deletions(-) delete mode 100644 jenkins/Internalize packages from the Community Repository/builds/legacyIds delete mode 100644 jenkins/Internalize packages from the Community Repository/builds/permalinks delete mode 100644 jenkins/Internalize packages from the Community Repository/nextBuildNumber create mode 100644 jenkins/Update ChocolateyCore Repository/config.xml delete mode 100644 jenkins/Update production repository/builds/legacyIds delete mode 100644 jenkins/Update production repository/builds/permalinks delete mode 100644 jenkins/Update production repository/nextBuildNumber delete mode 100644 jenkins/Update test repository from Chocolatey Community Repository/builds/legacyIds delete mode 100644 jenkins/Update test repository from Chocolatey Community Repository/builds/permalinks delete mode 100644 jenkins/Update test repository from Chocolatey Community Repository/nextBuildNumber diff --git a/README.md b/README.md index b198779..768fbb0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository contains a set of supporting scripts used for the Chocolatey for Business (C4B) Quick-Start Guide (QSG). -These scripts can be used to assist in setup of a brand new Windows Server as a C4B Server. +These scripts can be used to assist in the setup of a brand-new Windows Server as a C4B Server. Below is the Quick Start Guide as it exists currently on the [Chocolatey Docs](https://docs.chocolatey.org/en-us/guides/organizations/quick-start-guide/chocolatey-for-business-quick-start-guide). @@ -34,14 +34,16 @@ As illustrated in the diagram above, there are four main components to a Chocola 1. **C4B Licensed components**: A licensed version of Chocolatey includes: - Installation of the Chocolatey OSS client package itself (`chocolatey`) - - Chocolatey license file (`chocolatey.license.xml`) installed in the correct directory (`ProgramData\chocolatey\license`) + - The Chocolatey license file (`chocolatey.license.xml`) installed in the correct directory (`ProgramData\chocolatey\license`) - Installation of the Chocolatey Licensed extension (`chocolatey.extension`), giving you access to features like Package Builder, Package Internalizer, etc. (full list [here](https://docs.chocolatey.org/en-us/features/)). -1. **NuGet V3 Repository Server App (Nexus)**: Chocolatey works best with a NuGet V3 repository. This application hosts and manages versioning of your Chocolatey package artifacts, in their enhanced NuGet package (.nupkg) file format. The quick start guide helps you setup [Sonatype Nexus Repository Manager (OSS)](https://www.sonatype.com/products/nexus-repository). +1. **Repository Server (Sonatype Nexus)**: Chocolatey works best with a NuGet repository. This repository hosts and manages the versioning of your Chocolatey package artifacts, in their enhanced NuGet package (.nupkg) file format. The quick start guide helps you set up [Sonatype Nexus Repository Manager (OSS)](https://www.sonatype.com/products/nexus-repository). -1. **Chocolatey Central Management (CCM)**: CCM is the Web UI portal for your entire Chocolatey environment. Your endpoints check-in to CCM to report their package status. This includes the Chocolatey packages they have installed, and whether any of these packages are outdated. And now, with CCM Deployments, you can also deploy packages or package updates to groups of endpoints, as well as ad-hoc PowerShell commands. CCM is backed by an MS SQL Database. This guide will set up MS SQL Express for you. +1. **Chocolatey Central Management (CCM)**: CCM is a web-based application for managing the state of Chocolatey packages in your environment. Your endpoints check in via the Chocolatey agent and report basic computer information (host name, IP address), and what Chocolatey packages are installed, as well as if any of those packages are outdated. A deployment capability allows you to install, upgrade, or uninstall packages, and for more advanced scenarios run ad-hoc PowerShell code on your endpoints. -1. **Automation Pipeline (Jenkins)**: A pipeline tool will help you automate repetitive tasks, such checking for updates to a set of Chocolatey Packages from the Chocolatey Community Repository (CCR). If updates exist, the pipeline task will auto-internalize your list of packages, and push them into your NuGet repository for you. This guide will help you set up Jenkins as your automation pipeline. +CCM is backed by an MS SQL Database, which this guide will set up and configure for you based on Microsoft SQL Server Express. + +1. **Automation Pipeline (Jenkins)**: A pipeline tool will help you automate repetitive tasks, such as checking for updates to a set of Chocolatey Packages from the Chocolatey Community Repository (CCR). If updates exist, the pipeline task will auto-internalize your list of packages, and push them into your NuGet repository for you. This guide will help you set up Jenkins as your automation pipeline. ## Requirements @@ -62,7 +64,7 @@ Below are the minimum requirements for setting up your C4B server via this guide 1. Install all Windows Updates. -1. If you plan on joining this server to your Active Directory domain, do so now before beginning setup below. +1. If you plan on joining this server to your Active Directory domain, do so now before beginning the setup below. 1. If you plan to use a Purchased/Acquired or Domain SSL certificate, please ensure the CN/Subject value matches the DNS-resolvable Fully Qualified Domain Name (FQDN) of your C4B Server. Place this certificate in the `Local Machine > Personal` certificate store, and ensure that the private key is exportable. @@ -120,9 +122,11 @@ Below are the minimum requirements for setting up your C4B server via this guide >