d87786e41e
This follows up on a review comment from sdake [*] and change the Jinja2 expressions used in heka.json.j2. [*] <https://review.openstack.org/#/c/283118/3/ansible/roles/common/templates/heka.json.j2@49> TrivialFix Change-Id: I20ee5084cfef6acf53a737757fe727df5b4e9fce
52 lines
2.0 KiB
Django/Jinja
52 lines
2.0 KiB
Django/Jinja
{% set swift_services = ["swift-account-auditor", "swift-account-reaper", "swift-account-replicator", "swift-account-server", "swift-container-auditor", "swift-container-replicator", "swift-container-server", "swift-container-updater", "swift-object-auditor", "swift-object-expirer", "swift-object-replicator", "swift-object-server", "swift-object-updater", "swift-proxy-server", "swift-rsyncd"] %}
|
|
{
|
|
"command": "/usr/bin/hekad -config=/etc/heka/",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/heka-global.toml",
|
|
"dest": "/etc/heka/heka-global.toml",
|
|
"owner": "heka",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/heka-haproxy.toml",
|
|
"dest": "/etc/heka/heka-haproxy.toml",
|
|
"owner": "heka",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/heka-rabbitmq.toml",
|
|
"dest": "/etc/heka/heka-rabbitmq.toml",
|
|
"owner": "heka",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/heka-openstack.toml",
|
|
"dest": "/etc/heka/heka-openstack.toml",
|
|
"owner": "heka",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/heka-mariadb.toml",
|
|
"dest": "/etc/heka/heka-mariadb.toml",
|
|
"owner": "heka",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/heka-keystone.toml",
|
|
"dest": "/etc/heka/heka-keystone.toml",
|
|
"owner": "heka",
|
|
"perm": "0600"
|
|
},
|
|
{% for swift_service in swift_services %}
|
|
{
|
|
"source": "{{ container_config_directory }}/heka-{{ swift_service }}.toml",
|
|
"dest": "/etc/heka/heka-{{ swift_service }}.toml",
|
|
"owner": "heka",
|
|
"perm": "0600"
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
|
|
]
|
|
}
|