Previously user ids of new instances were limited to ec2-user. This patch adds a new configuration option to be placed in /etc/heat/heat-engine.conf called "default_instance_user" which allows the default of ec2-user to be overriden. Note for reviewers that runcmd does not work properly. It was actually running after the loguserdata.py script finished execution. Fixes: Bug #1101347 Change-Id: Ica2dbe63d9dcbce8bb8de298eba452c34ab173d9changes/02/24402/4
parent
5862514aef
commit
ac8b8f9c42
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
setenforce 0
|
||||
useradd -m @INSTANCE_USER@
|
||||
echo -e '@INSTANCE_USER@\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||
|
||||
# Do not remove - the cloud boothook should always return success
|
||||
exit 0
|
Loading…
Reference in new issue