[15:17] <somepad> Hi all, I have a php application which is going to be deployed in cloud using vms. I can build disk image with an app and all required software, but during the vm creation it is needed to place a config.php crafted for this particular vm. So, is it possible to use cloud-init to prepare a file using jinja2 template and drop it to the disk?
[15:19] <minimal> somepad: "runcmd" with script to do the work?
[15:22] <somepad> Not sure, I never used cloud-init basically. :(
[15:23] <minimal> somepad: https://cloudinit.readthedocs.io/en/latest/
[15:25] <somepad> From the examples, write_files looks like a solution, but it want the content to be inside cloud-config...
[15:28] <somepad> I should give it a try probably
[15:28] <minimal> write_files can create files but not sure if it handles jinja templating
[15:29] <minimal> "want the content to be inside cloud-config" - unclear what you mean, the likes of "write_files" would be part of user-data