kolla-ansible/ansible/roles/sahara/templates/sahara-api.json.j2
Dai Dang Van e846d48780 Support policy.yaml file [part 6]
- Sahara
- Searchlight
- Senlin
- Tacker

This will copy only yaml or json policy file if they exist.

Change-Id: I97c8bf300f14ae6d7c55c5f8962c5781cee2c40a
Implements: blueprint support-custom-policy-yaml
Co-authored-By: Duong Ha-Quang <duonghq@vn.fujitsu.com>
2018-01-26 04:37:48 +00:00

30 lines
850 B
Django/Jinja

{
"command": "sahara-api --config-file /etc/sahara/sahara.conf",
"config_files": [
{
"source": "{{ container_config_directory }}/sahara.conf",
"dest": "/etc/sahara/sahara.conf",
"owner": "sahara",
"perm": "0600"
}{% if sahara_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ sahara_policy_file }}",
"dest": "/etc/sahara/{{ sahara_policy_file }}",
"owner": "sahara",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/lib/sahara",
"owner": "sahara:sahara",
"recurse": true
},
{
"path": "/var/log/kolla/sahara",
"owner": "sahara:sahara",
"recurse": true
}
]
}