This commit is contained in:
zhangzhihan
2020-01-17 15:35:48 +08:00
commit 960bdaa91f
58 changed files with 7988 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
- name: "copy influxdb.rpm to destination server"
copy:
src: "{{ role_path }}/files/"
dest: /tmp
- name: "install influxdb"
yum:
name:
- /tmp/influxdb-1.7.7.x86_64.rpm
state: present
- name: "bak original influxdb.conf"
shell: cd /etc/influxdb;mv influxdb.conf influxdb.conf_original
- name: "Templates influxdb.conf"
template:
src: "{{role_path}}/templates/influxdb.conf.j2"
dest: /etc/influxdb/
tags: template
- name: "Start influxdb"
systemd:
name: influxdb.service
state: started
enabled: yes
- name: "script set_influxdb_cluster.sh"
script: "{{role_path}}//files/set_influxdb_cluster.sh"
when: influxdb.cluster_agent is defined
- name: "script set_influxdb_blade00.sh"
script: "{{role_path}}//files/set_influxdb_blade00.sh"