=== cpaelzer__ is now known as cpaelzer [07:49] rharper: minor suggestion https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/372828 [08:01] Hi, I'm a total beginner with cloud-init, I'll probably ask some really elementary questions, just to warn you [08:03] ask away [08:05] here's the first one: using terraform, I've set up an EC2 instance in AWS running Debian; it comes with cloud-init 0.7.9 installed. I have also uploaded a simple script to /var/lib/cloud/scripts/per-once, but it doesn't seem to get run at all (I've looked in the logs) [08:05] a [08:05] oops, big fingers it seem [08:06] is tehre a way to write code in this IRC? [08:08] we use paste services, https://paste.ubuntu.com [08:09] j4nd3r53n: typically we want to see the contents of /var/log/cloud-init.log ; 0.7.9 is quite old, you may be interested in seeing if you can upgrade to newer cloud-init in stable, [08:09] cloud-init | 18.3-6 | stable | source, all [08:09] cloud-init | 19.2-1 | testing | source, all [08:09] cloud-init | 19.2-1 | unstable | source, all [08:10] per-once scripts run via runparts, so it usually only needs to be marked executable (chmod 0755 /var/lib/cloud/scripts/per-once/my-script-file [08:11] OK - I'll have to recreate the instance, I'm still working on getting this running [08:11] ah, that may be the problem [08:12] but it is a #cloud-config script? I'll make it runnable [08:13] I put it in pastebin: https://paste.ubuntu.com/p/jhGg26yKVg/ [08:13] ok [08:14] ah, that's regular user-data; it needs to be provided to cloud-init via the platform's user-data include, on ec2 you can include this via the launch too [08:15] when using awscli, you pass it in like this --user-data file://my_script.txt [08:15] or in the web panel, you can paste in your user-data [08:15] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html [08:22] yeah, I got as far as getting the file uploaded to the right place via terraform [08:23] but cloud-init ignored it - I'll try changing the permissions and see if it works; I'll let you know [08:30] yep, that worked like a charm! Thanks for helping me, really appreciate it [09:12] j4nd3r53n: great! [09:36] blackboxsw: I've Approve'd https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/372828, do you want to re-review and Approved it if you're happy? [09:37] thx Odd_Bloke, clicky clicked all the approves [09:50] Odd_Bloke: blackboxsw: thanks [10:15] rharper: blackboxsw: https://code.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init/+merge/372864 [13:30] DavidGamba: [13:30] bah. sorry. [14:27] Odd_Bloke: rharper new SRU branches https://trello.com/c/yqnRLAbY/1131-sru-cloud-init-19236-xenial-bionic-disco please review [14:32] ugh. [14:32] really need to make public jenkins public [14:32] https://code.launchpad.net/~ruansx/cloud-init/+git/cloud-init/+merge/372445 [14:33] smoser: +1 looking [14:39] blackboxsw: i got it. and repllied [14:39] sorry smoser mid-sru upload and tripped on vpn connectivity [14:39] thx