holtgrewe | Hi. openstack.cloud.server does not support putting files into the configdrive, does it? I tried to add this locally but got stuck. The python client puts in the result of `io.open(path, 'rb')` which cannot be JSON serialized and thus not easily be pushed through Ansible... | 15:37 |
---|---|---|
sshnaidm | holtgrewe, can you show an example of what you're doing? | 15:43 |
holtgrewe | sshnaidm, I want to do the equivalent of this here: https://docs.openstack.org/nova/queens/user/config-drive.html#enable-and-access-the-configuration-drive and pass in /etc/network/interfaces | 15:44 |
holtgrewe | I can set `config_drive: true` in `openstack.cloud.server` which generates the config drive correctly but I cannot override any file inside. | 15:45 |
sshnaidm | holtgrewe, probably it's not implemented, I didn't try it before.. | 15:46 |
holtgrewe | sshnaidm, I tried to add this. However, looking at the python openstack client, you need to pass in a dict {"/path/to/file": io.open("path/to/local/file", "rb") } | 15:46 |
holtgrewe | sshnaidm, And if you try to do this then ansible tries to serialize the result of io.open() through to JSON which does not work. | 15:47 |
sshnaidm | holtgrewe, you can put a patch and probably we can find out something | 15:48 |
holtgrewe | sshnaidm, OK, thanks | 15:51 |
opendevreview | Manuel Holtgrewe proposed openstack/ansible-collections-openstack master: Adding "files/config_drive_files" to server module. https://review.opendev.org/c/openstack/ansible-collections-openstack/+/819657 | 16:16 |
*** holtgrewe is now known as holtgrewe^away | 16:19 | |
holtgrewe^away | sshnaidm, let me know if you need anything else | 16:19 |
*** sshnaidm is now known as sshnaidm|afk | 16:22 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!