3c6ec654b4
Heat now supports release name aliases, so we can replace the inconsistent mix of date related versions with one consistent version that aligns with the supported version of heat for this t-h-t branch. This should also help new users who sometimes copy/paste old templates and discover intrinsic functions in the t-h-t docs don't work because their template version is too old. Change-Id: Ib415e7290fea27447460baa280291492df197e54
36 lines
858 B
YAML
36 lines
858 B
YAML
heat_template_version: ocata
|
|
|
|
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}
|