From 2c9c07c28f8779b41f917527925e45e381e9c21a Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Sun, 3 Jul 2022 01:25:54 +0200 Subject: [PATCH] add playbook_provision_hyper01 and create vm "monitoring01" --- documentation/README.md | 26 +++++++++--------- password-store/vms/monitoring01/root.gpg | Bin 0 -> 1003 bytes playbook_provision_hyper01.yml | 32 +++++++++++++++++++++++ 3 files changed, 46 insertions(+), 12 deletions(-) create mode 100644 password-store/vms/monitoring01/root.gpg create mode 100644 playbook_provision_hyper01.yml diff --git a/documentation/README.md b/documentation/README.md index 793e47e..11148ad 100644 --- a/documentation/README.md +++ b/documentation/README.md @@ -9,18 +9,19 @@ Overview: IPAM / Device Overview: ----------------------- -| Name | Location | MGMT IPv4 | MAC | Device | Notes | -| ------------- | -------- | ------------ | ------------------- | -------------------- | ----- | -| `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-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 ? | | -| `ap-2bbf` | Zelt 4 | `10.84.1.30` | `24:de:c6:cc:2b:bf` | Aruba AP-105 | | -| `ap-1a38` | Zelt 5 | `10.84.1.35` | `24:de:c6:c3:ac:7c` | Aruba AP-105 | | -| `ap-0b99` | Zelt 2 | `10.84.1.32` | `6c:f3:7f:c9:0b:99` | Aruba AP-105 | | -| `ap-c5d1` | Büro | `10.84.1.33` | `ac:a3:1e:cf:c5:d1` | 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 | | +| Name | Location | MGMT IPv4 | MAC | Device | Notes | +| -------------- | --------- | ------------ | ------------------- | -------------------- | ----- | +| `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-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 ? | | +| `monitoring01` | `hyper01` | `10.84.1.51` | `16:b9:13:c3:10:5e` | Proxmox VM | | +| `ap-2bbf` | Zelt 4 | `10.84.1.30` | `24:de:c6:cc:2b:bf` | Aruba AP-105 | | +| `ap-1a38` | Zelt 5 | `10.84.1.35` | `24:de:c6:c3:ac:7c` | Aruba AP-105 | | +| `ap-0b99` | Zelt 2 | `10.84.1.32` | `6c:f3:7f:c9:0b:99` | Aruba AP-105 | | +| `ap-c5d1` | Büro | `10.84.1.33` | `ac:a3:1e:cf:c5:d1` | 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: ---------- @@ -163,6 +164,7 @@ root@hyper01:/etc/apt# ``` * update: `apt update && apt dist-upgrade -y && reboot` * 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 diff --git a/password-store/vms/monitoring01/root.gpg b/password-store/vms/monitoring01/root.gpg new file mode 100644 index 0000000000000000000000000000000000000000..b7fcb21836108ff4276701922c06308968be8762 GIT binary patch literal 1003 zcmVQL_j0>3J}`I1*vxe!-_-I3O4vCu(2kiy4u2vj z=%WolC1j55p?`BB%thZsfRTB17+<5J(md8a3>NyXz0ZcYgB33;8fyxI>n72tw3?pH zz$+Pl#t~bKjkG#)45*X1CM`{~hU{B=i1V#m1FUoq?yQ(0AUfcyx2QNEHWspa03Rre zNA9N^ixyntcYXuNrpSqh>0DZfTw;O%c{=`+OhfVxDM56Z345tbK6IPbYLCG?u?@;j zu?IgWk-2)1l|EIBxX=5bv!jDz_L5LUXP*qUla%vE5_OZ45%Uw+%wLuXmGg=xW z3Q-VDs*`Qqi#tGa_-gp}9wirtsbkt!2X|;f7B(iSJN%a&}ELHXs2Xy-> zRUiX97V!|P(9#gQ*&W_L1}X|Dq;A#^ZWfgjcGu(IOMm8&Yf5`YZt|!lC~3?uw7{~9 zmX(@Cg6mYK`_Lv(-T_vNlZo|gT>GaTY|qAP1m%!QfABrO|B?4dtlfnI3Oz`@K>I9>QGg5)2uV8L1k-0||-SEDv(jB*#&m=J{qK|C*npkJQ)Y0U2Hl(h@l9!`)2}xr5e)M?CV=HX&N;(xdo{%#7s8_D`#nu$x7efLedC zfHHvwbxGN#{-4Eu52dtBl{!$%hB2p}*&AdhOJl)9b{N;{tL#Q8)cjghxpQ`oj#*r!r#qys)q9dFZv69vpk1xxCSkw%C8K75Bl&H Zhu2B1m8DG@UTeKzR)5j)?5HaMG~KcT={o=b literal 0 HcmV?d00001 diff --git a/playbook_provision_hyper01.yml b/playbook_provision_hyper01.yml new file mode 100644 index 0000000..94eae43 --- /dev/null +++ b/playbook_provision_hyper01.yml @@ -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