You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fluo.apache.org by mw...@apache.org on 2018/06/29 15:27:23 UTC
[fluo-muchos] branch master updated: Stopped dep of Fluo for
setting up InfluxDB (#222)
This is an automated email from the ASF dual-hosted git repository.
mwalch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/fluo-muchos.git
The following commit(s) were added to refs/heads/master by this push:
new 74ae5f8 Stopped dep of Fluo for setting up InfluxDB (#222)
74ae5f8 is described below
commit 74ae5f8d47174af95a71eb4ab562192789030521
Author: Mike Walch <mw...@apache.org>
AuthorDate: Fri Jun 29 11:27:21 2018 -0400
Stopped dep of Fluo for setting up InfluxDB (#222)
---
ansible/roles/influxdb/handlers/main.yml | 2 +-
ansible/roles/influxdb/tasks/main.yml | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ansible/roles/influxdb/handlers/main.yml b/ansible/roles/influxdb/handlers/main.yml
index dd58338..736101c 100644
--- a/ansible/roles/influxdb/handlers/main.yml
+++ b/ansible/roles/influxdb/handlers/main.yml
@@ -1,7 +1,7 @@
- name: "restart influxdb"
service: name=influxdb state=restarted
- name: "setup influxdb"
- shell: /opt/influxdb/influx -import -path {{ fluo_home }}/contrib/influxdb/fluo_metrics_setup.txt
+ shell: /opt/influxdb/influx -import -path /etc/opt/influxdb/fluo_metrics_setup.txt
register: cresult
until: cresult.rc == 0
retries: 5
diff --git a/ansible/roles/influxdb/tasks/main.yml b/ansible/roles/influxdb/tasks/main.yml
index c5b3cc0..f7aa411 100644
--- a/ansible/roles/influxdb/tasks/main.yml
+++ b/ansible/roles/influxdb/tasks/main.yml
@@ -12,6 +12,8 @@
notify:
- restart influxdb
- setup influxdb
+- name: "download fluo setup"
+ get_url: url=https://raw.githubusercontent.com/apache/fluo/master/contrib/influxdb/fluo_metrics_setup.txt dest=/etc/opt/influxdb/fluo_metrics_setup.txt
- name: "create data dir"
file: path={{ default_data_dirs[0] }}/influxdb state=directory owner=influxdb group=influxdb
- name: "ensure influxdb is running (and enable it at boot)"