<div dir="ltr">Kris's answer is correct--use user_data unless you have a reason not to. You could "munge" the user_data if you wanted to do something additional. You could also "munge" the cloud-image you are using to do something custom and/or fork cloud-init.<div><br></div><div>ref:</div><div><a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/4/html/End_User_Guide/user-data.html">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/4/html/End_User_Guide/user-data.html</a><br></div><div><a href="http://cloudinit.readthedocs.org/en/latest/topics/datasources.html">http://cloudinit.readthedocs.org/en/latest/topics/datasources.html</a><br></div><div><a href="http://cloudinit.readthedocs.org/en/latest/topics/examples.html">http://cloudinit.readthedocs.org/en/latest/topics/examples.html</a><br></div><div><br></div><div>Be the Guru, use the source!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 9:57 AM, Openstack Guru <span dir="ltr"><<a href="mailto:openstackguru@gmail.com" target="_blank">openstackguru@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello every one,</div><div><br></div><div>I would like to add some command's in cloud init to execute while building an instance. Please advice best way to accomplish this?</div><div><br></div><div>Thanks in advance.</div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><br></div>