+++ /dev/null
-[DEFAULT]
-verbose = True
-rpc_backend = rabbit
-auth_strategy = keystone
-
-[oslo_messaging_rabbit]
-rabbit_host = {{ internal_vip.ip }}
-rabbit_userid = {{ RABBIT_USER }}
-rabbit_password = {{ RABBIT_PASS }}
-
-[publisher]
-metering_secret = {{ metering_secret }}
-
-[keystone_authtoken]
-auth_uri = http://{{ internal_vip.ip }}:5000
-auth_url = http://{{ internal_vip.ip }}:35357
-auth_plugin = password
-project_domain_id = default
-user_domain_id = default
-project_name = service
-username = ceilometer
-password = {{ CEILOMETER_PASS }}
-
-[service_credentials]
-os_auth_url = http://{{ internal_vip.ip }}:5000/v2.0
-os_username = ceilometer
-os_tenant_name = service
-os_password = {{ CEILOMETER_PASS }}
-os_endpoint_type = internalURL
-os_region_name = RegionOne
-
+++ /dev/null
-[DEFAULT]
-instance_usage_audit = True
-instance_usage_audit_period = hour
-notify_on_state_change = vm_and_task_state
-notification_driver = messagingv2
line: "Listen {{ internal_ip }}:8777"
notify: restart apache server
+- name: create WSGIScriptAlias Path
+ file:
+ path: /var/www/cgi-bin/ceilometer
+ state: directory
+ mode: 0755
+
+- name: copy WSGIScriptAlias file
+ shell: |
+ cp {{WSGIScriptAlias_file}} /var/www/cgi-bin/ceilometer/app;
+
- name: update apache2 configs
template:
src: wsgi-ceilometer.conf.j2
when: ansible_os_family == 'Debian'
notify: reload apache server
-- name: update apache2 configs
- template:
- src: wsgi-ceilometer.conf.j2
- dest: '{{ apache_config_dir }}/ceilometer.conf'
- when: ansible_os_family == 'RedHat'
- notify: reload apache server
-
- name: enable ceilometer server
file:
src: "{{ apache_config_dir }}/sites-available/ceilometer.conf"
when: ansible_os_family == 'Debian'
notify: reload apache server
+- name: update apache2 configs
+ template:
+ src: wsgi-ceilometer.conf.j2
+ dest: '{{ apache_config_dir }}/ceilometer.conf'
+ when: ansible_os_family == 'RedHat'
+ notify: reload apache server
+
- name: copy glance & cinder configs
template:
src: "{{ item }}"
<VirtualHost {{ internal_ip }}:8777>
WSGIDaemonProcess ceilometer-api processes=4 threads={{ work_threads }} user=ceilometer group=ceilometer display-name=%{GROUP}
WSGIProcessGroup ceilometer-api
- WSGIScriptAlias / {{ WSGIScriptAlias_path }}
+ WSGIScriptAlias / /var/www/cgi-bin/ceilometer/app
WSGIApplicationGroup %{GLOBAL}
ErrorLog /var/log/{{ http_service_name }}/ceilometer_error.log
CustomLog /var/log/{{ http_service_name }}/ceilometer_access.log combined
apache_config_dir: /etc/apache2
http_service_name: apache2
-WSGIScriptAlias_path: /usr/lib/python2.7/dist-packages/ceilometer/api/app.wsgi
+WSGIScriptAlias_file: /usr/lib/python2.7/dist-packages/ceilometer/api/app.wsgi
ceilometer_services:
- openstack-ceilometer-central
- openstack-ceilometer-notification
- - openstack-ceilometer-api
- openstack-ceilometer-collector
glance_cinder_services:
apache_config_dir: /etc/httpd/conf.d
http_service_name: httpd
-WSGIScriptAlias_path: /usr/lib/python2.7/site-packages/ceilometer/api/app.wsgi
+WSGIScriptAlias_file: /usr/lib/python2.7/site-packages/ceilometer/api/app.wsgi