/srv/irclogs.ubuntu.com/2015/06/28/#cloud-init.txt

subwayAny recommendations on how I might go about templating cloud-config variables at instance boot-time?22:41
subwayFor instance, generating a hostname that contains the instance-id22:42
subwayI'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
subwayWhen 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!