/srv/irclogs.ubuntu.com/2014/08/14/#cloud-init.txt

smoserpraneshp, well it should add *a* user by default.01:01
praneshpsmoser: the user who’s making this vm?01:01
praneshpsmoser: i managed to figure that out01:02
smoserwell, defaul tuser per distro01:02
praneshpI accidentally had ssh-rsa twice in the key that I was passing in user-data01:02
praneshpthat was  breaking ssh-ing into the vm01:02
praneshpwhen I fixed that all was well01:02
smoserodd. i would have thought that'd be ok.01:02
praneshpreally? the key was wtong, I guess?01:03
smoseroh. ssh-rsa is not public key01:03
smoserthats private key01:03
smoserusers syntax is at: 01:03
smoser https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-config-user-groups.txt01:03
smoserhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt#L20701:04
smoser(line 207 is authorized_keys)01:04
smoserline 215 is *private* keys and public keys for those private keys.01:04
smoserie /etc/ssh/rsa_private.key (or whatever that path is)01:04
praneshpsmoser: sorry. really pulled in several directions here. I meant the publoc key01:05
praneshpit should look like ssh-rsa AAAAB3NzaC1yc2EAAAADAQABA<blah>01:05
praneshpfor some reason, I typed ssh-rsa, then pasted ssh-rsa AAAAB3NzaC1yc2EAAAADAQABA<blah>01:05
praneshpwhich was probably making the key funny01:06
smoserah. yeah, maybe.01:07
smoseri'm really sorry . i have to go though.01:07
=== mgagne is now known as Guest54676
=== zz_gondoi is now known as gondoi
=== alexpilotti_ is now known as alexpilotti
=== daxroc__ is now known as daxroc
=== ndonegan_ is now known as ndonegan
ndoneganIs there anyway to setup a fake metadata server to tell cloud-init to do a no-op?13:52
ndoneganFor context, using oz to build and customise images. However, on the customise part, it will attempt to do a cloud-init and fail, but have to wait for the timeout which adds to the image creation time.13:53
harmwoz shouldn't actually run cloud-init13:59
harmwjust install and enable it13:59
ndoneganWhen doing oz-customize (say when the devs are laying down their packages), it boots up the image using libvirt, and then goes in over ssh and installs packages, repos etc.14:00
ndoneganIt's not a massive deal, it's mostly just extra time, and I can empty /var/lib/cloud after.14:01
ndoneganBut it would be nice if there was some way to tell cloud-init to basically twiddle it's thumbs for this boot.14:02
harmwah yes, that stage..14:05
harmwyou could just disable cloud-init in final install stage and re-enable it in customize stage14:06
ndoneganThat's basically what I'm doing now, but it would be nice if there's a simpler way :)14:09
=== gondoi is now known as zz_gondoi
smoserndonegan, for the boot that you dont want it to do anything15:23
smoseryou can provide cloud-config that basically says : do nothing15:23
smoserie, you can feed cloud-config that provides the list of config_modules, init_modules and final_modules15:23
smoserand those can have whatever you need or want and no more.15:23
smoseryou dont *have* to ever clean /var/lib/cloud15:24
smoseras the next time you boot, it shoudl have a new instance15:24
smoserand that will trigger the running of things that are "per-instance"15:24
ndonegansmoser: so basically pass in a user data with empty config_modules, init_modules and final_modules?15:29
smoseryeah. cloud-init wont do much then.15:30
smoserand you can feed it NoCloud user-data and meta-data15:30
ndoneganEasy enough to put the link local addy on a dummy interface and "mock" the metadata service.15:31
smoserndonegan, https://gist.github.com/smoser/127865115:36
smoseryou can then put whatever user-data and meta-data you want in that python strugure there.15:37
ndonegansmoser: Nice! Thanks.15:41
=== zz_gondoi is now known as gondoi
=== Guest54676 is now known as mgagne
ndonegansmoser: Works a charm! A bit of customisation so that the returned ip is the client_ip, which probably wasn't 100% necessary, but it's doing what I wnat.16:55
harmwsmoser: you happen to know if bazaar supports .tar.gz downloads of branches?17:00
=== kwadrona1t is now known as kwadronaut
=== gondoi is now known as zz_gondoi
=== zz_gondoi is now known as gondoi
harmwsmoser: py27-cloud-init-0.7.5.txz19:00
harmwI've just created a real FreeBSD port :)19:00
harmwwell, plus 2 python dependencies actually19:02
=== gondoi is now known as zz_gondoi
=== zz_gondoi is now known as gondoi
=== xmltok_ is now known as xmltok
=== gondoi is now known as zz_gondoi

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