Skip to content

Windows service that allows to run scripts to initialize windows vms in the gig.tech cloud

License

Notifications You must be signed in to change notification settings

gig-tech/windows-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.tech"
cd "C:\Program Files\GIG.tech"
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

About

Windows service that allows to run scripts to initialize windows vms in the gig.tech cloud

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages