=== andrewbogott is now known as Guest6437 === Daniel is now known as toolz [11:51] hi everyone [11:51] when I do : cloud-init query sys_info.uname [11:52] I get [11:52] ti [11:52] [ [11:52] "Linux", [11:52] "0.limesurvey.host", [11:52] "5.4.0-77-generic", [11:52] "#86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021", [11:52] "x86_64", [11:52] "x86_64" [11:52] ] [11:52] how would I access the 2nd string, only? [11:52] I need it in cloud-config [12:31] uname -n? [12:41] found a way to read it and output it using jinja [12:41] {{ sys_info.uname[1] }} [12:42] however this key seems to change value at some point so i get back a different value [12:42] so I am using {{ ds.meta_data.local_hostname }} [12:42] which works [12:43] falcojr uname-n would only work in the command section but I need to use it in the debconf module [13:09] there is stil something fishy though [13:41] I have another question: [13:42] A cloud init config may sometimes include sensitive information. What is the best way to wipe all config data, once cloud-init is finished? [13:45] the sensitive data gets stored in /run/cloud-init/instance-data-sensitive.json , but that file is only root readable and should get wiped on reboot [13:45] and same with cloud-init query. If you're not running as root, it shouldn't return the sensitive data [13:47] hm.. I can find copies of it in /var/lib/cloud/instances/12954850/user-data.txt [13:49] is that provider-specific or also from cloud-init? [13:50] there's no supported way to remove that data [14:05] Could I just do it as a last command before reboot? Or would I saw off the branch I am sitting on? Let's try ;) [14:35] ok, I can definitely say that cloud-init does not like that ;)