/srv/irclogs.ubuntu.com/2015/08/18/#cloud-init.txt

=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
minfrinHi all. I have a quick question about ordering of sections in cloud-init. I have a "groups" section and a "write-files" section, and in the "write-files" section I need to assign group names that were created in the "groups" section. This doesn't work, because "write-files" runs before "groups", and "write-files" fails with the error group-not-found. Is there a way around this?11:43
smatzekI don't see one short of modifying /etc/cloud.cfg to change the order but I don't know what other effects that might have.  What you could do is use write files to write the files and groups to create the groups, and then add a runcmd section to do the chown since runcmd runs after both of them.11:54
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!