diff options
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/gnocchi/tasks/start.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/gnocchi/templates/wsgi-gnocchi.conf.j2 | 24 |
2 files changed, 10 insertions, 16 deletions
diff --git a/ansible/roles/gnocchi/tasks/start.yml b/ansible/roles/gnocchi/tasks/start.yml index 98d54241c..d53ab979b 100644 --- a/ansible/roles/gnocchi/tasks/start.yml +++ b/ansible/roles/gnocchi/tasks/start.yml @@ -19,6 +19,7 @@ name: "gnocchi_metricd" volumes: - "{{ node_config_directory }}/gnocchi-metricd/:{{ container_config_directory }}/:ro" + - "gnocchi:/var/lib/gnocchi/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['gnocchi-metricd'] @@ -30,5 +31,6 @@ name: "gnocchi_statsd" volumes: - "{{ node_config_directory }}/gnocchi-statsd/:{{ container_config_directory }}/:ro" + - "gnocchi:/var/lib/gnocchi/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['gnocchi-statsd'] diff --git a/ansible/roles/gnocchi/templates/wsgi-gnocchi.conf.j2 b/ansible/roles/gnocchi/templates/wsgi-gnocchi.conf.j2 index c6bc624c9..5d1317ec0 100644 --- a/ansible/roles/gnocchi/templates/wsgi-gnocchi.conf.j2 +++ b/ansible/roles/gnocchi/templates/wsgi-gnocchi.conf.j2 @@ -3,23 +3,15 @@ Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['addr <VirtualHost *:{{ gnocchi_api_port }}> - ## Vhost docroot - DocumentRoot "/var/www/cgi-bin/gnocchi" - - ## Directories, there should at least be a declaration for /var/www/cgi-bin/gnocchi + ErrorLog "/var/log/kolla/gnocchi/gnocchi-api-error.log" + CustomLog "/var/log/kolla/gnocchi/gnocchi-api-access.log" combined + WSGIApplicationGroup %{GLOBAL} + WSGIDaemonProcess gnocchi group=gnocchi processes=5 threads=1 user=gnocchi python-path={{ python_path }} + WSGIProcessGroup gnocchi + WSGIScriptAlias / "{{ python_path }}/gnocchi/rest/app.wsgi" - <Directory "/var/www/cgi-bin/gnocchi"> - Options Indexes FollowSymLinks MultiViews - AllowOverride None - Require all granted + <Directory "{{ python_path }}/gnocchi/rest"> + Require all granted </Directory> - ## Logging - ErrorLog "/var/log/kolla/gnocchi/gnocchi_wsgi_error.log" - ServerSignature Off - CustomLog "/var/log/kolla/gnocchi/gnocchi_wsgi_access.log" combined - WSGIApplicationGroup %{GLOBAL} - WSGIDaemonProcess gnocchi group=gnocchi processes=2 threads=2 user=gnocchi - WSGIProcessGroup gnocchi - WSGIScriptAlias / "/var/www/cgi-bin/gnocchi/app" </VirtualHost> |
