windows-init

module
v1.0.0-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2019 License: Apache-2.0

README

GIG Initializer windows service

The GIG Initializer windows service allows you to run powershell scripts to initialize your windows vm. At boot time the GIG Initializer service scans the C:\gig\init directory for powershell scripts (*.ps1). It runs the scripts one by one. After running them, it creates a <<script name>>.ps1.executed file to indicate that this particular init script has been executed. Scripts are never executed twice, even across several reboots. When all scripts are executed, the GIG Initializer service stops itself.

How to dynamically add scripts to windows VM instances

The GIG cloud makes use of cloud-init for initialization of virtual machines. For windows vms the compatible cloudbase-init software is used. Using the Userdata field of the machine create api, you can insert scripts in your windows vm. Note that you need to put the in C:\gig\init for them to be picked up by the GIG Initializer service.

Installation

  • Download the executable for your platform from the releases page
  • Then register the program as a Windows service by running it with the install flag. Eg
mkdir "C:\Program Files\GIG Technology"
cd "C:\Program Files\GIG Technology"
mkdir "GIG Init"
cd "GIG Init"
Invoke-WebRequest https://github.com/gig-tech/windows-init/releases/download/v1.0.0-beta2/giginit-x64.exe -OutFile giginit.exe
giginit.exe install

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL