subway | Any recommendations on how I might go about templating cloud-config variables at instance boot-time? | 22:41 |
---|---|---|
subway | For instance, generating a hostname that contains the instance-id | 22:42 |
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:44 |
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. | 22:45 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!