更新consul-external、consul-internal、mariadb

This commit is contained in:
zhangzhihan
2020-01-24 17:55:06 +08:00
parent 960bdaa91f
commit e78252a137
40 changed files with 41 additions and 2552 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#
influx -port 58086 -execute 'CREATE DATABASE tsg_stat'
influx -port 58086 -execute 'CREATE RETENTION POLICY "1_day" ON "tsg_stat" DURATION 1d REPLICATION 1 DEFAULT'

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#
influx -port 58086 -execute 'CREATE DATABASE tsg_stat'
influx -port 58086 -execute 'CREATE RETENTION POLICY "1_year" ON "tsg_stat" DURATION 365d REPLICATION 1 DEFAULT'

View File

@@ -9,25 +9,23 @@
- /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/
dest: /etc/influxdb/influxdb.conf
tags: template
- name: "Start influxdb"
systemd:
name: influxdb.service
state: started
state: restarted
enabled: yes
- name: "script set_influxdb_cluster.sh"
script: "{{role_path}}//files/set_influxdb_cluster.sh"
when: influxdb.cluster_agent is defined
when: influxdb.cluster_agent == "yes"
- name: "script set_influxdb_blade00.sh"
script: "{{role_path}}//files/set_influxdb_blade00.sh"
when: influxdb.mcn0_agent == "yes"