diff --git a/host_vars/bkk03.yaml b/host_vars/bkk03.yaml index ce4ced8..93cf841 100644 --- a/host_vars/bkk03.yaml +++ b/host_vars/bkk03.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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" -... diff --git a/host_vars/bkk04.yaml b/host_vars/bkk04.yaml index f24ec71..cea01a6 100644 --- a/host_vars/bkk04.yaml +++ b/host_vars/bkk04.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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" -... diff --git a/host_vars/ibp.yaml b/host_vars/ibp.yaml new file mode 100644 index 0000000..6cd2adf --- /dev/null +++ b/host_vars/ibp.yaml @@ -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 diff --git a/inventory b/inventory index e49a878..7966bb2 100644 --- a/inventory +++ b/inventory @@ -15,6 +15,7 @@ polkadot ansible matrix monitor +ibp [routers] bkk00 @@ -48,10 +49,6 @@ ksm24 wnd14 wnd24 -[services] -ansible -monitor - [proxmox_hosts] bkk01 bkk02