heat/heat/cloudinit/boothook.sh

12 lines
318 B
Bash
Executable File

#!/bin/bash
setenforce 0
useradd -m @INSTANCE_USER@
echo -e '@INSTANCE_USER@\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
# in case heat-cfntools has been installed from package but no symlinks
# are yet in /opt/aws/bin/
cfn-create-aws-symlinks
# Do not remove - the cloud boothook should always return success
exit 0