[ovirt-users] Passing custom script to cloud init using api

Juan Hernandez jhernand at redhat.com
Tue Sep 2 05:29:25 EDT 2014


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.


More information about the Users mailing list