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

Adding support for googlecompute startup scripts. #3639

Merged
merged 1 commit into from
Jul 27, 2016
Merged

Adding support for googlecompute startup scripts. #3639

merged 1 commit into from
Jul 27, 2016

Conversation

crunk1
Copy link
Contributor

@crunk1 crunk1 commented Jun 21, 2016

Added Retry method to googlecompute package. Used for polling with exponential backoff.
Added GetSerialPortOutput to googlecompute Drivers.
Added StepWaitInstanceStartup (and associated test) to googlecompute builder package which waits for an instance startup-script to finish.

Tested googlecompute package with 'go test' and also performed builds
with a startup script and without a startup script.

@crunk1
Copy link
Contributor Author

crunk1 commented Jun 21, 2016

@erjohnso

@erjohnso
Copy link
Contributor

@crunk1
Copy link
Contributor Author

crunk1 commented Jun 21, 2016

@erjohnso, done.

@erjohnso
Copy link
Contributor

Thanks @crunk1, this looks good to me.

@crunk1
Copy link
Contributor Author

crunk1 commented Jul 8, 2016

Ping?

@erjohnso
Copy link
Contributor

/cc @duftler in case this addition would be useful to you and you'd like a chance to review / comment.

@duftler
Copy link

duftler commented Jul 12, 2016

LGTM. Nice enhancement. We'll add support for this new capability to Spinnaker as well.

@erjohnso
Copy link
Contributor

Great.

@cbednarski - please feel free to review / merge.

- Startup scripts can be provided through the instance creation metadata field 'startup-script'.
- Script log can be copied to a GCS location by setting the metadata field 'startup-script-log-dest'.
Added Retry method to googlecompute package.
Added GetSerialPortOutput to googlecompute Drivers.
Added StepWaitInstanceStartup (and associated test) which waits for an
instance startup-script to finish.
Changed the instance service account to use the same service account as the one provided in the Packer config template. It was the project default service account.

Tested googlecompute package with 'go test' and also performed builds
with a startup script and without a startup script.
@erjohnso erjohnso merged commit 95cffca into hashicorp:master Jul 27, 2016
@cbednarski
Copy link
Contributor

Thanks @erjohnso !

rickard-von-essen added a commit to rickard-von-essen/packer that referenced this pull request Apr 2, 2017
Fixes issue with cross Project builds.

Closes hashicorp#4608

Regression introduced in PR hashicorp#3639
rickard-von-essen added a commit to rickard-von-essen/packer that referenced this pull request Apr 2, 2017
Fixes issue with cross Project builds.

Closes hashicorp#4608

Regression introduced in PR hashicorp#3639
dayglojesus pushed a commit to dayglojesus/packer that referenced this pull request Apr 6, 2017
Fixes issue with cross Project builds.

Closes hashicorp#4608

Regression introduced in PR hashicorp#3639
@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants