6 Commits
0.3.0 ... 0.4.0

6 changed files with 31 additions and 9 deletions

15
.travis.yml Normal file
View File

@ -0,0 +1,15 @@
---
language: python
python: "2.7"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
install:
- pip install ansible==1.9.4
- echo -e 'localhost ansible_connection=local' > test/inventory
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./test/inventory' > ansible.cfg
script:
- ansible-playbook test/integration/default.yml --syntax-check
- ansible-playbook test/integration/default.yml --connection=local --sudo
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

View File

@ -5,6 +5,13 @@ Below an overview of all changes in the releases.
Version (Release date)
0.4.0 (2016-02-05)
* Fixed test for test-kitchen
* Added travis-ci test for testing default installation when PR is made
* Fixed Download url for Debian
* Removed default entry for telegraf_plugins_extra
0.3.0 (2016-01-13)
* Made it work with telegraf 0.10.0

View File

@ -1,6 +1,10 @@
dj-wasabi.telegraf
=========
Build status:
[![Build Status](https://travis-ci.org/dj-wasabi/ansible-telegraf.svg?branch=master)](https://travis-ci.org/dj-wasabi/ansible-telegraf)
This role will install and configure telegraf.
Telegraf is an agent written in Go for collecting metrics from the system it's running on, or from other services, and writing them into InfluxDB.

View File

@ -1,7 +1,7 @@
---
# defaults file for ansible-telegraf
telegraf_agent_version: 0.10.0
telegraf_agent_version: 0.10.1
telegraf_agent_interval: 10
telegraf_agent_debug: False
telegraf_agent_round_interval: True
@ -30,7 +30,3 @@ telegraf_plugins_default:
- plugin: netstat
telegraf_plugins_extra:
- plugin: procstat
specifications:
- prefix = "" # optional string to prefix measurements
- exe = "java" # the name as pgrep can find

View File

@ -2,13 +2,13 @@
- name: "Fetch telegraf installation package | Debian"
action: get_url
url=http://get.influxdb.org/telegraf/telegraf-{{ telegraf_agent_version }}_amd64.deb
dest=/tmp/telegraf_{{ telegraf_agent_version }}_amd64.deb
url=http://get.influxdb.org/telegraf/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
dest=/tmp/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
mode=0440
- name: "Install telegraf package | Debian"
action: apt
deb=/tmp/telegraf_{{ telegraf_agent_version }}_amd64.deb
deb=/tmp/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
state=installed
notify: "Restart Telegraf"
sudo: yes

View File

@ -15,7 +15,7 @@ describe 'Telegraf Services' do
end
describe 'Telegraf Configuration' do
describe file('/etc/opt/telegraf/telegraf.conf') do
describe file('/etc/telegraf/telegraf.conf') do
it { should be_file}
it { should be_owned_by 'root'}
it { should be_grouped_into 'root'}