summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-10-01 19:38:16 +0000
committerRalph Bean <rbean@redhat.com>2014-10-01 19:38:16 +0000
commit7781f66a8d81b44331e5eb845ea665170aef949e (patch)
treee62649c2fec685d38e42b49696c5e57f7a6233a5
parent02eaf76319f37b256b7f1f747783fcbdbba9a046 (diff)
downloadansible-7781f66a8d81b44331e5eb845ea665170aef949e.tar.gz
ansible-7781f66a8d81b44331e5eb845ea665170aef949e.tar.xz
ansible-7781f66a8d81b44331e5eb845ea665170aef949e.zip
Add tags to collectd roles.
-rw-r--r--roles/collectd/base/tasks/main.yml20
-rw-r--r--roles/collectd/fcomm-queue/tasks/main.yml6
-rw-r--r--roles/collectd/fedmsg-service/tasks/main.yml4
-rw-r--r--roles/collectd/postgres/tasks/main.yml4
-rw-r--r--roles/collectd/web-service/tasks/main.yml4
5 files changed, 38 insertions, 0 deletions
diff --git a/roles/collectd/base/tasks/main.yml b/roles/collectd/base/tasks/main.yml
index 476d70199..6d3e622a6 100644
--- a/roles/collectd/base/tasks/main.yml
+++ b/roles/collectd/base/tasks/main.yml
@@ -4,20 +4,28 @@
# install pkg
- name: install collectd
yum: name=collectd state=installed
+ tags:
+ - collectd
# enable collectd
- name: enable collectd svc
service: state=running enabled=true name=collectd
+ tags:
+ - collectd
# install collected.conf
- name: /etc/collectd.conf
template: src=collectd.conf.j2 dest=/etc/collectd.conf
+ tags:
+ - collectd
notify:
- restart collectd
# install collectd-network config
- name: /etc/collectd.d/network.conf
copy: src=network-client.conf dest=/etc/collectd.d/network.conf
+ tags:
+ - collectd
notify:
- restart collectd
when: not inventory_hostname.startswith('log')
@@ -25,6 +33,8 @@
# install collectd-network config
- name: /etc/collectd.d/network.conf
copy: src=network-server.conf dest=/etc/collectd.d/network.conf
+ tags:
+ - collectd
notify:
- restart collectd
when: inventory_hostname.startswith('log')
@@ -32,12 +42,16 @@
# apache - localhost only - pretty much any apache server
- name: install collectd-apache
yum: state=installed name=collectd-apache
+ tags:
+ - collectd
notify:
- restart collectd
when: collectd_apache is defined
- name: /etc/collectd/apache.conf
copy: src=apache.conf dest=/etc/collectd.d/apache.conf
+ tags:
+ - collectd
notify:
- restart collectd
when: collectd_apache is defined
@@ -46,14 +60,20 @@
# Three tasks for handling our custom selinux module
- name: ensure a directory exists for our custom selinux module
file: dest=/usr/share/collectd state=directory
+ tags:
+ - collectd
- name: copy over our custom selinux module
copy: src=selinux/fi-collectd.pp dest=/usr/share/collectd/fi-collectd.pp
register: selinux_module
+ tags:
+ - collectd
- name: install our custom selinux module
command: semodule -i /usr/share/collectd/fi-collectd.pp
when: selinux_module|changed
+ tags:
+ - collectd
diff --git a/roles/collectd/fcomm-queue/tasks/main.yml b/roles/collectd/fcomm-queue/tasks/main.yml
index dbab5b507..653921319 100644
--- a/roles/collectd/fcomm-queue/tasks/main.yml
+++ b/roles/collectd/fcomm-queue/tasks/main.yml
@@ -2,16 +2,22 @@
- name: install python-retask
yum: name=python-retask state=installed
+ tags:
+ - collectd
- name: Copy in /usr/local/bin/fcomm-queue-collectd
copy: >
src=fcomm-queue-collectd.py
dest=/usr/local/bin/fcomm-queue-collectd
mode=0755
+ tags:
+ - collectd
notify: restart collectd
- name: Copy in /etc/collectd.d/fcomm-queue.conf
copy: >
src=fcomm-queue.conf
dest=/etc/collectd.d/fcomm-queue-conf
+ tags:
+ - collectd
notify: restart collectd
diff --git a/roles/collectd/fedmsg-service/tasks/main.yml b/roles/collectd/fedmsg-service/tasks/main.yml
index 524b822a5..12c642b87 100644
--- a/roles/collectd/fedmsg-service/tasks/main.yml
+++ b/roles/collectd/fedmsg-service/tasks/main.yml
@@ -5,10 +5,14 @@
src=fedmsg-service-collectd.py
dest="/usr/local/bin/fedmsg-service-collectd-{{ process }}"
mode=0755
+ tags:
+ - collectd
notify: restart collectd
- name: Copy in /etc/collectd.d/fedmsg-service.conf
template: >
src=fedmsg-service.conf
dest=/etc/collectd.d/{{ process }}.conf
+ tags:
+ - collectd
notify: restart collectd
diff --git a/roles/collectd/postgres/tasks/main.yml b/roles/collectd/postgres/tasks/main.yml
index 9a6ac2b3b..ea87dc925 100644
--- a/roles/collectd/postgres/tasks/main.yml
+++ b/roles/collectd/postgres/tasks/main.yml
@@ -5,10 +5,14 @@
src=collectd-postgres.sh
dest=/usr/local/bin/collectd-postgres.sh
mode=0755
+ tags:
+ - collectd
notify: restart collectd
- name: Copy in /etc/collectd.d/postgres.conf
template: >
src=postgres.conf
dest=/etc/collectd.d/postgres.conf
+ tags:
+ - collectd
notify: restart collectd
diff --git a/roles/collectd/web-service/tasks/main.yml b/roles/collectd/web-service/tasks/main.yml
index a98edc42c..aafcfacd3 100644
--- a/roles/collectd/web-service/tasks/main.yml
+++ b/roles/collectd/web-service/tasks/main.yml
@@ -5,10 +5,14 @@
src=web-service-collectd.py
dest="/usr/local/bin/web-service-collectd-{{ site }}"
mode=0755
+ tags:
+ - collectd
notify: restart collectd
- name: Copy in /etc/collectd.d/web-service.conf
template: >
src=web-service.conf
dest=/etc/collectd.d/{{ site }}.conf
+ tags:
+ - collectd
notify: restart collectd