kolla-ansible/ansible/roles/aodh/templates/aodh-api.json.j2
zhubingbing 7ce05f9782 Add aodh role
Partially-Implements: blueprint ansible-aodh

Change-Id: I9e20f4bf5e7d8f37f243ae15746e2b7bb49eb20c
2016-08-31 03:54:35 +00:00

26 lines
867 B
Django/Jinja

{% set aodh_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
{% set aodh_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
{
"command": "{{ aodh_cmd }} -DFOREGROUND",
"config_files": [
{
"source": "{{ container_config_directory }}/aodh.conf",
"dest": "/etc/aodh/aodh.conf",
"owner": "aodh",
"perm": "0644"
},
{
"source": "{{ container_config_directory }}/api_paste.ini",
"dest": "/etc/aodh/api_paste.ini",
"owner": "aodh",
"perm": "0644"
},
{
"source": "{{ container_config_directory }}/wsgi-aodh.conf",
"dest": "/etc/{{ aodh_dir }}/wsgi-aodh.conf",
"owner": "aodh",
"perm": "0644"
}
]
}