2015-08-20 12:35:19 +02:00
|
|
|
---
|
2015-12-18 19:40:48 +00:00
|
|
|
- name: Ensuring config directories exist
|
2015-08-20 12:35:19 +02:00
|
|
|
file:
|
2015-12-18 19:40:48 +00:00
|
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
2015-08-20 12:35:19 +02:00
|
|
|
state: "directory"
|
2015-12-18 19:40:48 +00:00
|
|
|
recurse: yes
|
|
|
|
with_items:
|
2016-02-03 11:52:46 +01:00
|
|
|
- "heka"
|
2016-03-04 12:01:55 +01:00
|
|
|
- "cron"
|
|
|
|
- "cron/logrotate"
|
2015-08-20 12:35:19 +02:00
|
|
|
|
2015-12-18 19:40:48 +00:00
|
|
|
- name: Copying over config.json files for services
|
2015-09-27 13:25:32 +00:00
|
|
|
template:
|
2015-12-18 19:40:48 +00:00
|
|
|
src: "{{ item }}.json.j2"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
|
|
with_items:
|
2016-02-03 11:52:46 +01:00
|
|
|
- "heka"
|
2016-03-04 12:01:55 +01:00
|
|
|
- "cron"
|
2015-09-27 13:25:32 +00:00
|
|
|
|
2016-02-03 11:52:46 +01:00
|
|
|
- name: Copying over heka config files
|
|
|
|
template:
|
2016-03-17 17:50:23 +00:00
|
|
|
src: "heka-{{ item.src|default(item.name) }}.toml.j2"
|
|
|
|
dest: "{{ node_config_directory }}/heka/heka-{{ item.name }}.toml"
|
|
|
|
when: item.enabled | bool
|
2016-02-03 11:52:46 +01:00
|
|
|
with_items:
|
2016-03-17 17:50:23 +00:00
|
|
|
- { name: "elasticsearch", enabled: "{{ enable_central_logging }}" }
|
|
|
|
- { name: "global", enabled: "yes" }
|
|
|
|
- { name: "haproxy", enabled: "{{ enable_haproxy }}" }
|
|
|
|
- { name: "keystone", enabled: "{{ enable_keystone }}" }
|
|
|
|
- { name: "mariadb", enabled: "{{ enable_rabbitmq }}" }
|
|
|
|
- { name: "openstack", enabled: "yes" }
|
|
|
|
- { name: "rabbitmq", enabled: "{{ enable_rabbitmq }}" }
|
|
|
|
- { name: "swift-account-auditor", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-account-reaper", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-account-replicator", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-account-server", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-container-auditor", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-container-replicator", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-container-server", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-container-updater", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-object-auditor", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-object-expirer", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-object-replicator", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-object-server", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-object-updater", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-proxy-server", src: "swift", enabled: "{{ enable_swift }}" }
|
|
|
|
- { name: "swift-rsyncd", src: "swift", enabled: "{{ enable_swift }}" }
|
2016-03-04 12:01:55 +01:00
|
|
|
|
|
|
|
- name: Copying over cron logrotate config files
|
|
|
|
template:
|
|
|
|
src: "cron-logrotate-{{ item }}.conf.j2"
|
|
|
|
dest: "{{ node_config_directory }}/cron/logrotate/{{ item }}.conf"
|
|
|
|
with_items:
|
|
|
|
- "ansible"
|
|
|
|
- "cinder"
|
|
|
|
- "glance"
|
|
|
|
- "global"
|
|
|
|
- "haproxy"
|
|
|
|
- "heat"
|
|
|
|
- "keepalived"
|
|
|
|
- "keystone"
|
|
|
|
- "magnum"
|
|
|
|
- "manila"
|
|
|
|
- "mariadb"
|
|
|
|
- "mistral"
|
|
|
|
- "murano"
|
|
|
|
- "neutron"
|
|
|
|
- "nova"
|
|
|
|
- "rabbitmq"
|
|
|
|
- "swift"
|