tripleo-heat-templates/firstboot/userdata_heat_admin.yaml
Carlos Camacho 927495fe3d Change template names to queens
The new master branch should point now to queens instead of pike.

So, HOT templates should specify that they might contain features
for queens release [1]

[1]: https://docs.openstack.org/heat/latest/template_guide/hot_spec.html#queens

Change-Id: I7654d1c59db0c4508a9d7045f452612d22493004
2017-11-23 10:15:32 +01:00

36 lines
859 B
YAML

heat_template_version: queens
parameters:
# Can be overridden via parameter_defaults in the environment
node_admin_username:
type: string
default: heat-admin
node_admin_extra_ssh_keys:
type: comma_delimited_list
default: []
description: >
Uses cloud-init to create an additional user with a known name, in addition
to the distro-default user created by the cloud-init default.
resources:
userdata:
type: OS::Heat::MultipartMime
properties:
parts:
- config: {get_resource: user_config}
# Note this requires cloud-init >= 0.7.2 ref bug #1100920
user_config:
type: OS::Heat::CloudConfig
properties:
cloud_config:
user: {get_param: node_admin_username}
ssh_authorized_keys: {get_param: node_admin_extra_ssh_keys}
outputs:
OS::stack_id:
value: {get_resource: userdata}