[07:49] <blackboxsw> rharper: minor suggestion https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/372828
[08:01] <j4nd3r53n> Hi, I'm a total beginner with cloud-init, I'll probably ask some really elementary questions, just to warn you
[08:03] <rharper> ask away
[08:05] <j4nd3r53n> 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] <j4nd3r53n> a
[08:05] <j4nd3r53n> oops, big fingers it seem
[08:06] <j4nd3r53n> is tehre a way to write code in this IRC?
[08:08] <rharper> we use paste services, https://paste.ubuntu.com
[08:09] <rharper> 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] <rharper> cloud-init | 18.3-6         | stable       | source, all
[08:09] <rharper> cloud-init | 19.2-1         | testing      | source, all
[08:09] <rharper> cloud-init | 19.2-1         | unstable     | source, all
[08:10] <rharper> 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] <j4nd3r53n> OK - I'll have to recreate the instance, I'm still working on getting this running
[08:11] <j4nd3r53n> ah, that may be the problem
[08:12] <j4nd3r53n> but it is a #cloud-config script? I'll make it runnable
[08:13] <j4nd3r53n> I put it in pastebin: https://paste.ubuntu.com/p/jhGg26yKVg/
[08:13] <rharper> ok
[08:14] <rharper> 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] <rharper> when using awscli, you pass it in like this --user-data file://my_script.txt
[08:15] <rharper> or in the web panel, you can paste in your user-data
[08:15] <rharper> https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
[08:22] <j4nd3r53n> yeah, I got as far as getting the file uploaded to the right place via terraform
[08:23] <j4nd3r53n> but cloud-init ignored it - I'll try changing the permissions and see if it works; I'll let you know
[08:30] <j4nd3r53n> yep, that worked like a charm! Thanks for helping me, really appreciate it
[09:12] <rharper> j4nd3r53n: great!
[09:36] <Odd_Bloke> 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] <blackboxsw> thx Odd_Bloke, clicky clicked all the approves
[09:50] <rharper> Odd_Bloke: blackboxsw: thanks
[10:15] <Odd_Bloke> rharper: blackboxsw: https://code.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init/+merge/372864
[13:30] <smoser> DavidGamba:
[13:30] <smoser> bah. sorry.
[14:27] <blackboxsw> Odd_Bloke: rharper  new SRU branches https://trello.com/c/yqnRLAbY/1131-sru-cloud-init-19236-xenial-bionic-disco please review
[14:32] <smoser> ugh.
[14:32] <smoser> really need to make public jenkins public
[14:32] <smoser> https://code.launchpad.net/~ruansx/cloud-init/+git/cloud-init/+merge/372445
[14:33] <blackboxsw> smoser: +1 looking
[14:39] <smoser> blackboxsw: i got it. and repllied
[14:39] <blackboxsw> sorry smoser mid-sru upload and tripped on vpn connectivity
[14:39] <blackboxsw> thx