diff --git a/group_vars/influxdb.yml b/group_vars/influxdb.yml new file mode 100644 index 0000000..e14ccc2 --- /dev/null +++ b/group_vars/influxdb.yml @@ -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]} diff --git a/host_vars/influxdb02.home.foo.sh.yml b/host_vars/influxdb02.home.foo.sh.yml new file mode 100644 index 0000000..4e02379 --- /dev/null +++ b/host_vars/influxdb02.home.foo.sh.yml @@ -0,0 +1,6 @@ +--- +vmhost: vmhost02.home.foo.sh +network_interfaces: + - device: eth0 + vlan: 20 + mac: "52:54:00:ac:dc:6c" diff --git a/hosts b/hosts index e213e67..f9c5139 100644 --- a/hosts +++ b/hosts @@ -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 diff --git a/playbooks/influxdb.yml b/playbooks/influxdb.yml new file mode 100644 index 0000000..dfaa887 --- /dev/null +++ b/playbooks/influxdb.yml @@ -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 diff --git a/site.yml b/site.yml index 82ba716..6e09ada 100644 --- a/site.yml +++ b/site.yml @@ -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