/srv/irclogs.ubuntu.com/2013/09/06/#cloud-init.txt

=== alexpilotti_ is now known as alexpilotti
PedroAlvarezHi! How can I know if cloud-init is installed on my OS?10:10
PedroAlvarezbtw,. smoser, I hacked the setup script to support an older grep version.10:15
PedroAlvarezThe grep commands on the script are using perl regular expressions10:16
kwadronautPedroAlvarez: which OS are you using?11:20
PedroAlvarezkwadronaut: custom core linux distro11:21
kwadronauti don't know that one, i'd say use your package manager and see if it's installed, have a look in /etc/cloud* /var/log/cloud* do a find for CloudConfig on your filesystem.11:31
PedroAlvarezkwadronaut: Sorry, you miss understood me, Is not a distro.11:32
PedroAlvarezIt wasn't installed. Now I have it working in my OS, time to solve dependencies! :) thanks!11:33
smoserPedroAlvarez, so 'tools/read-dependencies' wsa giving you grief? if you have a suitable replacement for that grep, that is fine.12:48
PedroAlvarezsmoser: the grep commands in  'tools/read-dependencies' works fine without the '-P' option.12:54
PedroAlvarezsmoser: but I had to change the 'tools/read-version' grep's regular expression, using '[0-9][0-9]*' instead '\d+'.12:56
smoserPedroAlvarez, does this work for you: http://paste.ubuntu.com/6070291/12:58
PedroAlvarezsmoser: I did this and it worked: http://paste.ubuntu.com/6070304/13:01
smoserhttp://paste.ubuntu.com/6070306/13:02
smosercan you try that diff, pedro ?13:02
smoserPedroAlvarez, 13:02
smoseror i could do them both with sed. does your sed have '-n' ?13:04
smoserVERSION=$(sed -n '/^[0-9]\+[.][0-9]\+[.][0-9]\+:/ { s/://; p; :a;n; ba}' "$CHNG_LOG")13:08
PedroAlvarezsorry smoser: I cannot send you diff now.13:10
PedroAlvarezI used this and worked fine13:11
PedroAlvarezVERSION=$(grep "[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*:" "$CHNG_LOG"  | cut -f1 -d ":" | head -n 1)13:11
smoserwell, if youcould tell me if this works, i'd appreciate it.13:11
smoserhttp://paste.ubuntu.com/6070331/13:11
smoseri suspect it does13:11
smosersed -n is nothing new.13:11
PedroAlvarez-nSuppress automatic printing of pattern space13:11
PedroAlvarezsupported here ;)13:11
smoserright.13:11
smoserit was supported on aix in 1999, so i figure its pretty safe.13:12
PedroAlvarezsmoser: I will tell you later if it work, thanks for helping13:13
PedroAlvarezs/work/works/13:13
smoserhttp://paste.ubuntu.com/6071174/17:01
smoserharlowja, ^ is a "shell parser" 17:01
smoser http://paste.ubuntu.com/6071190/17:05
smoserand there it runs with 'bash -r'17:05
smoserhttps://gist.github.com/smoser/646670817:09
harlowjaholy crap17:15
harlowjayour shell foo is better than mine, ha17:16

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