Allow login to U10 jeos launched from heat

cloudinit on debian expects the user "ubuntu" - hard code to ec2-user
useradd doesn't create home directories on U10 without -m option

Change-Id: Iaaee6df560b60e203b17a36bba57ac410ad6ed56
Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Steven Dake 2012-05-24 17:12:27 -07:00
parent 4c1adc193f
commit c3256b5083
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#cloud-config user: ec2-user
cloud_config_modules: cloud_config_modules:
- locale - locale
- set_hostname - set_hostname

View File

@ -11,7 +11,7 @@
<description>Ubuntu 10.04</description> <description>Ubuntu 10.04</description>
<commands> <commands>
<command name='commands'> <command name='commands'>
apt-get -y upgrade;apt-get -y install cloud-init;/usr/sbin/useradd ec2-user;echo -e 'ec2-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers;chmod +x /opt/aws/bin/cfn-* apt-get -y upgrade;apt-get -y install cloud-init;/usr/sbin/useradd -m ec2-user;echo -e 'ec2-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers;chmod +x /opt/aws/bin/cfn-*
</command> </command>
</commands> </commands>
<files> <files>