/srv/irclogs.ubuntu.com/2019/09/17/#cloud-init.txt

=== cpaelzer__ is now known as cpaelzer
blackboxswrharper: minor suggestion https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/37282807:49
j4nd3r53nHi, I'm a total beginner with cloud-init, I'll probably ask some really elementary questions, just to warn you08:01
rharperask away08:03
j4nd3r53nhere'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
j4nd3r53na08:05
j4nd3r53noops, big fingers it seem08:05
j4nd3r53nis tehre a way to write code in this IRC?08:06
rharperwe use paste services, https://paste.ubuntu.com08:08
rharperj4nd3r53n: 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
rharpercloud-init | 18.3-6         | stable       | source, all08:09
rharpercloud-init | 19.2-1         | testing      | source, all08:09
rharpercloud-init | 19.2-1         | unstable     | source, all08:09
rharperper-once scripts run via runparts, so it usually only needs to be marked executable (chmod 0755 /var/lib/cloud/scripts/per-once/my-script-file08:10
j4nd3r53nOK - I'll have to recreate the instance, I'm still working on getting this running08:11
j4nd3r53nah, that may be the problem08:11
j4nd3r53nbut it is a #cloud-config script? I'll make it runnable08:12
j4nd3r53nI put it in pastebin: https://paste.ubuntu.com/p/jhGg26yKVg/08:13
rharperok08:13
rharperah, 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 too08:14
rharperwhen using awscli, you pass it in like this --user-data file://my_script.txt08:15
rharperor in the web panel, you can paste in your user-data08:15
rharperhttps://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html08:15
j4nd3r53nyeah, I got as far as getting the file uploaded to the right place via terraform08:22
j4nd3r53nbut cloud-init ignored it - I'll try changing the permissions and see if it works; I'll let you know08:23
j4nd3r53nyep, that worked like a charm! Thanks for helping me, really appreciate it08:30
rharperj4nd3r53n: great!09:12
Odd_Blokeblackboxsw: 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:36
blackboxswthx Odd_Bloke, clicky clicked all the approves09:37
rharperOdd_Bloke: blackboxsw: thanks09:50
Odd_Blokerharper: blackboxsw: https://code.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init/+merge/37286410:15
smoserDavidGamba:13:30
smoserbah. sorry.13:30
blackboxswOdd_Bloke: rharper  new SRU branches https://trello.com/c/yqnRLAbY/1131-sru-cloud-init-19236-xenial-bionic-disco please review14:27
smoserugh.14:32
smoserreally need to make public jenkins public14:32
smoserhttps://code.launchpad.net/~ruansx/cloud-init/+git/cloud-init/+merge/37244514:32
blackboxswsmoser: +1 looking14:33
smoserblackboxsw: i got it. and repllied14:39
blackboxswsorry smoser mid-sru upload and tripped on vpn connectivity14:39
blackboxswthx14:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!