You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-43Lines changed: 28 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,7 @@ Below are the minimum requirements for setting up your C4B server via this guide
77
77
> - Run the following to zip up your offline bundle: `Compress-Archive -Path ~\Downloads\choco-quickstart-scripts\choco-quickstart-scripts-main\* -DestinationPath ~\Downloads\C4B-Files.zip`.
78
78
> - Transfer the `C4B-Files.zip` from your downloads folder to your offline system. All further steps will be carried out on the offline system.
79
79
> - Run `Expand-Archive -Path \path\to\C4B-Files.zip -DestinationPath C:\choco-setup\files -Force` on your offline system.
80
-
> - Run `Set-Location "$env:SystemDrive\choco-setup\files"; Set-ExecutionPolicy Bypass Process; .\Start-C4bSetup.ps1` on your offline system.
81
-
> - Proceed to Step 2!
80
+
> - Proceed to Certificate Options!
82
81
83
82
### Step 1: Begin C4B Setup
84
83
@@ -90,39 +89,18 @@ Below are the minimum requirements for setting up your C4B server via this guide
> <summary><strong>What does this script do? (click to expand)</strong></summary>
99
-
> <ul class="list-style-type-disc">
100
-
> <li>Installs Chocolatey client from https://community.chocolatey.org</li>
101
-
> <li>Prompts for your C4B license file location, with validation</li>
102
-
> <li>Converts your C4B license into a Chocolatey package</li>
103
-
> <li>Configures local "choco-setup" directories</li>
104
-
> <li>Downloads setup files from "choco-quickstart-scripts" GitHub repo</li>
105
-
> <li>Downloads Chocolatey packages required for setup</li>
106
-
> </ul>
107
-
> </details>
94
+
#### Certificate Options
108
95
109
-
> :memo:**Offline Install**: You can now copy the `C:\choco-setup\` directory to any computer to continue the installation. To zip up that directory, run `Compress-Archive -Path C:\choco-setup\files\* -DestinationPath C:\choco-setup\C4B-Files.zip`. Move the archive to your new machine, and run `Expand-Archive -Path /path/to/C4B-Files.zip -DestinationPath C:\choco-setup\files -Force`. You should then run `Set-Location "$env:SystemDrive\choco-setup\files"; .\Start-C4bSetup.ps1`, and continue with the guide.
110
-
111
-
#### Running with a Certificate
112
-
113
-
**ALTERNATIVE 1 : Custom SSL Certificate** - If you have your own custom SSL certificate (purchased/acquired, or from your Domain CA), you can paste and run the following script with the `Thumbprint` value of your SSL certificate specified:
96
+
**Custom SSL Certificate** - If you have your own custom SSL certificate (purchased/acquired, or from your Domain CA), you can paste and run the following script with the `Thumbprint` value of your SSL certificate specified:
> :warning:**REMINDER**: If you are using your own SSL certificate, be sure to place this certificate in the `Local Machine > Trusted People` certificate store before running the above script, and ensure that the private key is exportable.
121
-
122
-
> :memo:**NOTE**
123
-
> A Role and User credential will be configured to limit access to your Nexus repositories. As well, CCM Client and Service Salts are configured to further encrypt your connection between CCM and your endpoint clients. These additional settings are also incorporated into your `Register-C4bEndpoint.ps1` script for onboarding endpoints.
124
-
125
-
**ALTERNATIVE 2 : Wildcard SSL Certificate** - If you have a wildcard certificate, you will also need to provide a DNS name you wish to use for that certificate:
103
+
**Wildcard SSL Certificate** - If you have a wildcard certificate, you will also need to provide a DNS name you wish to use for that certificate:
> :warning:**REMINDER**: If you are using your own SSL certificate, be sure to place this certificate in the `Local Machine > Trusted People` certificate store before running the above script, and ensure that the private key is exportable.
118
+
119
+
> :memo:**NOTE**
120
+
> A Role and User credential will be configured to limit access to your Nexus repositories. As well, CCM Client and Service Salts are configured to further encrypt your connection between CCM and your endpoint clients. These additional settings are also incorporated into your `Register-C4bEndpoint.ps1` script for onboarding endpoints.
121
+
122
+
**Self-Signed Certificate** - If you are running a bare-minimum proof of concept environment, you can generate a self-signed certificate and use that.
123
+
124
+
```powershell
125
+
Set-Location "$env:SystemDrive\choco-setup\files"
126
+
.\Initialize-C4bSetup.ps1
127
+
```
128
+
129
+
> <details>
130
+
> <summary><strong>What does this script do? (click to expand)</strong></summary>
131
+
> <ulclass="list-style-type-disc">
132
+
> <li>Installs Chocolatey client from https://community.chocolatey.org</li>
133
+
> <li>Prompts for your C4B license file location, with validation</li>
134
+
> <li>Converts your C4B license into a Chocolatey package</li>
135
+
> <li>Configures local "choco-setup" directories</li>
136
+
> <li>Downloads setup files from "choco-quickstart-scripts" GitHub repo</li>
137
+
> <li>Downloads Chocolatey packages required for setup</li>
138
+
> </ul>
139
+
> </details>
140
+
139
141
#### Script: Nexus Setup
140
142
141
143
As part of the C4B setup, we install and configure Sonatype Nexus Repository, which is used for hosting your Chocolatey packages internally:
@@ -198,23 +200,6 @@ As part of the C4B setup, we create a readme and install the Chocolatey Agent on
198
200
199
201
> :mag:**FYI**: A `Readme.html` file will now be generated on your desktop. This file contains login information for all 3 web portals (CCM, Nexus, and Jenkins). This `Readme.html`, along with all 3 web portals, will automatically be opened in your browser.
200
202
201
-
### Script: Verification
202
-
203
-
As a part of the C4B setup, we run tests to validate that your environment is correctly configured:
204
-
205
-
> <details>
206
-
> <summary><strong>What does this script do? (click to expand)</strong></summary>
207
-
> <ulclass="list-style-type-disc">
208
-
> <li>Verifies Nexus Repository installation</li>
209
-
> <li>Verifies Central Management installation</li>
210
-
> <li>Verifies Jenkins installation</li>
211
-
> <li>Ensures system firewall is configured</li>
212
-
> <li>Ensures Windows Features are installed</li>
213
-
> <li>Ensures services are correctly configured</li>
214
-
> <li>Ensured README is created</li>
215
-
> </ul>
216
-
> </details>
217
-
218
203
### Step 2: Setting up Endpoints
219
204
220
205
1. Find the `Register-C4bEndpoint.ps1` script in the `C:\choco-setup\files\scripts\` directory on your C4B Server. Copy this script to your client endpoint.
0 commit comments