mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Fixed test and added travis.
This commit is contained in:
15
.travis.yml
Normal file
15
.travis.yml
Normal 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/
|
@ -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'}
|
||||
|
Reference in New Issue
Block a user