Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#240) Parameterize setup #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

steviecoaster
Copy link
Contributor

@steviecoaster steviecoaster commented Dec 4, 2024

Description Of Changes

Adds parameterization to both ClientSetup.ps1 and Register-C4bEndpoint.ps1 to allow an end user to customize the installation of Chocolatey For Business on an endpoint.

Motivation and Context

An opinionated approach is nice, but allowing some level of customization that is easy for the end user is a nice added touch to really improve the overall experience with our tooling.

Testing

  1. Manually tested changes in a lab environment locally

Operating Systems Testing

  • Windows Server 2019

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v3 compatibility checked?

Related Issue

Fixes #240

@steviecoaster steviecoaster force-pushed the gh240 branch 3 times, most recently from c2d1bb6 to 78f53cf Compare December 4, 2024 18:33
@steviecoaster steviecoaster requested review from JPRuskin and ryanrichter94 and removed request for JPRuskin December 4, 2024 18:33
@steviecoaster steviecoaster force-pushed the gh240 branch 3 times, most recently from 86402af to 9e64d22 Compare December 11, 2024 20:24
Copy link
Member

@JPRuskin JPRuskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of single-character variables that I think could be expanded to have helpful names, to ease legibility and maintainability in the future, but I haven't made suggestions as they generally spanned a fair number of lines and got muddled with other comments.

scripts/Register-C4bEndpoint.ps1 Show resolved Hide resolved
scripts/ClientSetup.ps1 Outdated Show resolved Hide resolved
scripts/ClientSetup.ps1 Outdated Show resolved Hide resolved
scripts/ClientSetup.ps1 Outdated Show resolved Hide resolved
scripts/Register-C4bEndpoint.ps1 Outdated Show resolved Hide resolved
scripts/ClientSetup.ps1 Outdated Show resolved Hide resolved
scripts/ClientSetup.ps1 Show resolved Hide resolved
scripts/ClientSetup.ps1 Outdated Show resolved Hide resolved
scripts/Register-C4bEndpoint.ps1 Outdated Show resolved Hide resolved
scripts/ClientSetup.ps1 Outdated Show resolved Hide resolved
This script adds parameterization to the ClientSetup.ps1 script that is
hosted within the Nexus repository. It also adds parameterization to the
registration script that is executed on a client so you can customize the
installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClientSetup Enhancements - Parameterize script to allow for additional flexibility
2 participants