Add influxdb hosts

This commit is contained in:
Timo Makinen 2022-07-12 14:08:06 +00:00
parent b05e702219
commit 4364741d45
5 changed files with 44 additions and 0 deletions

8
group_vars/influxdb.yml Normal file
View file

@ -0,0 +1,8 @@
---
datadisks:
- 100
firewall_in:
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
- {proto: tcp, port: 443, from: [172.20.20.0/22]}
- {proto: tcp, port: 4949, from: [172.20.20.0/22]}

View file

@ -0,0 +1,6 @@
---
vmhost: vmhost02.home.foo.sh
network_interfaces:
- device: eth0
vlan: 20
mac: "52:54:00:ac:dc:6c"

4
hosts
View file

@ -19,6 +19,9 @@ fsol-gw02.home.foo.sh
[git]
git02.home.foo.sh
[influxdb]
influxdb02.home.foo.sh
[jenkins]
jenkins01.home.foo.sh
@ -133,6 +136,7 @@ sshsign
adm
collab
git
influxdb
jenkins
ldap
mail

25
playbooks/influxdb.yml Normal file
View file

@ -0,0 +1,25 @@
---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=influxdb"
- name: configure instance
hosts: influxdb
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
pre_tasks:
- name: mount /export
mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
roles:
- base
- influxdb

View file

@ -4,6 +4,7 @@
- import_playbook: playbooks/dna-gw.yml
- import_playbook: playbooks/fsol-gw.yml
- import_playbook: playbooks/git.yml
- import_playbook: playbooks/influxdb.yml
- import_playbook: playbooks/jenkins.yml
- import_playbook: playbooks/ldap.yml
- import_playbook: playbooks/log.yml