<div dir="ltr">Hi Juan,<br><br>Thanks for the solution.<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span>-- <br></span>Regards
<br>Shanil
</div></div>
<br><br><div class="gmail_quote">On Tue, Sep 2, 2014 at 2:59 PM, Juan Hernandez <span dir="ltr">&lt;<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 09/02/2014 05:46 AM, Shanil S wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt; From the ovirt admin panel, there is an option to give the custom script<br>
&gt; in the cloud init ( Run Once-&gt; cloud init- &gt; Custom script ). Is there<br>
&gt; any ways to pass the custom script to cloud init using the rest api ?<br>
&gt;<br>
<br>
</div></div>The custom script should go inside the &quot;custom_script&quot; element inside<br>
the &quot;initialization&quot; element:<br>
<br>
  &lt;action&gt;<br>
    ...<br>
    &lt;initialization&gt;<br>
      &lt;cloud_init&gt;...&lt;/cloud_init&gt;<br>
      &lt;custom_script&gt;your custom script&lt;/custom_script&gt;<br>
    &lt;/initialization&gt;<br>
  &lt;/action&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta<br>
3ºD, 28016 Madrid, Spain<br>
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.<br>
</font></span></blockquote></div><br></div>