jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <andrea.tu...@gmail.com>
Subject Re: cloud-config / 'userdata' in GCE provider
Date Sun, 08 Mar 2015 20:20:23 GMT
Not sure about the right key, but I think that's the idea.

Let us know about the result!

Andrea
Il 08/mar/2015 20:50 "Yaron Rosenbaum" <yaron.rosenbaum@gmail.com> ha
scritto:

> Hi Andrea
>
> So I deduce from that +
> 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 <andrea.turli@gmail.com> 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
>  seems that should be able to do it
>
> According to the GCE doc at
> 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 <yaron.rosenbaum@gmail.com>
> 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)
>>
>>
>

Mime
View raw message