Skip to content

Commit

Permalink
add ibp
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Oct 19, 2023
1 parent 60b416a commit c7701be
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 28 deletions.
42 changes: 33 additions & 9 deletions host_vars/bkk03.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,36 @@ default_storage_content: "images,rootdir"
default_storage_sparse: 1

lxc_nodes:
- host: "ibp"
proxmox_config:
vmid: "997"
hostname: "{{ hostvars['monitor']['host_name'] }}"
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['monitor']['netif'] }}"
cores: 1
memory: 256
swap: 256
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
onboot: True
unprivileged: True
validate_certs: False
description: "ibp monitoring"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['monitor']['ansible_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- host: "dot23"
proxmox_config:
vmid: "313"
hostname: "{{ hostvars['dot23']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['dot23']['netif'] }}"
cores: 8
memory: 16384
Expand Down Expand Up @@ -61,7 +86,7 @@ lxc_nodes:
proxmox_config:
vmid: "323"
hostname: "{{ hostvars['ksm23']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['ksm23']['netif'] }}"
cores: 8
memory: 16384
Expand Down Expand Up @@ -93,7 +118,7 @@ lxc_nodes:
proxmox_config:
vmid: "333"
hostname: "{{ hostvars['wnd23']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['wnd23']['netif'] }}"
cores: 8
memory: 16384
Expand Down Expand Up @@ -125,7 +150,7 @@ lxc_nodes:
proxmox_config:
vmid: "543"
hostname: "{{ hostvars['pbr13']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['pbr13']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -163,7 +188,7 @@ lxc_nodes:
proxmox_config:
vmid: "553"
hostname: "{{ hostvars['kbr13']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['kbr13']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -201,7 +226,7 @@ lxc_nodes:
proxmox_config:
vmid: "563"
hostname: "{{ hostvars['wbr13']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['wbr13']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -239,7 +264,7 @@ lxc_nodes:
proxmox_config:
vmid: "573"
hostname: "{{ hostvars['pch13']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['pch13']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -277,7 +302,7 @@ lxc_nodes:
proxmox_config:
vmid: "593"
hostname: "{{ hostvars['wch13']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['wch13']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -311,4 +336,3 @@ lxc_nodes:
- from_port: "{{ hostvars['wch13']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['wch13']['container_ip'] }}:{{ hostvars['wch13']['default_p2p_port_wss'] }}"
protocol: "tcp"
...
29 changes: 14 additions & 15 deletions host_vars/bkk04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lxc_nodes:
proxmox_config:
vmid: "969"
hostname: "{{ hostvars['matrix']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['matrix']['netif'] }}"
cores: 2
memory: 512
Expand Down Expand Up @@ -77,7 +77,7 @@ lxc_nodes:
proxmox_config:
vmid: "998"
hostname: "{{ hostvars['monitor']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['monitor']['netif'] }}"
cores: 1
memory: 256
Expand Down Expand Up @@ -105,7 +105,7 @@ lxc_nodes:
proxmox_config:
vmid: "214"
hostname: "{{ hostvars['dot14']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['dot14']['netif'] }}"
cores: 4
memory: 16384
Expand Down Expand Up @@ -146,7 +146,7 @@ lxc_nodes:
proxmox_config:
vmid: "314"
hostname: "{{ hostvars['dot24']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['dot24']['netif'] }}"
cores: 8
memory: 16384
Expand Down Expand Up @@ -181,7 +181,7 @@ lxc_nodes:
proxmox_config:
vmid: "124"
hostname: "{{ hostvars['ksm04']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['ksm04']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -213,7 +213,7 @@ lxc_nodes:
proxmox_config:
vmid: "224"
hostname: "{{ hostvars['ksm14']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['ksm14']['netif'] }}"
cores: 4
memory: 16384
Expand Down Expand Up @@ -254,7 +254,7 @@ lxc_nodes:
proxmox_config:
vmid: "324"
hostname: "{{ hostvars['ksm24']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['ksm24']['netif'] }}"
cores: 8
memory: 16384
Expand Down Expand Up @@ -289,7 +289,7 @@ lxc_nodes:
proxmox_config:
vmid: "234"
hostname: "{{ hostvars['wnd14']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['wnd14']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -330,7 +330,7 @@ lxc_nodes:
proxmox_config:
vmid: "334"
hostname: "{{ hostvars['wnd24']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['wnd24']['netif'] }}"
cores: 4
memory: 16384
Expand Down Expand Up @@ -365,7 +365,7 @@ lxc_nodes:
proxmox_config:
vmid: "514"
hostname: "{{ hostvars['mint14']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['mint14']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -406,7 +406,7 @@ lxc_nodes:
proxmox_config:
vmid: "524"
hostname: "{{ hostvars['mine14']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['mine14']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -447,7 +447,7 @@ lxc_nodes:
proxmox_config:
vmid: "534"
hostname: "{{ hostvars['wmint14']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['wmint14']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -488,7 +488,7 @@ lxc_nodes:
proxmox_config:
vmid: "534"
hostname: "{{ hostvars['wmint14']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['wmint14']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -529,7 +529,7 @@ lxc_nodes:
proxmox_config:
vmid: "504"
hostname: "{{ hostvars['enc14']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['enc14']['netif'] }}"
cores: 4
memory: 8192
Expand Down Expand Up @@ -566,4 +566,3 @@ lxc_nodes:
- from_port: "{{ hostvars['enc14']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['enc14']['container_ip'] }}:{{ hostvars['enc14']['default_p2p_port_wss'] }}"
protocol: "tcp"
...
9 changes: 9 additions & 0 deletions host_vars/ibp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
ansible_host: "27.131.160.106"
container_ip: "192.168.69.97"
ansible_port: "2997"
host_name: "ibp-monitor.rotko.net"
host_timezone: "Asia/Bangkok"
netif: '{"net0":"name=eth0,gw={{ default_nat_network_forward_cidr.split("/")[0] }},ip={{ default_host_ip }}/24,bridge={{ default_nat_device }}"}'
role: "monitor"
pinned_service: False
5 changes: 1 addition & 4 deletions inventory
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ polkadot
ansible
matrix
monitor
ibp

[routers]
bkk00
Expand Down Expand Up @@ -48,10 +49,6 @@ ksm24
wnd14
wnd24

[services]
ansible
monitor

[proxmox_hosts]
bkk01
bkk02
Expand Down

0 comments on commit c7701be

Please sign in to comment.