I assume you refer to this userData [1]. I'm not a CloudStack user, so
I don't know how that user data is expected to be used, but what you
propose makes sense to me (taking into account the size limitation of
that property).

Adding this feature should be pretty straightforward. You just have to
customize the DeployVirtualMachineOptions used to create the VM to
include the encoded userData, extracted from the given metadata. Do
you want to open a JIRA issue to track this and try contributing a
patch as a pull request? I'll be happy to help if you're interested in
contributing.

I.

[1] 
https://github.com/jclouds/jclouds/blob/master/apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/DeployVirtualMachineOptions.java#L208-L222
[2] 
https://github.com/jclouds/jclouds/blob/master/apis/cloudstack/src/main/java/org/jclouds/cloudstack/compute/strategy/CloudStackComputeServiceAdapter.java#L166

On 26 August 2015 at 18:02, MANIE Irmo <irmo.ma...@leonteq.com> wrote:
> Hi,
>
> In the compute service api there is a template option 'userMetaData', but 
> this data is merged with the tags in the CloudStack adapter. [1]
> In the CloudStack specific options there is also a 'userData' property [2] . 
> Is there plan to be able to populate this via the general template options 
> and embed this in the CloudStackTemplateOptions?
> That specific property is very useful for our provisioning because it becomes 
> available via a simple VM local REST api [3]. This way we can figure out what 
> to install on the VM without having to consult CloudStack for the  tags, 
> since these are not available via that local api.
>
> This is for me the only reason I now have to use the CloudStack specific 
> compute api so I don't benefit from all the high level goodies.
>
> - Irmo
>
> [1] 
> https://github.com/jclouds/jclouds/blob/master/apis/cloudstack/src/main/java/org/jclouds/cloudstack/compute/strategy/CloudStackComputeServiceAdapter.java#L256
> [2] 
> https://github.com/jclouds/jclouds/blob/master/apis/cloudstack/src/main/java/org/jclouds/cloudstack/compute/options/CloudStackTemplateOptions.java
> [3] http://cloudstack-administration.readthedocs.org/en/latest/api.html
>
>
>
>
>
> =========== The Leonteq Mail Gateway made the following annotation ===========
>
> This e-mail is confidential. If you are not the intended recipient, you should
>
> not copy it, re-transmit it, use it or disclose its contents, but should
>
> return it to the sender immediately and delete the copy from your system.
>
> Leonteq Securities is not responsible for, nor endorses, any opinion,
>
> recommendation, conclusion, solicitation, offer or agreement or any
>
> information contained in this communication.
>
> Leonteq Securities cannot accept any responsibility for the accuracy or
>
> completeness of this message as it has been transmitted over a public network.
>
> If you suspect that the message may have been intercepted or amended, please
>
> call the sender. Should you require any further information, please contact
>
> the Compliance Manager on 
> complia...@leonteq.com<mailto:complia...@leonteq.com>.
>
>
>
> ==============================================================================

Reply via email to