kolla-ansible/ansible/roles/panko/templates/panko-api.json.j2
zhubingbing 3e7ed2c42c add panko role
Change-Id: I515fdcdf6093e9e59dbbdc97221d23ed7f4e0a3d
Partially-Implements: blueprint add-panko-ansible-role
2016-12-15 08:01:50 +00:00

34 lines
1.0 KiB
Django/Jinja

{% set panko_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
{% set panko_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
{
"command": "{{ panko_cmd }} -DFOREGROUND",
"config_files": [
{
"source": "{{ container_config_directory }}/panko.conf",
"dest": "/etc/panko/panko.conf",
"owner": "panko",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/policy.json",
"dest": "/etc/panko/policy.json",
"owner": "panko",
"perm": "0600",
"optional": true
},
{
"source": "{{ container_config_directory }}/wsgi-panko.conf",
"dest": "/etc/{{ panko_dir }}/wsgi-panko.conf",
"owner": "panko",
"perm": "0640"
}
],
"permissions": [
{
"path": "/var/log/kolla/panko",
"owner": "panko:panko",
"recurse": true
}
]
}