aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-29 13:14:51 +0000
committerGerrit Code Review <review@openstack.org>2016-09-29 13:14:51 +0000
commit5fbdee9bbf2d682abc310355cd828a86966319f6 (patch)
tree5ec0a3e5b2d43eb835121d0bd01f11bf1c4303c3 /ansible
parentcdc738ee34218622ac787ea0214d33856d15f2d3 (diff)
parent89d38770cebfdf537683c7a40ccc6c40ebd70e46 (diff)
downloadkolla-5fbdee9bbf2d682abc310355cd828a86966319f6.tar.gz
kolla-5fbdee9bbf2d682abc310355cd828a86966319f6.zip
Merge "Fix error in Gnocchi service"
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/gnocchi/tasks/start.yml2
-rw-r--r--ansible/roles/gnocchi/templates/wsgi-gnocchi.conf.j224
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>