aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/collectd/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/collectd/tasks')
-rw-r--r--ansible/roles/collectd/tasks/config.yml23
-rw-r--r--ansible/roles/collectd/tasks/deploy.yml4
-rw-r--r--ansible/roles/collectd/tasks/main.yml2
-rw-r--r--ansible/roles/collectd/tasks/precheck.yml1
-rw-r--r--ansible/roles/collectd/tasks/pull.yml6
-rw-r--r--ansible/roles/collectd/tasks/reconfigure.yml61
-rw-r--r--ansible/roles/collectd/tasks/start.yml15
-rw-r--r--ansible/roles/collectd/tasks/upgrade.yml4
8 files changed, 0 insertions, 116 deletions
diff --git a/ansible/roles/collectd/tasks/config.yml b/ansible/roles/collectd/tasks/config.yml
deleted file mode 100644
index af9417b7e..000000000
--- a/ansible/roles/collectd/tasks/config.yml
+++ /dev/null
@@ -1,23 +0,0 @@
----
-- name: Ensuring collectd config directories exist
- file:
- path: "{{ node_config_directory }}/{{ item }}"
- state: "directory"
- recurse: yes
- with_items:
- - "collectd"
-
-- name: Ensuring Plugin directory exist
- file:
- path: "{{ node_config_directory }}/{{ item }}/collectd.conf.d"
- state: "directory"
- recurse: yes
- with_items:
- - "collectd"
-
-- name: Copying over config.json files for services
- template:
- src: "{{ item }}.json.j2"
- dest: "{{ node_config_directory }}/{{ item }}/config.json"
- with_items:
- - "collectd"
diff --git a/ansible/roles/collectd/tasks/deploy.yml b/ansible/roles/collectd/tasks/deploy.yml
deleted file mode 100644
index 1f16915ad..000000000
--- a/ansible/roles/collectd/tasks/deploy.yml
+++ /dev/null
@@ -1,4 +0,0 @@
----
-- include: config.yml
-
-- include: start.yml
diff --git a/ansible/roles/collectd/tasks/main.yml b/ansible/roles/collectd/tasks/main.yml
deleted file mode 100644
index b017e8b4a..000000000
--- a/ansible/roles/collectd/tasks/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-- include: "{{ action }}.yml"
diff --git a/ansible/roles/collectd/tasks/precheck.yml b/ansible/roles/collectd/tasks/precheck.yml
deleted file mode 100644
index ed97d539c..000000000
--- a/ansible/roles/collectd/tasks/precheck.yml
+++ /dev/null
@@ -1 +0,0 @@
----
diff --git a/ansible/roles/collectd/tasks/pull.yml b/ansible/roles/collectd/tasks/pull.yml
deleted file mode 100644
index d182b27b6..000000000
--- a/ansible/roles/collectd/tasks/pull.yml
+++ /dev/null
@@ -1,6 +0,0 @@
----
-- name: Pulling collectd image
- kolla_docker:
- action: "pull_image"
- common_options: "{{ docker_common_options }}"
- image: "{{ collectd_image_full }}"
diff --git a/ansible/roles/collectd/tasks/reconfigure.yml b/ansible/roles/collectd/tasks/reconfigure.yml
deleted file mode 100644
index 602850983..000000000
--- a/ansible/roles/collectd/tasks/reconfigure.yml
+++ /dev/null
@@ -1,61 +0,0 @@
----
-- name: Ensuring the containers up
- kolla_docker:
- name: "{{ item.name }}"
- action: "get_container_state"
- register: container_state
- failed_when: container_state.Running == false
- when: inventory_hostname in groups[item.group]
- with_items:
- - { name: collectd, group: collectd }
-
-- include: config.yml
-
-- name: Check the configs
- command: docker exec {{ item.name }} /usr/local/bin/kolla_set_configs --check
- changed_when: false
- failed_when: false
- register: check_results
- when: inventory_hostname in groups[item.group]
- with_items:
- - { name: collectd, group: collectd }
-
-- name: Containers config strategy
- kolla_docker:
- name: "{{ item.name }}"
- action: "get_container_env"
- register: container_envs
- when: inventory_hostname in groups[item.group]
- with_items:
- - { name: collectd, group: collectd }
-
-- name: Remove the containers
- kolla_docker:
- name: "{{ item[0]['name'] }}"
- action: "remove_container"
- register: remove_containers
- when:
- - config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- - item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
- with_together:
- - [{ name: collectd, group: collectd }]
- - "{{ container_envs.results }}"
- - "{{ check_results.results }}"
-
-- include: start.yml
- when: remove_containers.changed
-
-- name: Restart containers
- kolla_docker:
- name: "{{ item[0]['name'] }}"
- action: "restart_container"
- when:
- - config_strategy == 'COPY_ALWAYS'
- - item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- - item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
- with_together:
- - [{ name: collectd, group: collectd }]
- - "{{ container_envs.results }}"
- - "{{ check_results.results }}"
diff --git a/ansible/roles/collectd/tasks/start.yml b/ansible/roles/collectd/tasks/start.yml
deleted file mode 100644
index 8675c00eb..000000000
--- a/ansible/roles/collectd/tasks/start.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-- name: Starting collectd container
- kolla_docker:
- action: "start_container"
- common_options: "{{ docker_common_options }}"
- image: "{{ collectd_image_full }}"
- name: "collectd"
- privileged: True
- volumes:
- - "{{ node_config_directory }}/collectd/:{{ container_config_directory }}/:ro"
- - "{{node_config_directory }}/collectd/collectd.conf.d/:/etc/collectd/collectd.conf.d/"
- - "/etc/localtime:/etc/localtime:ro"
- - "kolla_logs:/var/log/kolla/"
- - "/sys/:/sys/:ro"
- - "/dev/:/dev/:ro"
diff --git a/ansible/roles/collectd/tasks/upgrade.yml b/ansible/roles/collectd/tasks/upgrade.yml
deleted file mode 100644
index 1f16915ad..000000000
--- a/ansible/roles/collectd/tasks/upgrade.yml
+++ /dev/null
@@ -1,4 +0,0 @@
----
-- include: config.yml
-
-- include: start.yml