b49a96da29
Change-Id: Id63c1bcfc34058eb7285698ba9bf86d1cf2025a6
30 lines
717 B
YAML
30 lines
717 B
YAML
heat_template_version: 2014-10-16
|
|
|
|
parameters:
|
|
# Can be overridden via parameter_defaults in the environment
|
|
node_admin_username:
|
|
type: string
|
|
default: heat-admin
|
|
|
|
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}
|
|
|
|
outputs:
|
|
OS::stack_id:
|
|
value: {get_resource: userdata}
|