Deployer

From DanIT
Jump to navigation Jump to search

Introduction

Deployer is a PowerShell-based system to easily manage and rollout multiple different deployments.
For example, when you have to bulk setup/configure multiple computers, with a different set of software and settings.

Every deployment can have its own software and settings to be applied. It can also refer to generic software or settings that are stored in one central location, and only have to be updated once to affect all deployments.
Anytime Deployer is being run, a log will automatically be created in the logs folder with the computers name and date. The logs will show every action that was done, with or without errors.

Download

GitHub Repository: https://github.com/d-v-d-k/Deployer

Usage

Deployer-Select.png
  1. Open Deployer by running Start.ps1 or Start.cmd as an Administrator.
  2. A list of available deployments will be shown, select the deployment you want to apply.
  3. Some questions may be asked.
  4. All software and settings of this deployment will be applied to the computer.

Setup

Example of a deployment run script

Creating a new deployment

  1. Create a new folder inside the folder 'Deployments' with the name of the new deployment.
  2. Create a new PowerShell script inside this folder named 'Run'.
  3. Create a new folder inside this folder named 'Specific'.

Adding software or settings to a deployment

  • It is advised that every task in the deployment has its own script, referred to via commands "Run-General" or "Run-Specific" in 'Run.ps1'
  • It is advised to put all files besides scripts inside a 'Files' folder located in the folder of the script.
  1. Open the 'Run' file inside a deployment folder.
  2. Add the commands "Run-General <name>" or "Run-Specific <name>" to refer to scripts that you want to run.
  3. Create or edit the corresponding scripts.

To install software, you can use "Start-Process" in the referred script to run an executable, and perhaps add arguments to run it silently or with an answer file.

Command Arguments Description
Run-General <name> Run a PowerShell script that is located in the 'General' folder of Deployer.
Run-Specific <name> Run a PowerShell script that is located in the 'Specific' folder inside the corresponding deployment folder.