summaryrefslogtreecommitdiff
path: root/roles/install_monitoring/tasks/main.yml
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-20 20:56:39 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-20 20:56:39 +0100
commiteade06a930c16f5cb08edd454d9e41364edf8103 (patch)
tree51dde0c60cf6c6486269edaa574efad4ad4d90a1 /roles/install_monitoring/tasks/main.yml
parent892aba103d0b58a888813a42bbb0fb00e852adfd (diff)
install_monitoring: added ffmyk-influx
Diffstat (limited to 'roles/install_monitoring/tasks/main.yml')
-rw-r--r--roles/install_monitoring/tasks/main.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/roles/install_monitoring/tasks/main.yml b/roles/install_monitoring/tasks/main.yml
index 07260e2..eb6b4a3 100644
--- a/roles/install_monitoring/tasks/main.yml
+++ b/roles/install_monitoring/tasks/main.yml
@@ -75,6 +75,53 @@
cron_file: fastd-api
job: '/usr/local/bin/check_internet.sh'
+- name: create ffmyk-influx folder
+ file:
+ path: /opt/ffmyk-influx
+ state: directory
+
+- name: copy ffmyk-influx daemon.sh
+ copy:
+ src: ffmyk-influx/daemon.sh
+ dest: /opt/ffmyk-influx/daemon.sh
+ mode: 0755
+
+- name: copy ffmyk-influx php.ini
+ copy:
+ src: ffmyk-influx/php.ini
+ dest: /opt/ffmyk-influx/php.ini
+
+- name: copy ffmyk-influx systemd service
+ copy:
+ src: ffmyk-influx/ffmyk-influx.service
+ dest: /etc/systemd/system/ffmyk-influx.service
+
+- name: copy ffmyk-influx dhcp.php
+ template:
+ src: ffmyk-influx/dhcp.php.j2
+ dest: /opt/ffmyk-influx/dhcp.php
+
+- name: copy ffmyk-influx fastd.php
+ template:
+ src: ffmyk-influx/fastd.php.j2
+ dest: /opt/ffmyk-influx/fastd.php
+
+- name: copy ffmyk-influx func.php
+ template:
+ src: ffmyk-influx/func.php.j2
+ dest: /opt/ffmyk-influx/func.php
+
+- name: copy ffmyk-influx traffic.php
+ template:
+ src: ffmyk-influx/traffic.php.j2
+ dest: /opt/ffmyk-influx/traffic.php
+
+- name: start and enable ffmyk-influx.service
+ systemd:
+ name: ffmyk-influx.service
+ enabled: yes
+ state: started
+
- name: install munin
pacman:
name: munin-node