Add prometheus hosts
This commit is contained in:
parent
9b1aa236c5
commit
20fb7aeacf
4 changed files with 46 additions and 0 deletions
8
group_vars/prometheus.yml
Normal file
8
group_vars/prometheus.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
datadisks:
|
||||
- {size: 10, type: nvme}
|
||||
|
||||
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: 9100, from: [172.20.20.0/22]}
|
6
host_vars/prometheus02.home.foo.sh.yml
Normal file
6
host_vars/prometheus02.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
vmhost: vmhost02.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: eth0
|
||||
vlan: 20
|
||||
mac: "52:54:00:ac:dc:84"
|
|
@ -84,6 +84,9 @@ ocinode:
|
|||
print:
|
||||
hosts:
|
||||
print01.home.foo.sh:
|
||||
prometheus:
|
||||
hosts:
|
||||
prometheus02.home.foo.sh:
|
||||
proxy:
|
||||
hosts:
|
||||
proxy01.home.foo.sh:
|
||||
|
@ -154,6 +157,7 @@ rocky9:
|
|||
ldap:
|
||||
mirror:
|
||||
mongodb:
|
||||
prometheus:
|
||||
sqldb:
|
||||
static:
|
||||
vmhost:
|
||||
|
|
28
playbooks/prometheus.yml
Normal file
28
playbooks/prometheus.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
- name: Deploy KVM virtual machines
|
||||
ansible.builtin.import_playbook: include/deploy-kvm-guest.yml
|
||||
vars:
|
||||
myhosts: prometheus
|
||||
|
||||
- name: Configure instance
|
||||
hosts: prometheus
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
pre_tasks:
|
||||
- name: Mount /export
|
||||
ansible.posix.mount:
|
||||
name: /export
|
||||
src: LABEL=/export
|
||||
fstype: xfs
|
||||
opts: noatime,noexec,nosuid,nodev
|
||||
passno: "0"
|
||||
dump: "0"
|
||||
state: mounted
|
||||
|
||||
roles:
|
||||
- base
|
||||
- prometheus
|
Loading…
Add table
Reference in a new issue