aboutsummaryrefslogtreecommitdiff
path: root/ansible/post-deploy.yml
diff options
context:
space:
mode:
authorcaoyuan <cao.yuan@99cloud.net>2018-03-20 20:31:24 +0800
committerMark Goddard <mark@stackhpc.com>2018-11-19 16:25:28 +0000
commit9223deeecd5a6c6efa238463962ea8604d4ce103 (patch)
tree712402a79bdd18daa7a69a2d305e2131ffca180a /ansible/post-deploy.yml
parent52319dabfbfc7027c906871f31ab3524938a137e (diff)
downloadkolla-ansible-9223deeecd5a6c6efa238463962ea8604d4ce103.tar.gz
kolla-ansible-9223deeecd5a6c6efa238463962ea8604d4ce103.zip
Use correct variable for default certificate paths
The variable {{ node_config_directory }} is used for the configuration directory on the remote hosts, and should not be used for paths on the deploy host (localhost). This changes the default value of the TLS certificate and CA file to reference {{ CONFIG_DIR }}, in line with the directory used for admin-openrc.sh (as of I0709482ead4b7a67e82796e17f85bde151e71bc0). This change also introduces a variable, {{ node_config }}, that references {{ CONFIG_DIR | default('/etc/kolla') }}, to remove duplication. Change-Id: Ibd82ac78630ebfff5824c329d7399e1e900c0ee0 Closes-Bug: #1804025
Diffstat (limited to 'ansible/post-deploy.yml')
-rw-r--r--ansible/post-deploy.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml
index 2e1f9ef97..ae95aabcb 100644
--- a/ansible/post-deploy.yml
+++ b/ansible/post-deploy.yml
@@ -5,5 +5,5 @@
tasks:
- template:
src: "roles/common/templates/admin-openrc.sh.j2"
- dest: "{{ CONFIG_DIR | default('/etc/kolla') }}/admin-openrc.sh"
+ dest: "{{ node_config }}/admin-openrc.sh"
run_once: True