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

Use GCE Launch Scripts to install required software on first boot #2

Closed
putty182 opened this issue Oct 28, 2018 · 8 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@putty182
Copy link
Member

https://cloud.google.com/compute/docs/startupscript#providing_a_startup_script_for_windows_instances

@putty182 putty182 changed the title Use launch script to install and configure programs Use GCE Launch Scripts to install required software on first boot Oct 28, 2018
@putty182 putty182 added the enhancement New feature or request label Oct 28, 2018
@deekue
Copy link
Collaborator

deekue commented Nov 19, 2018

Had a bit of a tinker with this. We need to add the metadata for the script before the instance starts.
That could be done on the -base instance template, then have a path check in the script to prevent running it twice.

Looking at cribbing a bunch of stuff off of the CloudyGamer install script

@putty182 putty182 added this to the v0.2.0 milestone Nov 22, 2018
@putty182
Copy link
Member Author

Agreed; the "base" template can be created with the relevant metadata to run a startup script that fetches and executes cloudygamer.psm1 or similar.

Once installation is complete, we can use powershell commands to update the instance group over to the "normal" template so these scripts only run once (e.g. during setup)

@deekue
Copy link
Collaborator

deekue commented Nov 22, 2018

I have a mostly working first pass in this branch.
It's my first time using Powershell, so it's probably not spot on.

@koderian
Copy link

Could you implement this in program it? https://chocolatey.org/

@deekue
Copy link
Collaborator

deekue commented Nov 23, 2018

@killedora do you mean rewrite the script to use Chocolatey? Or to include installing Chocolatey?

@deekue
Copy link
Collaborator

deekue commented Jan 16, 2019

plugged away on this some more over the weekend. merging the windows_startup_script branch with bugfix branch[1] gets a working windows software install in ~17mins.

lots more tinkering to do but it's working :)

[1] there's a merge conflict between the branches I need to work out

@deekue
Copy link
Collaborator

deekue commented Jan 22, 2019

Merged everything into develop and kept working from there.

@putty182
Copy link
Member Author

putty182 commented Mar 2, 2019

Thanks @deekue for all your hard work on this!

@putty182 putty182 closed this as completed Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants