Skip to content

Commit

Permalink
New key value pair group named kolla_passwords
Browse files Browse the repository at this point in the history
is introduced to  hold openstack serivce passwords.

Change-Id: I48f067cbb89269323b2b95ba71dd6e3461e13f3c
Closes-Bug: 1785449
  • Loading branch information
cijohnson committed Aug 8, 2018
1 parent 1b63960 commit 9ca4196
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkg/cluster/configs/instances.tmpl
Expand Up @@ -64,7 +64,9 @@ contrail_configuration:
KEYSTONE_AUTH_HOST: {%if openstackCluster.OpenstackInternalVip %}{{openstackCluster.OpenstackInternalVip}}{%else%}{% for node in nodes %}{%if openstackCluster.OpenstackControlNodes.0.NodeRefs.0.UUID == node.UUID %}{{node.IPAddress}}{%endif%}{%endfor%}{%endif%}
KEYSTONE_AUTH_URL_VERSION: {%if cluster.KeystoneVersion %}/{{cluster.KeystoneVersion}}{%else%}/v3{%endif%}
{% for key_value in cluster.ContrailConfiguration.KeyValuePair %}
{% if key_value.Key && key_value.Value%}
{{key_value.Key}}: {{key_value.Value}}
{%endif%}
{%endfor%}

kolla_config:
Expand All @@ -75,8 +77,15 @@ kolla_config:
{% if openstackCluster.OpenstackRegistry && openstackCluster.OpenstackRegistry != "default" %}docker_registry: {{ openstackCluster.OpenstackRegistry }}{%endif%}
{%if openstackCluster.OpenstackExternalVip %}kolla_external_vip_address: {{openstackCluster.OpenstackExternalVip}}{%endif%}
{% for key_value in openstackCluster.KollaGlobals.KeyValuePair %}
{% if key_value.Key && key_value.Value%}
{{key_value.Key}}: {{key_value.Value}}
{%endif%}
{%endfor%}
kolla_passwords:
keystone_admin_password: {%if openstackCluster.KeystoneAdminPassword %}{{openstackCluster.KeystoneAdminPassword}}{%else%}contrail123{%endif%}
keystone_admin_password: contrail123
{% for key_value in openstackCluster.KollaPasswords.KeyValuePair %}
{% if key_value.Key && key_value.Value%}
{{key_value.Key}}: {{key_value.Value}}
{%endif%}
{%endfor%}
{%endif%}
5 changes: 5 additions & 0 deletions schemas/fabric/openstack_cluster.yml
Expand Up @@ -142,6 +142,11 @@ schema:
presence: "optional"
description: "Custom kolla global configurations. Specified as list of Key:Value pairs."
$ref: "types.json#/definitions/KeyValuePairs"
kolla_passwords:
operations: "CRUD"
presence: "optional"
description: "Custom kolla password configurations. Specified as list of Key:Value pairs."
$ref: "types.json#/definitions/KeyValuePairs"
singular: openstack_cluster
title: Openstack Cluster
type: ""

0 comments on commit 9ca4196

Please sign in to comment.