b8eefd1de9
When the the instance_user value from heat.conf is set to empty string/None and the user doesn't specify Server's admin_user property, Heat will not create a custom cloud-init user. The instance_user config option and admin_user property are deprecated and will be removed in Juno where this behaviour becomes the default. AWS::EC2::Instance will still create a cloud-init user for CloudFormation compatibility. In the absence of the instance_user config option, 'ec2-user' will be used. Closes-Bug: #1257410 Change-Id: I42dda36045f79be079b2030669284e9db71463d7
19 lines
552 B
Bash
Executable File
19 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# FIXME(shadower) this is a workaround for cloud-init 0.6.3 present in Ubuntu
|
|
# 12.04 LTS:
|
|
# https://bugs.launchpad.net/heat/+bug/1257410
|
|
#
|
|
# The old cloud-init doesn't create the users directly so the commands to do
|
|
# this are injected though nova_utils.py.
|
|
#
|
|
# Once we drop support for 0.6.3, we can safely remove this.
|
|
${add_custom_user}
|
|
|
|
# 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
|