[22:41] <subway> Any recommendations on how I might go about templating cloud-config variables at instance boot-time?
[22:42] <subway> For instance, generating a hostname that contains the instance-id
[22:44] <subway> I've been accomplishing this by setting the hostname in a user-data script sent down in addition to the cloud-config I generate, but it seems this has introduced a race condition -- other services may start before cloud-init has executed my user-data script to update the hostanme.
[22:45] <subway> When setting hostname directly via cloud-config's hostname module, the race condition appears not to exist (though I haven't actually looked at the code, and it could be pure luck that the hostname is getting set before upstart starts other services.