Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rotkonetworks/unlabored
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommi committed Aug 2, 2024
2 parents a25b3a8 + a0287b9 commit 435d660
Show file tree
Hide file tree
Showing 56 changed files with 778 additions and 240 deletions.
1 change: 1 addition & 0 deletions bkk03
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ polkadot
bkk00

[polkadot]
dot03
dot23
wnd23
pso03
Expand Down
2 changes: 2 additions & 0 deletions bkk04
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ polkadot
bkk00

[polkadot]
dot04
ksm04
ksm24
pso04
pso24

[cumulus]
Expand Down
12 changes: 12 additions & 0 deletions bkk07
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,25 @@ rotko
[rotko:children]
proxmox_hosts
proxmox_nodes
proxmox_vms
routers

[proxmox_nodes:children]
polkadot
hydradx
cumulus

[proxmox_vms:children]
taloswrkr
talosctl

[taloswrkr]
taloswrkr0701
taloswrkr0702

[talosctl]
talosctl0701

[routers]
bkk00

Expand Down
Empty file modified filter_plugins/pveumfilters.py
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions group_vars/cumulus.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
default_base_path: /opt/cumulus
default_chain_spec_dl_url: https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/cumulus/parachains/chain-specs/{{
default_network }}.json
default_client_version: 1.14.0
default_client_version: polkadot-stable2407
default_database: paritydb
default_database_path: '{{ default_base_path }}/chains'
default_download_base_url: https://github.com/paritytech/polkadot-sdk/releases/download/
default_download_url: '{{ default_download_base_url }}polkadot-v{{ default_client_version
default_download_url: '{{ default_download_base_url }}{{ default_client_version
}}/polkadot-parachain'
default_group: '{{ service_users[''cumulus''] }}'
default_log_level: info
Expand Down
2 changes: 1 addition & 1 deletion group_vars/encointer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
default_client_version: 1.7.6
default_client_version: 1.11.1
default_download_url: https://github.com/encointer/encointer-parachain/releases/download/{{ default_client_version }}/encointer-collator

default_service: encointer
Expand Down
2 changes: 1 addition & 1 deletion group_vars/hydradx.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
default_base_path: /opt/hydradx
default_client_version: v24.0.1
default_client_version: v28.0.0
default_database: paritydb
default_database_path: '{{ default_base_path }}/chains'
default_download_base_url: https://github.com/galacticcouncil/HydraDX-node/releases/download/
Expand Down
33 changes: 33 additions & 0 deletions group_vars/penumbra.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
# penumbra version
penumbra_version: "0.73.1"
penumbra_chain_id: ""

# dl locations
penumbra_download_pcli_url: "https://github.com/penumbra-zone/penumbra/releases/download/v{{ penumbra_version }}/pcli-installer.sh"
penumbra_download_pd_url: "https://github.com/penumbra-zone/penumbra/releases/download/v{{ penumbra_version }}/pd-installer.sh"
penumbra_download_pclientd_url: "https://github.com/penumbra-zone/penumbra/releases/download/v{{ penumbra_version }}/pclientd-installer.sh"

default_git_repo: "https://github.com/penumbra-zone/penumbra"

# service/user
penumbra_service: "penumbra"
penumbra_user: "{{ service_users['penumbra'] }}"

# paths
default_home_path: "/opt/penumbra"
default_src_path: "{{ default_home_path }}/src"
default_storage_path: "{{ default_home_path }}/data"
default_config_path: "{{ default_home_path }}/config"
default_log_path: "{{ default_home_path }}/logs"
default_script_path: "{{ default_home_path }}/scripts"

default_network: "penumbra"
default_node_type: "validator"
default_p2p_port: 33691
default_p2p_port_ws: 34691
default_p2p_port_wss: 35691
default_rpc_port: 9691
default_secure_rpc_port: 42691
default_prom_port: 7691
zabbix_ext_port: 10691
6 changes: 3 additions & 3 deletions group_vars/polkadot.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
default_auxiliary_binary_path: /usr/libexec
default_base_path: /opt/polkadot
default_chain_spec: '{{ default_base_path }}/paseo.json'
default_chain_spec: '{{ default_base_path }}/{{ default_network }}.json'
default_chain_spec_dl_url: https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/polkadot/node/service/chain-specs/{{
default_network }}.json
default_client_version: 1.14.0
default_client_version: polkadot-stable2407
default_database: paritydb
default_database_path: /opt/polkadot/chains
default_download_base_url: https://github.com/paritytech/polkadot-sdk/releases/download/
default_download_url: '{{ default_download_base_url }}polkadot-v{{ default_client_version
default_download_url: '{{ default_download_base_url }}{{ default_client_version
}}/polkadot'
default_download_url_execute: '{{ default_download_base_url }}polkadot-v{{ default_client_version
}}/polkadot-execute-worker'
Expand Down
7 changes: 3 additions & 4 deletions host_vars/bkk00.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
ansible_host: "160.22.181.181"
ansible_port: 20780
host_name: "bkk00.rotko.net"
# host_name: "gw.rotko.net"
ansible_port: 22
host_name: "bkk50.rotko.net"
host_timezone: "Asia/Bangkok"
ansible_connection: ansible.netcommon.network_cli
ansible_network_os: community.network.routeros
ansible_user: ansible
ansible_private_key_file: ~/.ssh/unlabored/ansible_mikrotik
# ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q bkk01"'

