kolla-ansible/ansible/roles/masakari/templates/masakari-api.json.j2
Kien Nguyen 577bb50a04 Add Masakari Ansible role
Masakari provides Instances High Availability Service for
OpenStack clouds by automatically recovering failed Instances.

Depends-On: https://review.openstack.org/#/c/615469/
Change-Id: I0b3457232ee86576022cff64eb2e227ff9bbf0aa
Implements: blueprint ansible-masakari
Co-Authored-By: Gaëtan Trellu <gaetan.trellu@incloudus.com>
2019-08-15 09:58:53 -04:00

39 lines
1.3 KiB
Django/Jinja

{% set masakari_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
{% set masakari_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
{
"command": "{{ masakari_cmd }} -DFOREGROUND",
"config_files": [
{
"source": "{{ container_config_directory }}/masakari.conf",
"dest": "/etc/masakari/masakari.conf",
"owner": "masakari",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/masakari-api-paste.ini",
"dest": "/etc/masakari/api-paste.ini",
"owner": "masakari",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/wsgi-masakari.conf",
"dest": "/etc/{{ masakari_dir }}/wsgi-masakari.conf",
"owner": "root",
"perm": "0600"
}{% if masakari_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ masakari_policy_file }}",
"dest": "/etc/masakari/{{ masakari_policy_file }}",
"owner": "masakari",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/log/kolla/masakari",
"owner": "masakari:masakari",
"recurse": true
}
]
}