dedeidede | Can anyone help me, what are the four processes of cloud-init (cloud-config.service cloud-final.service cloud-init-local.service cloud-init.service) used for. | 04:37 |
---|---|---|
falcojr | dedeidede: https://cloudinit.readthedocs.io/en/latest/topics/boot.html explains all 4 (plus the generator) pretty well | 12:13 |
esposem | falcojr: I don't see your inline comments on https://github.com/canonical/cloud-init/pull/1453. Or do you mean to just use namedtuples? | 17:54 |
ubottu | Pull 1453 in canonical/cloud-init "cc_set_hostname: do not write 'localhost' when no hostname is given" [Open] | 17:54 |
mengesb | Greetings! Wanted to know what resources I might need to check out to run an instance metadata service in my data center such that it's compatible with cloud-init. Per recent recollection, we have a vmware infrastructure though I'm coming back up to speed so I'm still verifying that's the case. Searches are naturally difficult to word correctly so | 22:49 |
mengesb | was looking for a little help or directions around the internet to good resources | 22:49 |
blackboxsw | mengesb: generally cloud-init has a number of datasources instance metadata it is compatible with: https://cloudinit.readthedocs.io/en/latest/topics/datasources.html. Each one works a little differently. If you are getting up to speed on what datasource your current VMs have discovered, you can ssh into the instance and run right `cloud-id` ; `cloud-init status --long` or `sudo cloud-init query v1` to see the datasource type | 22:55 |
blackboxsw | if you are trying to get familiar with how cloud-init works, check out the tutorial which shows you LXC/LXD which is nocloud basedconfiguration: https://cloudinit.readthedocs.io/en/latest/topics/tutorial.html | 22:56 |
mengesb | i recall working with nocloud once; but was a long time ago | 22:58 |
mengesb | i'll have the infra folks get me access or run the `cloud-id` or `cloud-init` commands you referenced, so that I can get started there | 22:59 |
mengesb | are there such things as deploying an IMDS service? | 22:59 |
mengesb | I've used IMDS with gcp/aws/azure so I've come to just assume it exists over the years | 23:00 |
blackboxsw | mengesb: each of those specific dataources are highly available REST services that are exposed as a link locally accessible URL such as http://169.245.169.254/ or http://metadata.google.internal/computeMetadata/v1/. How the datasource IMDS structures and presents its configuration data is unique to the cloud platform or backplane. You could experiment a bit with writing your own using the nocloud-net datasource. | 23:10 |
blackboxsw | examples of what kind of interaction a given cloud uses against the IMDS it sets up are all in the _get_data functions of each datasource module https://github.com/canonical/cloud-init/tree/main/cloudinit/sources/ | 23:12 |
blackboxsw | which will give you bearings on how unique that setup is for each cloud | 23:12 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!