summaryrefslogtreecommitdiffstats
path: root/roles/fluentd_node/tasks
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-02-11 16:18:12 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2016-02-11 16:18:12 -0500
commit2fd931794bf82cf3e11ad9267df9e0885dde7b1d (patch)
treea0d133dead7cfc2ca567c0238cadf9e1a72cafb2 /roles/fluentd_node/tasks
parent1d65d7df8bc2829e8b536ba44ad2dd3a426f2461 (diff)
parent2b3af4a3d009e6eac172db437b1e701ec5004dc9 (diff)
downloadopenshift-2fd931794bf82cf3e11ad9267df9e0885dde7b1d.tar.gz
openshift-2fd931794bf82cf3e11ad9267df9e0885dde7b1d.tar.bz2
openshift-2fd931794bf82cf3e11ad9267df9e0885dde7b1d.tar.xz
openshift-2fd931794bf82cf3e11ad9267df9e0885dde7b1d.zip
Merge pull request #1324 from abutcher/fluentd-fixes
Remove fluentd_master and fluentd_node roles
Diffstat (limited to 'roles/fluentd_node/tasks')
-rw-r--r--roles/fluentd_node/tasks/main.yml57
1 files changed, 0 insertions, 57 deletions
diff --git a/roles/fluentd_node/tasks/main.yml b/roles/fluentd_node/tasks/main.yml
deleted file mode 100644
index 9fd908687..000000000
--- a/roles/fluentd_node/tasks/main.yml
+++ /dev/null
@@ -1,57 +0,0 @@
----
-- fail:
- msg: "fluentd node is not yet supported on atomic hosts"
- when: openshift.common.is_atomic | bool
-
-# TODO: Update fluentd install and configuration when packaging is complete
-- name: download and install td-agent
- action: "{{ ansible_pkg_mgr }} name='http://packages.treasuredata.com/2/redhat/7/x86_64/td-agent-2.2.0-0.x86_64.rpm' state=present"
- when: not openshift.common.is_atomic | bool
-
-- name: Verify fluentd plugin installed
- command: '/opt/td-agent/embedded/bin/gem query -i fluent-plugin-kubernetes'
- register: _fluent_plugin_check
- failed_when: false
- changed_when: false
-
-- name: install Kubernetes fluentd plugin
- command: '/opt/td-agent/embedded/bin/gem install fluent-plugin-kubernetes'
- when: _fluent_plugin_check.rc == 1
-
-- name: Override td-agent configuration file
- template:
- src: td-agent.j2
- dest: /etc/sysconfig/td-agent
- group: 'td-agent'
- owner: 'td-agent'
- mode: 0444
-
-- name: Creates directories
- file:
- path: "{{ item }}"
- state: directory
- group: 'td-agent'
- owner: 'td-agent'
- mode: 0755
- with_items: ['/etc/td-agent/config.d', '/var/log/td-agent/tmp']
-
-- name: Add include to td-agent configuration
- lineinfile:
- dest: '/etc/td-agent/td-agent.conf'
- regexp: '^@include config.d'
- line: '@include config.d/*.conf'
- state: present
-
-- name: install Kubernetes fluentd configuration file
- template:
- src: kubernetes.conf.j2
- dest: /etc/td-agent/config.d/kubernetes.conf
- group: 'td-agent'
- owner: 'td-agent'
- mode: 0444
-
-- name: ensure td-agent is running
- service:
- name: 'td-agent'
- state: started
- enabled: yes