From: Steven Dake Date: Fri, 25 May 2012 00:12:27 +0000 (-0700) Subject: Allow login to U10 jeos launched from heat X-Git-Tag: 2014.1~1788 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c3256b508334396d78c7faeec255c732faea7fe2;p=openstack-build%2Fheat-build.git 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 --- diff --git a/heat/cloudinit/config b/heat/cloudinit/config index a5f2771e..2efbd19a 100644 --- a/heat/cloudinit/config +++ b/heat/cloudinit/config @@ -1,4 +1,5 @@ -#cloud-config +user: ec2-user + cloud_config_modules: - locale - set_hostname diff --git a/heat/jeos/U10-amd64-cfntools-jeos.tdl b/heat/jeos/U10-amd64-cfntools-jeos.tdl index 0440e365..5ea4db18 100644 --- a/heat/jeos/U10-amd64-cfntools-jeos.tdl +++ b/heat/jeos/U10-amd64-cfntools-jeos.tdl @@ -11,7 +11,7 @@ Ubuntu 10.04 -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-*