07528b07b2
The templates at extraconfig/pre_network/host_config_and_reboot.yaml (replaced with extraconfig/pre_network/boot-params-service.yaml) and extraconfig/tasks/ssh/host_public_key.yaml (replaced with the tripleo-ssh-known-hosts role) are deprecated as they do not work with config-download. They will be removed in the Stein release. Change-Id: Ib66873ea4b0d86f12024ec16d788247c071cf3b5
57 lines
1.9 KiB
YAML
57 lines
1.9 KiB
YAML
# DEPRECATED: The following template is deprecated in Queens in favor of the
|
|
# tripleo-ssh-known-hosts from tripleo-common. This template does not work with
|
|
# config-download and will be removed from tripleo-heat-templates in the Stein
|
|
# release.
|
|
|
|
heat_template_version: rocky
|
|
|
|
description: >
|
|
This is a template which will fetch the ssh host public key.
|
|
|
|
parameters:
|
|
server:
|
|
description: ID of the node to apply this config to
|
|
type: string
|
|
deployment_actions:
|
|
default: ['CREATE', 'UPDATE']
|
|
type: comma_delimited_list
|
|
description: >
|
|
List of stack actions that will trigger any deployments in this
|
|
templates. The actions will be an empty list of the server is in the
|
|
toplevel DeploymentServerBlacklist parameter's value.
|
|
|
|
resources:
|
|
SshHostPubKeyConfig:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
group: script
|
|
outputs:
|
|
- name: rsa
|
|
- name: ecdsa
|
|
- name: ed25519
|
|
config: |
|
|
#!/bin/sh -x
|
|
test -e '/etc/ssh/ssh_host_rsa_key.pub' && cat /etc/ssh/ssh_host_rsa_key.pub > $heat_outputs_path.rsa
|
|
test -e '/etc/ssh/ssh_host_ecdsa_key.pub' && cat /etc/ssh/ssh_host_ecdsa_key.pub > $heat_outputs_path.ecdsa
|
|
test -e '/etc/ssh/ssh_host_ed25519_key.pub' && cat /etc/ssh/ssh_host_ed25519_key.pub > $heat_outputs_path.ed25519
|
|
|
|
SshHostPubKeyDeployment:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config: {get_resource: SshHostPubKeyConfig}
|
|
server: {get_param: server}
|
|
actions: {get_param: deployment_actions}
|
|
name: SshHostPubKeyDeployment
|
|
|
|
|
|
outputs:
|
|
ecdsa:
|
|
description: Host ssh public key (ecdsa)
|
|
value: {get_attr: [SshHostPubKeyDeployment, ecdsa]}
|
|
rsa:
|
|
description: Host ssh public key (rsa)
|
|
value: {get_attr: [SshHostPubKeyDeployment, rsa]}
|
|
ed25519:
|
|
description: Host ssh public key (ed25519)
|
|
value: {get_attr: [SshHostPubKeyDeployment, ed25519]}
|