[00:32] anyone able to help me with cloud-init write_files module? Keep running into `util.py[WARNING]: Failed loading yaml blob. Invalid format at line 147 column 1: "while scanning a simple key` [00:33] my write_files module looks like this [00:33] ``` [00:33] write_files: [00:33]   - content: "this is a test" [00:33]     path: /etc/chef/test1 [00:33] ``` [00:39] what's on line 147 of the user-data file? [00:41] so using the data sources from TF to create the user-data file, and 147 has a commented line on it... [00:42] unless it just can't have comments? [00:42] communts are fine [00:44] give me 3 min, just rebuilding now and have removed everything but the three write_file module lines [00:44] check the user-data stored in /var/lib/cloud/instance/ [00:51] okay just chucking those three lines in works [00:51] yeah I suspect there error is elsewhere [00:52] Do you know how to add multiple lines via the contents? just trying to pass some certs onto a machine [00:52] appreciate the help ofc [00:52] try again and have a look at the user-data stored in /var/lib/cloud/instance to try and find line 147 there [00:53] yeah, it's documented in the examples: https://cloudinit.readthedocs.io/en/latest/topics/modules.html#write-files [00:53] perhaps you have a tab instead of spaces somewhere in the user data? [01:01] yeah looking now at the user-data [01:03] yeah figured it out [01:03] there is also "cloud-init schema -c user-data.yaml" to validate a file [01:03] i have a variable in my comment that apparently still resolves [01:04] and its a pem key, so variable in the comment still resolves and the rest of the pem key is no longer commented [01:04] silly but ty [01:04] hadn't come across the /var/lib/cloud/instance directory before (been using cloud-init for like all of 4 days) so very helpful ty ty === VoliKoN5 is now known as VoliKoN [01:40] minimal one more q for you if that's sweet? Trying to pass that same pem key as a var in the write_files module but it seems like the first line gets spaced properly, and the rest don't... Any way to pass a string with a newline in it and have it properly spaced? [01:41] first line is like this vs last line [01:41] `      -----BEGIN RSA PRIVATE KEY-----` [01:41] `-----END RSA PRIVATE KEY-----` [01:43] i guess could just replace all the newlines with \n\t but that seems iffy lol [01:50] Matt53: on the same page, if you look at the CA Certificates section you'll see an example of a cert spaced equally [01:50] so just added the same number of spaces in front of each line === IchabodCrane is now known as DalekSec === VoliKoN8 is now known as VoliKoN === VoliKoN2 is now known as VoliKoN === VoliKoN5 is now known as VoliKoN === djhankb8 is now known as djhankb === VoliKoN9 is now known as VoliKoN === VoliKoN1 is now known as VoliKoN === jrm2 is now known as jrm === VoliKoN9 is now known as VoliKoN === VoliKoN2 is now known as VoliKoN [16:39] falcojr: what's the difference between low and wishlist? [17:10] wishlist isn't actually a bug === VoliKoN3 is now known as VoliKoN [19:19] falcojr: it's part of the refactoring effort, not sure what the best destination is for that === VoliKoN7 is now known as VoliKoN === janitha74 is now known as janitha7 [22:00] wishlist is good === VoliKoN0 is now known as VoliKoN