[11:43] <minfrin> Hi 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:54] <smatzek> I 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.