Update the template_version alias for all the templates to pike.
[apex-tripleo-heat-templates.git] / firstboot / userdata_heat_admin.yaml
1 heat_template_version: pike
2
3 parameters:
4   # Can be overridden via parameter_defaults in the environment
5   node_admin_username:
6     type: string
7     default: heat-admin
8
9   node_admin_extra_ssh_keys:
10     type: comma_delimited_list
11     default: []
12
13 description: >
14   Uses cloud-init to create an additional user with a known name, in addition
15   to the distro-default user created by the cloud-init default.
16
17 resources:
18   userdata:
19     type: OS::Heat::MultipartMime
20     properties:
21       parts:
22       - config: {get_resource: user_config}
23
24   # Note this requires cloud-init >= 0.7.2 ref bug #1100920
25   user_config:
26     type: OS::Heat::CloudConfig
27     properties:
28       cloud_config:
29         user: {get_param: node_admin_username}
30         ssh_authorized_keys: {get_param: node_admin_extra_ssh_keys}
31
32
33 outputs:
34   OS::stack_id:
35     value: {get_resource: userdata}