<div dir="auto">Thanks for the help here.<div dir="auto"><br></div><div dir="auto">Actually, adding files via config-drive is exactly what I want but I can't see how to do that other than via the default 'user-data'. Cisco CSR1000v looks for a file called "ios-config" on the config-drive for example.</div><div dir="auto"><br></div><div dir="auto">Without this api i don't see how to add these files?</div><div dir="auto"><br></div><div dir="auto">Rich</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 Jan 2017 07:46, "Clark Boylan" <<a href="mailto:cboylan@sapwetik.org">cboylan@sapwetik.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Dec 29, 2016, at 02:54 AM, Richard Cunningham wrote:<br>
> Hi there,<br>
><br>
> I am trying to use ansible os_server module (which uses shade) to start a<br>
> new VM and copy files to the instance.  I can't find this option exposed<br>
> in<br>
> the ansible module and when I check the shade docs they suggest that this<br>
> option is deprecated:<br>
><br>
> <a href="http://docs.openstack.org/infra/shade/usage.html" rel="noreferrer" target="_blank">http://docs.openstack.org/<wbr>infra/shade/usage.html</a><br>
><br>
><br>
>    - *files* – (optional, deprecated) A dict of files to overwrite on the<br>
>    server upon boot. Keys are file names (i.e. /etc/passwd) and values<br>
>    are<br>
>    the file contents (either as a string or as a file-like object). A<br>
>    maximum<br>
>    of five entries is allowed, and each file must be 10k or less.<br>
><br>
><br>
> Is there another newer way to achieve this?<br>
<br>
After a little digging I have run into this message from the Nova PTL<br>
[0]. The "files" feature is provided via "personalities" which are being<br>
deprecated in the Nova API itself. The suggested alternative in that<br>
thread is to use config drive. You may also need some sort of initial<br>
boot configurator like cloud-init or glean to go along with the config<br>
drive, but that should get you what you need.<br>
<br>
[0]<br>
<a href="http://lists.openstack.org/pipermail/openstack-operators/2016-November/012134.html" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>pipermail/openstack-operators/<wbr>2016-November/012134.html</a><br>
<br>
Hope this helps,<br>
Clark<br>
</blockquote></div></div>