add playbook_provision_hyper01
and create vm "monitoring01"
This commit is contained in:
parent
abad2956b6
commit
2c9c07c28f
|
@ -9,18 +9,19 @@ Overview:
|
||||||
IPAM / Device Overview:
|
IPAM / Device Overview:
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
| Name | Location | MGMT IPv4 | MAC | Device | Notes |
|
| Name | Location | MGMT IPv4 | MAC | Device | Notes |
|
||||||
| ------------- | -------- | ------------ | ------------------- | -------------------- | ----- |
|
| -------------- | --------- | ------------ | ------------------- | -------------------- | ----- |
|
||||||
| `gw-core01` | Büro | `10.84.1.1` | `78:8a:20:bd:b6:ae` | Ubiquiti EdgeRouterX | |
|
| `gw-core01` | Büro | `10.84.1.1` | `78:8a:20:bd:b6:ae` | Ubiquiti EdgeRouterX | |
|
||||||
| `sw-access01` | Büro | `10.84.1.10` | `bc:cf:4f:e3:bb:8d` | Zyxel GS1800-8HP | |
|
| `sw-access01` | Büro | `10.84.1.10` | `bc:cf:4f:e3:bb:8d` | Zyxel GS1800-8HP | |
|
||||||
| `sw-access02` | Zelt 5 | `10.84.1.11` | `bc:cf:4f:e3:ac:39` | Zyxel GS1800-8HP | |
|
| `sw-access02` | Zelt 5 | `10.84.1.11` | `bc:cf:4f:e3:ac:39` | Zyxel GS1800-8HP | |
|
||||||
| `hyper01` | Büro | `10.84.1.21` | `00:23:24:54:f0:fe` | Lenovo ThinkCentre ? | |
|
| `hyper01` | Büro | `10.84.1.21` | `00:23:24:54:f0:fe` | Lenovo ThinkCentre ? | |
|
||||||
| `ap-2bbf` | Zelt 4 | `10.84.1.30` | `24:de:c6:cc:2b:bf` | Aruba AP-105 | |
|
| `monitoring01` | `hyper01` | `10.84.1.51` | `16:b9:13:c3:10:5e` | Proxmox VM | |
|
||||||
| `ap-1a38` | Zelt 5 | `10.84.1.35` | `24:de:c6:c3:ac:7c` | Aruba AP-105 | |
|
| `ap-2bbf` | Zelt 4 | `10.84.1.30` | `24:de:c6:cc:2b:bf` | Aruba AP-105 | |
|
||||||
| `ap-0b99` | Zelt 2 | `10.84.1.32` | `6c:f3:7f:c9:0b:99` | Aruba AP-105 | |
|
| `ap-1a38` | Zelt 5 | `10.84.1.35` | `24:de:c6:c3:ac:7c` | Aruba AP-105 | |
|
||||||
| `ap-c5d1` | Büro | `10.84.1.33` | `ac:a3:1e:cf:c5:d1` | Aruba AP-105 | |
|
| `ap-0b99` | Zelt 2 | `10.84.1.32` | `6c:f3:7f:c9:0b:99` | Aruba AP-105 | |
|
||||||
| `ap-c495` | Zelt 3 | `10.84.1.34` | `ac:a3:1e:cf:c4:95` | Aruba AP-105 | |
|
| `ap-c5d1` | Büro | `10.84.1.33` | `ac:a3:1e:cf:c5:d1` | Aruba AP-105 | |
|
||||||
| `ap-8f42` | Zelt 1 | `10.84.1.36` | `d8:c7:c8:c2:8f:42` | Aruba AP-105 | |
|
| `ap-c495` | Zelt 3 | `10.84.1.34` | `ac:a3:1e:cf:c4:95` | Aruba AP-105 | |
|
||||||
|
| `ap-8f42` | Zelt 1 | `10.84.1.36` | `d8:c7:c8:c2:8f:42` | Aruba AP-105 | |
|
||||||
|
|
||||||
Cloud VMs:
|
Cloud VMs:
|
||||||
----------
|
----------
|
||||||
|
@ -163,6 +164,7 @@ root@hyper01:/etc/apt#
|
||||||
```
|
```
|
||||||
* update: `apt update && apt dist-upgrade -y && reboot`
|
* update: `apt update && apt dist-upgrade -y && reboot`
|
||||||
* install alpine template: `pveam update && pveam download local alpine-3.16-default_20220622_amd64.tar.xz`
|
* install alpine template: `pveam update && pveam download local alpine-3.16-default_20220622_amd64.tar.xz`
|
||||||
|
* remove alpine template and download debian template
|
||||||
|
|
||||||
### eap-adp-jump01
|
### eap-adp-jump01
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
- name: provision hyper01
|
||||||
|
hosts: hyper01
|
||||||
|
tasks:
|
||||||
|
- name: install node-exporter
|
||||||
|
package:
|
||||||
|
name: prometheus-node-exporter
|
||||||
|
|
||||||
|
- name: create vms/container
|
||||||
|
hosts: 127.0.0.1
|
||||||
|
connection: local
|
||||||
|
gather_facts: no
|
||||||
|
tasks:
|
||||||
|
- name: create monitoring01
|
||||||
|
proxmox:
|
||||||
|
api_user: root@pam
|
||||||
|
api_password: "{{ lookup('passwordstore', 'server/hyper01') }}"
|
||||||
|
api_host: "{{ hostvars['hyper01']['ip'] }}"
|
||||||
|
node: hyper01
|
||||||
|
hostname: monitoring01
|
||||||
|
onboot: yes
|
||||||
|
cpus: 2
|
||||||
|
disk: 50
|
||||||
|
memory: 1024
|
||||||
|
storage: 'local-zfs'
|
||||||
|
ostemplate: 'local:vztmpl/debian-11-standard_11.3-1_amd64.tar.zst'
|
||||||
|
password: "{{ lookup('passwordstore', 'vms/monitoring01/root') }}"
|
||||||
|
pubkey: "{{ lookup('ansible.builtin.file', 'files/authorized_keys') }}"
|
||||||
|
netif: '{"net0":"name=eth0,ip=10.84.1.51/24,gw=10.84.1.1,bridge=vmbr0"}'
|
||||||
|
unprivileged: yes
|
||||||
|
features:
|
||||||
|
- nesting=1
|
Reference in New Issue