Advertisement
Guest User

Kolla gnocchi deploy fix (rocky) - wsgi-gnocchi

a guest
Jul 11th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.83 KB | None | 0 0
  1. --- /opt/kolla-ansible/ansible/roles/gnocchi/templates/wsgi-gnocchi.conf.j2     2019-06-11 01:10:10.146862701 +0000
  2. +++ /usr/local/share/kolla-ansible/ansible/roles/gnocchi/templates/wsgi-gnocchi.conf.j2 2019-07-11 02:01:00.878392943 +0000
  3. @@ -1,4 +1,8 @@
  4. -{% set python_path = '/usr/lib/python2.7/site-packages' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
  5. +{% if gnocchi_install_type == 'binary' %}
  6. +    {% set python_path = '/usr/lib/python3/dist-packages' if kolla_base_distro == 'ubuntu' else '/usr/lib/python2.7/site-packages' %}
  7. +{% else %}
  8. +    {% set python_path = '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
  9. +{% endif %}
  10.  {% set wsgi_path = '/usr/bin' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/bin' %}
  11.  Listen {{ api_interface_address }}:{{ gnocchi_api_port }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement