Skip to content
Snippets Groups Projects
Commit 5ebda806 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix Octavia cert generation"

parents 605c846b cd8ecfc8
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,8 @@ class OctaviaCertificates(KollaAnsibleMixin, Command):
def take_action(self, parsed_args):
extra_vars = {}
if hasattr(parsed_args, "check_expiry"):
if hasattr(parsed_args, "check_expiry") \
and parsed_args.check_expiry is not None:
self.app.LOG.info("Checking if certificates expire "
"within given number of days.")
extra_vars["octavia_certs_check_expiry"] = "yes"
......
......@@ -323,7 +323,7 @@
- name: Create TLS certificates for octavia
shell: |
source {{ kolla_ansible_venv_path }}/bin/activate
kolla-ansible octavia-certificates
kolla-ansible octavia-certificates -i {{ kolla_inventory_path }} -vvvv
when: scenario in ['octavia']
args:
executable: /bin/bash
......
......@@ -11,7 +11,7 @@ export PYTHONUNBUFFERED=1
function check_certificate_expiry {
RAW_INVENTORY=/etc/kolla/inventory
source $KOLLA_ANSIBLE_VENV_PATH/bin/activate
kolla-ansible octavia-certificates --check-expiry 7
kolla-ansible octavia-certificates -i ${RAW_INVENTORY} --check-expiry 7
deactivate
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment