Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for systemd based OSes #46

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a045fdb
Bunch of changes, cleaning up the entire role and making it more gene…
stefanhorning Jun 8, 2017
c586bab
Added travis.yml, testruns and specs
stefanhorning Jun 8, 2017
2b708bf
Readme update and testrun fix
stefanhorning Jun 8, 2017
1a81ed6
Further cleanup. Guard against undfined variables in config template
stefanhorning Jun 8, 2017
624c5c2
Fix default value for telegraf_tags
stefanhorning Jun 8, 2017
11788ce
More cleanup and fixes
stefanhorning Jun 8, 2017
541feff
Update spec
stefanhorning Jun 8, 2017
dd78091
Fixed default/example values for instrumental
stefanhorning Jun 8, 2017
9c397a8
Removed a bunch of commented lines in the config template
stefanhorning Jun 8, 2017
3ca1883
Additional config features for tagdrop and tagpass, possible options …
stefanhorning Jun 8, 2017
6f7dc0d
Nicer indentation for config file
stefanhorning Jun 8, 2017
43e17f4
Change flush interval from 30 to 20s
stefanhorning Jun 9, 2017
f9ecbb9
README
stefanhorning Jun 9, 2017
470ff9f
Ensuring all plays are run with privilege escalation.
stefanhorning Jul 13, 2017
bcc3bea
Added feature to overwrite with you own telegraf build (for instance …
stefanhorning Jul 27, 2017
02bff5b
Force overwrite binary when overwrite tasks runs
stefanhorning Jul 27, 2017
65ec851
Guard binary replacing task with stop and start service arround it.
stefanhorning Jul 28, 2017
bacc5e5
Don't run the apt package install if install url for custom binary is…
stefanhorning Dec 8, 2017
5aeddef
Fix python before travis build to avoid red builds when pulling teleg…
stefanhorning Dec 8, 2017
c84859c
Added comment to travis.yml to explain install of extra python packages
stefanhorning Dec 8, 2017
5486b7b
Final fix to install problems on older Ubuntus (python TLS issues)
stefanhorning Dec 13, 2017
aaf4dc6
Drop in templates in favour of which also works in Python3.
stefanhorning Jan 23, 2018
af6bd4d
Cleaned up template files to make it much shorter and contain less no…
stefanhorning Feb 23, 2018
9cb801b
Merge pull request #1 from mediapeers/cleanup_template_file
stefanhorning Feb 23, 2018
cdfc8a3
Removed workarround tasks for Ubuntu 14.04 again as they seem to fail…
stefanhorning Mar 6, 2018
c150622
Replaced deprecated include statements
stefanhorning Apr 12, 2018
97b7912
Merge pull request #2 from mediapeers/remove_deprecations
stefanhorning Apr 12, 2018
4696772
Replaced forgotten includes with new syntax
stefanhorning Apr 13, 2018
54926ff
Merge pull request #3 from mediapeers/remove_deprecations_2
stefanhorning Apr 13, 2018
07e56dc
Simplified RedHat install
stefanhorning May 23, 2018
a00ab29
Moved telegraf flush settings from vars to defaults to easily set the…
stefanhorning May 24, 2018
0d9a6e5
Travis updates
stefanhorning Aug 31, 2018
7d5d1f9
Added feature to provide own config file directly. Cleanup in handlers
stefanhorning Sep 10, 2018
6743427
Added conditional to task for custom config file
stefanhorning Sep 10, 2018
ecd1e63
Idemp. test
stefanhorning Sep 10, 2018
8fd45c9
Idemp. test
stefanhorning Sep 10, 2018
b298237
Fixed issues with filenaming of custom config file.
stefanhorning Sep 10, 2018
7c7ec66
fix service check for systemd based OSes
Apr 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Guard binary replacing task with stop and start service arround it.
  • Loading branch information
stefanhorning committed Jul 28, 2017
commit 65ec85183c40eec6fbd4c4792dabd46780270a11
14 changes: 14 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
- include: install-debian.yml
when: ansible_os_family == "Debian"

# Allows overwriting telegraf bin with custom build one:

- name: Stop telegraf before overwriting binary
service:
name: telegraf
state: stopped
when: telegraf_custom_bin_url is defined

- name: Overwrite telegraf binary with custom build one from URL
get_url:
url: '{{ telegraf_custom_bin_url }}'
Expand All @@ -14,3 +22,9 @@
group: root
mode: 0775
when: telegraf_custom_bin_url is defined

- name: Start telegraf after overwriting binary
service:
name: telegraf
state: started
when: telegraf_custom_bin_url is defined