/srv/irclogs.ubuntu.com/2014/12/04/#cloud-init.txt

=== harlowja_ is now known as harlowja_away
=== shardy_z is now known as shardy
=== harlowja_away is now known as harlowja_
xenolhi, I am trying to setup cloud-init and I would like to setup root password, which is provided by SmartOS datasource as root_pw metadata. However, I do see anything in the source that sets up the root password19:11
xenolis there a way how to achieve this?19:12
=== ijw__ is now known as ijw_
tennissmoser: Trying to set an id other than ubuntu to be the system default. I notice that cloud-init creates a file called /etc/sudoers.d/90-cloud-init-users.  Can cloud-init generate this file with my alternative user id in it, or do I have to manually zap it like what is described here: http://alestic.com/2014/01/ec2-change-username20:26
xenolcan cloud-init set root password?21:08
smoserif you just define it in the users, it might not know any better.21:25
smosertennis, you just provide the user you want in user-data21:25
smoseryeah, as that blog post says.21:25
smoserxenol, similar answer. 21:26
smoserhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config-user-groups.txt21:26
smoseryou might be able to do:21:26
smoser users:21:26
smoser  - default21:26
smoser  - name: root21:26
smoser   passwd: foo21:26
xenolsmoser: I have password available by the metadata service and I would like to get it from there if possible21:27
smoserhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt#L56521:27
smoserso cloud-init probably can't direclyt do it like that. 21:27
smoseri'm not *opposed* to a feature ot pull it from the openstack metadata service21:27
smoserbut really thats a regression21:27
smoseruse ssh public keys21:27
xenolso, I have a default cloud.cfg, which is slightly modified to suit my needs. If I want to add users, shoudl I move cloud.cfg contents with "users" block into metadata service?21:37
smoseryou mean to user-data21:39
xenolI have defined datasource_list in my cloud.cfg. I suppose that should stay there and the rest moved to user-data?21:40
smoseryeah,, generally thats more dynamic. although user can override what is in cloud.cfg through user-data21:42
tennissmoser: Thanks!  Yeah, I have tiny script (like the blog post) which I run just before a reboot.  21:43
tennistennis: testing21:45
xenolsmoser: the passwd needs to be a hash, right? 22:31
kwadronautxenol: i agree with smoser, use ssh public keys, generate passwords.22:42
xenolI am generating them creating virtual machines (I'm not giving the user the ability to input his password). I just to this because not every user has a SSH key and expects password22:45
xenolThis way I am able to offer both solutions22:45
tennissmoser: re the usermod to change the default user.  How can that work for the default id if it is being called by the (current) default?23:07

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