blob: 63d5bbf8ef9d6c76b0c9eff31aaa24eb43653b34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
heat_template_version: 2016-10-14
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}
|