aboutsummaryrefslogtreecommitdiffstats
path: root/overcloud.j2.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-04-18 22:53:25 +0000
committerGerrit Code Review <review@openstack.org>2017-04-18 22:53:25 +0000
commitff2ca16ba4701dc54ca5aa05ae960946ad3d331f (patch)
treec0a59f8f1e94adeb00157890b5b5b7a9d82dae9e /overcloud.j2.yaml
parentd79d1ef7ac40915d1d7df769fc7dabf67a3c2aab (diff)
parent7d3552a105ad5aa62cad0998c11df5ec6bd06ed6 (diff)
Merge "SSH known_hosts config"
Diffstat (limited to 'overcloud.j2.yaml')
-rw-r--r--overcloud.j2.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/overcloud.j2.yaml b/overcloud.j2.yaml
index 87e67ea..a2d501d 100644
--- a/overcloud.j2.yaml
+++ b/overcloud.j2.yaml
@@ -262,6 +262,16 @@ resources:
type: json
value: {get_attr: [EndpointMap, endpoint_map]}
+ SshKnownHostsConfig:
+ type: OS::TripleO::Ssh::KnownHostsConfig
+ properties:
+ known_hosts:
+ list_join:
+ - ''
+ {% for role in roles %}
+ - {get_attr: [{{role.name}}, known_hosts_entry]}
+ {% endfor %}
+
# Jinja loop for Role in roles_data.yaml
{% for role in roles %}
# Resources generated for {{role.name}} Role
@@ -293,6 +303,13 @@ resources:
config: {get_attr: [hostsConfig, config_id]}
servers: {get_attr: [{{role.name}}, attributes, nova_server_resource]}
+ {{role.name}}SshKnownHostsDeployment:
+ type: OS::Heat::StructuredDeployments
+ properties:
+ name: {{role.name}}SshKnownHostsDeployment
+ config: {get_resource: SshKnownHostsConfig}
+ servers: {get_attr: [{{role.name}}, attributes, nova_server_resource]}
+
{{role.name}}AllNodesDeployment:
type: OS::Heat::StructuredDeployments
depends_on: