1 heat_template_version: pike
4 This is a template which will fetch the ssh host public key.
8 description: ID of the node to apply this config to
11 default: ['CREATE', 'UPDATE']
12 type: comma_delimited_list
14 List of stack actions that will trigger any deployments in this
15 templates. The actions will be an empty list of the server is in the
16 toplevel DeploymentServerBlacklist parameter's value.
20 type: OS::Heat::SoftwareConfig
29 test -e '/etc/ssh/ssh_host_rsa_key.pub' && cat /etc/ssh/ssh_host_rsa_key.pub > $heat_outputs_path.rsa
30 test -e '/etc/ssh/ssh_host_ecdsa_key.pub' && cat /etc/ssh/ssh_host_ecdsa_key.pub > $heat_outputs_path.ecdsa
31 test -e '/etc/ssh/ssh_host_ed25519_key.pub' && cat /etc/ssh/ssh_host_ed25519_key.pub > $heat_outputs_path.ed25519
33 SshHostPubKeyDeployment:
34 type: OS::Heat::SoftwareDeployment
36 config: {get_resource: SshHostPubKeyConfig}
37 server: {get_param: server}
38 actions: {get_param: deployment_actions}
39 name: SshHostPubKeyDeployment
44 description: Host ssh public key (ecdsa)
45 value: {get_attr: [SshHostPubKeyDeployment, ecdsa]}
47 description: Host ssh public key (rsa)
48 value: {get_attr: [SshHostPubKeyDeployment, rsa]}
50 description: Host ssh public key (ed25519)
51 value: {get_attr: [SshHostPubKeyDeployment, ed25519]}