default_gw_device: "sfp-sfpplus2" # ether1, sfp-sfpplus1, sfp-sfpplus2
default_gw_device: "sfp-sfpplus2" # sfp-sfpplus1, sfp-sfpplus2 #ECMP
76 changes: 76 additions & 0 deletions host_vars/bkk03.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,82 @@ port_forwards:
protocol: "tcp"

lxc_nodes:
- host: "ksm03"
proxmox_config:
vmid: "113"
hostname: "{{ hostvars['ksm03']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
netif: "{{ hostvars['ksm03']['netif'] }}"
cores: 4
memory: 16384
swap: 16384
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:1300,mp={{ hostvars["ksm03"]["default_base_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
description: "Polkadot validator node: {{ hostvars['ksm03']['host_name'] }}"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['ksm03']['ansible_port'] }}"
to_host: "{{ hostvars['ksm03']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['ksm03']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['ksm03']['default_p2p_port'] }}"
to_host: "{{ hostvars['ksm03']['container_ip'] }}:{{ hostvars['ksm03']['default_p2p_port'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['ksm03']['default_p2p_port'] }}"
to_host: "{{ hostvars['ksm03']['container_ip'] }}:{{ hostvars['ksm03']['default_p2p_port'] }}"
protocol: "udp"
- from_port: "{{ hostvars['ksm03']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['ksm03']['container_ip'] }}:{{ hostvars['ksm03']['default_p2p_port_ws'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['ksm03']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['ksm03']['container_ip'] }}:{{ hostvars['ksm03']['default_p2p_port_ws'] }}"
protocol: "udp"
- host: "dot03"
proxmox_config:
vmid: "113"
hostname: "{{ hostvars['dot03']['host_name'] }}"
ostemplate: 'local:vztmpl/{{ default_container_template }}'
netif: "{{ hostvars['dot03']['netif'] }}"
cores: 4
memory: 16384
swap: 16384
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:600,mp={{ hostvars["dot03"]["default_base_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
description: "Polkadot validator node: {{ hostvars['dot03']['host_name'] }}"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['dot03']['ansible_port'] }}"
to_host: "{{ hostvars['dot03']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['dot03']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['dot03']['default_p2p_port'] }}"
to_host: "{{ hostvars['dot03']['container_ip'] }}:{{ hostvars['dot03']['default_p2p_port'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['dot03']['default_p2p_port'] }}"
to_host: "{{ hostvars['dot03']['container_ip'] }}:{{ hostvars['dot03']['default_p2p_port'] }}"
protocol: "udp"
- from_port: "{{ hostvars['dot03']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['dot03']['container_ip'] }}:{{ hostvars['dot03']['default_p2p_port_ws'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['dot03']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['dot03']['container_ip'] }}:{{ hostvars['dot03']['default_p2p_port_ws'] }}"
protocol: "udp"
- host: "ibp"
proxmox_config:
vmid: "997"
Expand Down
67 changes: 66 additions & 1 deletion host_vars/bkk04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,39 @@ lxc_nodes:
to_host: "{{ hostvars['monitor']['container_ip'] }}:22"
protocol: "tcp"
# TODO: add zabbix / prometheus port forwards
#
- host: "dot04"
proxmox_config:
vmid: "114"
hostname: "{{ hostvars['dot04']['host_name'] }}"
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['dot04']['netif'] }}"
cores: 4
memory: 16384
swap: 8192
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:700,mp={{ hostvars["dot04"]["default_base_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
description: "{{ hostvars['dot04']['default_network'] }} {{ hostvars['dot04']['default_node_type'] }}: {{ hostvars['dot04']['host_name'] }}"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['dot04']['ansible_port'] }}"
to_host: "{{ hostvars['dot04']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['dot04']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['dot04']['default_p2p_port'] }}"
to_host: "{{ hostvars['dot04']['container_ip'] }}:{{ hostvars['dot04']['default_p2p_port'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['dot04']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['dot04']['container_ip'] }}:{{ hostvars['dot04']['default_p2p_port_ws'] }}"
protocol: "tcp"
- host: "ksm04"
proxmox_config:
vmid: "124"
Expand All @@ -62,7 +95,7 @@ lxc_nodes:
swap: 8192
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:700,mp={{ hostvars["ksm04"]["default_base_path"] }}"}'
mounts: '{"mp0":"{{ default_storage }}:1300,mp={{ hostvars["ksm04"]["default_base_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
Expand Down Expand Up @@ -252,3 +285,35 @@ lxc_nodes:
- from_port: "{{ hostvars['enc24']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['enc24']['container_ip'] }}:{{ hostvars['enc24']['default_p2p_port_wss'] }}"
protocol: "tcp"
- host: "pso04"
proxmox_config:
vmid: "1004"
hostname: "{{ hostvars['pso04']['host_name'] }}"
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['pso04']['netif'] }}"
cores: 2
memory: 16384
swap: 8192
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:200,mp={{ hostvars["pso04"]["default_base_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
description: "{{ hostvars['pso04']['default_network'] }} {{ hostvars['pso04']['default_node_type'] }}: {{ hostvars['pso04']['host_name'] }}"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['pso04']['ansible_port'] }}"
to_host: "{{ hostvars['pso04']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['pso04']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['pso04']['default_p2p_port'] }}"
to_host: "{{ hostvars['pso04']['container_ip'] }}:{{ hostvars['pso04']['default_p2p_port'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['pso04']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['pso04']['container_ip'] }}:{{ hostvars['pso04']['default_p2p_port_ws'] }}"
protocol: "tcp"
Loading

0 comments on commit 435d660

Please sign in to comment.