Hi Andrea

So I deduce from that + 
https://coreos.com/docs/running-coreos/cloud-providers/google-compute-engine/ 
<https://coreos.com/docs/running-coreos/cloud-providers/google-compute-engine/>,
 that for cloud-config, I should add a user metadata “user-data”=<the content 
of the cloud-init.yaml file>

Interesting!

Thanks

(Y)

> On Mar 8, 2015, at 6:41 PM, Andrea Turli <[email protected]> wrote:
> 
> Hi Yaron,
> 
> looking at the code 
> https://github.com/jclouds/jclouds-labs-google/blob/master/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/compute/GoogleComputeEngineServiceAdapter.java#L136-L137
>  
> <https://github.com/jclouds/jclouds-labs-google/blob/master/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/compute/GoogleComputeEngineServiceAdapter.java#L136-L137>
>  seems that should be able to do it
> 
> According to the GCE doc at 
> https://cloud.google.com/compute/docs/startupscript 
> <https://cloud.google.com/compute/docs/startupscript> a map entry like
> startup-script=install-apache.sh
> should be what you want to add to userMetadata.
> 
> HTH,
> Andrea
> 
> On Sun, Mar 8, 2015 at 5:05 PM Yaron Rosenbaum <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi
> 
> Is there a way to provide userdata (something like, cloud-init) using the GCE 
> provider?
> I see that there’s no GoogleComputeEngineTemplateOptions.userData(..)  
> method, the equivalent of AWSEC2TemplateOptions’s userData(..) .
> 
> Thanks!
> 
> (Y)
> 

Reply via email to