2015-08-20 12:35:19 +02:00
|
|
|
---
|
2016-03-03 03:47:17 +00:00
|
|
|
- name: Looking up storage hostname
|
|
|
|
command: getent hosts {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}
|
|
|
|
changed_when: False
|
|
|
|
register: storage_hostname
|
|
|
|
|
|
|
|
- name: Setting storage hostname
|
|
|
|
set_fact:
|
|
|
|
storage_hostname: "{{ storage_hostname.stdout.split()[1] }}"
|
|
|
|
|
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"
|
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"
|
2015-09-27 13:25:32 +00:00
|
|
|
|
2016-02-03 11:52:46 +01:00
|
|
|
- name: Copying over heka config files
|
|
|
|
template:
|
|
|
|
src: "heka-{{ item }}.toml.j2"
|
|
|
|
dest: "{{ node_config_directory }}/heka/heka-{{ item }}.toml"
|
|
|
|
with_items:
|
|
|
|
- "global"
|
2016-02-03 11:55:14 +01:00
|
|
|
- "haproxy"
|
2016-02-03 11:58:13 +01:00
|
|
|
- "rabbitmq"
|
2016-02-03 11:59:35 +01:00
|
|
|
- "openstack"
|
2016-02-03 16:55:45 +01:00
|
|
|
- "mariadb"
|
2016-02-11 15:34:45 +01:00
|
|
|
- "keystone"
|
2016-03-08 10:02:03 +00:00
|
|
|
- "elasticsearch"
|
2016-02-12 12:43:42 +01:00
|
|
|
|
|
|
|
- name: Copying over heka swift config files
|
|
|
|
template:
|
|
|
|
src: "heka-swift.toml.j2"
|
|
|
|
dest: "{{ node_config_directory }}/heka/heka-{{ item }}.toml"
|
|
|
|
with_items:
|
|
|
|
- "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"
|
2016-02-24 16:05:36 +01:00
|
|
|
|
|
|
|
- name: Copying over heka elasticsearch config file
|
|
|
|
template:
|
|
|
|
src: "heka-{{ item }}.toml.j2"
|
|
|
|
dest: "{{ node_config_directory }}/heka/heka-{{ item }}.toml"
|
|
|
|
with_items:
|
|
|
|
- "elasticsearch"
|
|
|
|
when: "{{ enable_central_logging | bool }}"
|