Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Instance Metadata #50

Open
rnavarro opened this issue Jul 24, 2015 · 6 comments
Open

Instance Metadata #50

rnavarro opened this issue Jul 24, 2015 · 6 comments

Comments

@rnavarro
Copy link

Is there a way to pass metadata to the provisioned instances?

In particular I'd like to pass a "startup-script-url" metadata parameter to the instances that bdutil creates:

--metadata startup-script-url=startup-script-url=gs://bucket/bootstrap.sh

so I can kick off a custom configuration of my nodes

This feature is documentation here:
https://cloud.google.com/sdk/gcloud/reference/compute/instances/create

@rnavarro
Copy link
Author

Hey Guys,

Any word on this? Could you point me in the direction on where/how I would do this? I can make a PR for this?

@AngusDavis
Copy link
Contributor

@rnavarro - Do you need different metadata per node? Or is a single metadata key for the entire cluster sufficient?

@rnavarro
Copy link
Author

@AngusDavis

Single is sufficient.

Our provisioning scripts figure out what to do per-node.

@rnavarro
Copy link
Author

@AngusDavis any guidance on this one?

@AngusDavis
Copy link
Contributor

@rnavarro - I have a POC working here: https://github.com/AngusDavis/bdutil/tree/metadata_tags

@rnavarro
Copy link
Author

@AngusDavis Awesome!

I'll check it out and kick the tires

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants