Hi Juan,
Is there anyways to specify the custom script from a file in the xml ? ie,
i have a script in a file called script.sh and i would like to include this
script in the xml with the api call. Is there any methods for this ?
--
Regards
Shanil
On Tue, Sep 2, 2014 at 3:02 PM, Shanil S <xielesshanil(a)gmail.com> wrote:
Hi Juan,
Thanks for the solution.
--
Regards
Shanil
On Tue, Sep 2, 2014 at 2:59 PM, Juan Hernandez <jhernand(a)redhat.com>
wrote:
> On 09/02/2014 05:46 AM, Shanil S wrote:
> > Hi All,
> >
> > From the ovirt admin panel, there is an option to give the custom script
> > in the cloud init ( Run Once-> cloud init- > Custom script ). Is there
> > any ways to pass the custom script to cloud init using the rest api ?
> >
>
> The custom script should go inside the "custom_script" element inside
> the "initialization" element:
>
> <action>
> ...
> <initialization>
> <cloud_init>...</cloud_init>
> <custom_script>your custom script</custom_script>
> </initialization>
> </action>
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
>