diff --git a/host_vars/bkk06.yaml b/host_vars/bkk06.yaml index cc0e96d..9c8d566 100644 --- a/host_vars/bkk06.yaml +++ b/host_vars/bkk06.yaml @@ -2043,3 +2043,32 @@ lxc_nodes: - from_port: "{{ hostvars['rpc-asset-hub-paseo-01']['transition_bootnode_p2p_port_wss'] }}" to_host: "{{ hostvars['rpc-asset-hub-paseo-01']['container_ip'] }}:{{ hostvars['rpc-asset-hub-paseo-01']['transition_bootnode_p2p_port_wss'] }}" protocol: "tcp" + - host: "rpc-moonbeam-polkadot-01" + proxmox_config: + vmid: "31201" + hostname: "{{ hostvars['rpc-moonbeam-polkadot-01']['host_name'] }}" + ostemplate: "local:vztmpl/{{ default_container_template }}" + netif: "{{ hostvars['rpc-moonbeam-polkadot-01']['netif'] }}" + cores: 4 + memory: 16384 + swap: 8192 + password: "{{ default_password }}" + disk: "{{ zfs_storage }}:20" + mounts: '{"mp0":"{{ zfs_storage }}:250,mp={{ hostvars["rpc-moonbeam-polkadot-01"]["default_database_path"] }}"}' + onboot: True + unprivileged: True + validate_certs: False + description: "{{ hostvars['rpc-moonbeam-polkadot-01']['default_network'] }} {{ hostvars['rpc-moonbeam-polkadot-01']['default_node_type'] }}: {{ hostvars['rpc-moonbeam-polkadot-01']['host_name'] }}" + state: present + features: + - nesting=1 + port_forwards: + - from_port: "{{ hostvars['rpc-moonbeam-polkadot-01']['ansible_port'] }}" + to_host: "{{ hostvars['rpc-moonbeam-polkadot-01']['container_ip'] }}:{{ ssh_port }}" + protocol: "tcp" + - from_port: "{{ hostvars['rpc-moonbeam-polkadot-01']['zabbix_ext_port'] }}" + to_host: "{{ hostvars['monitor']['container_ip'] }}:{{ zabbix_port }}" + protocol: "tcp" + - from_port: "{{ hostvars['rpc-moonbeam-polkadot-01']['default_p2p_port'] }}" + to_host: "{{ hostvars['rpc-moonbeam-polkadot-01']['container_ip'] }}:{{ hostvars['rpc-moonbeam-polkadot-01']['default_p2p_port'] }}" + protocol: "tcp" diff --git a/host_vars/rpc-moonbeam-polkadot-01.yaml b/host_vars/rpc-moonbeam-polkadot-01.yaml new file mode 100644 index 0000000..407e181 --- /dev/null +++ b/host_vars/rpc-moonbeam-polkadot-01.yaml @@ -0,0 +1,27 @@ +--- +ansible_host: "160.22.181.181" +container_ip: "192.168.111.30" +ansible_port: 2131 +host_name: "rpc-moonbeam-polkadot-01.ct.rotko.net" +host_timezone: "Asia/Bangkok" +netif: '{"net0":"name=eth0,gw={{ default_nat_network_forward_cidr.split("/")[0] }},ip={{ default_host_ip }}/16,bridge={{ default_nat_device }}"}' +role: "moonbeam" +pinned_service: True + +default_telemetry_name: "Rotko Networks - {{ host_name.split('.')[0] }}" +default_domain: "{{ host_name }}" +default_network: "moonbeam" +default_relay_rpc: "ws://{{ hostvars['rpc-polkadot-01']['container_ip'] }}:{{ hostvars['rpc-polkadot-01']['default_rpc_port'] }}" +default_relay_rpc_fallback: "ws://{{ hostvars['rpc-polkadot-02']['container_ip'] }}:{{ hostvars['rpc-polkadot-02']['default_rpc_port'] }}" +default_database: "rocksdb" +default_node_type: "endpoint" +default_bootnode_domain: "moonbeam.boot.rotko.net" +default_p2p_port: 31201 +default_p2p_port_ws: 30434 +default_p2p_port_wss: 30435 +default_rpc_port: 9400 +default_prom_port: 7400 +default_secure_rpc_port: 42131 +zabbix_ext_port: 10131 +default_in_peers: 64 +default_out_peers: 64 diff --git a/playbooks/moonbeam.yaml b/playbooks/moonbeam.yaml index 97b8b9f..69caa8d 100644 --- a/playbooks/moonbeam.yaml +++ b/playbooks/moonbeam.yaml @@ -6,3 +6,4 @@ roles: - setup_add_node_role - setup_install_moonbeam + - setup_install_nginx