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
13 type: OS::Heat::SoftwareConfig
22 test -e '/etc/ssh/ssh_host_rsa_key.pub' && cat /etc/ssh/ssh_host_rsa_key.pub > $heat_outputs_path.rsa
23 test -e '/etc/ssh/ssh_host_ecdsa_key.pub' && cat /etc/ssh/ssh_host_ecdsa_key.pub > $heat_outputs_path.ecdsa
24 test -e '/etc/ssh/ssh_host_ed25519_key.pub' && cat /etc/ssh/ssh_host_ed25519_key.pub > $heat_outputs_path.ed25519
26 SshHostPubKeyDeployment:
27 type: OS::Heat::SoftwareDeployment
29 config: {get_resource: SshHostPubKeyConfig}
30 server: {get_param: server}
35 description: Host ssh public key (ecdsa)
36 value: {get_attr: [SshHostPubKeyDeployment, ecdsa]}
38 description: Host ssh public key (rsa)
39 value: {get_attr: [SshHostPubKeyDeployment, rsa]}
41 description: Host ssh public key (ed25519)
42 value: {get_attr: [SshHostPubKeyDeployment, ed25519]}