Make it work to pass the ci

This commit is contained in:
Werner Dijkerman
2018-11-19 20:39:50 +01:00
parent 79d0cdeb9f
commit 402d69494b
3 changed files with 22 additions and 21 deletions

View File

@ -31,7 +31,7 @@ provisioner:
telegraf_plugins_default: telegraf_plugins_default:
- plugin: cpu - plugin: cpu
config: config:
- percpu = true - percpu = true
- plugin: disk - plugin: disk
- plugin: io - plugin: io
- plugin: mem - plugin: mem
@ -43,14 +43,14 @@ provisioner:
- plugin: kernel - plugin: kernel
- plugin: nginx - plugin: nginx
config: config:
- urls = ["http://localhost/nginx_status"] - urls = ["http://localhost/nginx_status"]
- plugin: logparser - plugin: logparser
config: config:
- files = ["/var/log/nginx/access.log"] - files = ["/var/log/nginx/access.log"]
- from_beginning = true - from_beginning = true
- name_override = "nginx_access_log" - name_override = "nginx_access_log"
- \[logparser.grok\] - \[logparser.grok\]
- patterns = ["%{COMBINED_LOG_FORMAT}"] - patterns = ["%{COMBINED_LOG_FORMAT}"]
scenario: scenario:
name: default name: default

View File

@ -1,22 +1,4 @@
--- ---
- hosts: all - hosts: all
pre_tasks:
- name: "Installing which on CentOS"
yum:
name: which
state: present
when:
- ansible_os_family == 'RedHat'
- name: "Installing wget on Debian"
apt:
name: "{{ item }}"
state: present
when:
- ansible_os_family == 'Debian'
with_items:
- wget
- gpg
roles: roles:
- role: ansible-telegraf - role: ansible-telegraf

View File

@ -0,0 +1,19 @@
---
- hosts: all
tasks:
- name: "Installing which on CentOS"
yum:
name: which
state: present
when:
- ansible_os_family == 'RedHat'
- name: "Installing wget on Debian"
apt:
name:
- wget
- gpg
state: present
when:
- ansible_os_family == 'Debian'