From 3abe3288c8f359f641d2670a0b6bf2fbca80c177 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 24 Dec 2024 20:01:34 +0700 Subject: [PATCH] fix: update penumbra container name --- bkk07 | 2 +- host_vars/bkk06.yaml | 26 +++++++++++++++++++ .../{penumbra02.yaml => penumbra-02.yaml} | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) rename host_vars/{penumbra02.yaml => penumbra-02.yaml} (94%) diff --git a/bkk07 b/bkk07 index 1e7541f..e585fc3 100644 --- a/bkk07 +++ b/bkk07 @@ -43,7 +43,7 @@ bkk50 hdx27 [penumbra] -penumbra02 +penumbra-02 [polkadot] rpc-polkadot-02 diff --git a/host_vars/bkk06.yaml b/host_vars/bkk06.yaml index cc0e96d..78cca09 100644 --- a/host_vars/bkk06.yaml +++ b/host_vars/bkk06.yaml @@ -2043,3 +2043,29 @@ 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: "penumbra-02" + proxmox_config: + vmid: "1102" + hostname: "{{ hostvars['penumbra-02']['host_name'] }}" + ostemplate: "local:vztmpl/{{ default_container_template }}" + netif: "{{ hostvars['penumbra-02']['netif'] }}" + cores: 4 + memory: 8192 + swap: 8192 + password: "{{ default_password }}" + disk: "{{ zfs_storage }}:20" + mounts: '{"mp0":"{{ zfs_storage }}:200,mp={{ hostvars["penumbra-02"]["default_database_path"] }}"}' + onboot: True + unprivileged: True + validate_certs: False + description: "{{ hostvars['penumbra-02']['default_network'] }} {{ hostvars['penumbra-02']['default_node_type'] }}: {{ hostvars['penumbra-02']['host_name'] }}" + state: present + features: + - nesting=1 + port_forwards: + - from_port: "{{ hostvars['penumbra-02']['ansible_port'] }}" + to_host: "{{ hostvars['penumbra-02']['container_ip'] }}:{{ ssh_port }}" + protocol: "tcp" + - from_port: "{{ hostvars['penumbra-02']['default_cometbft_p2p_port'] }}" + to_host: "{{ hostvars['penumbra-02']['container_ip'] }}:{{ hostvars['penumbra-02']['default_cometbft_p2p_port'] }}" + protocol: "tcp" diff --git a/host_vars/penumbra02.yaml b/host_vars/penumbra-02.yaml similarity index 94% rename from host_vars/penumbra02.yaml rename to host_vars/penumbra-02.yaml index 612cd8d..e0054e3 100644 --- a/host_vars/penumbra02.yaml +++ b/host_vars/penumbra-02.yaml @@ -2,7 +2,7 @@ ansible_host: "160.22.181.181" container_ip: "192.168.77.82" ansible_port: 2482 -host_name: "penumbra02.ct.rotko.net" +host_name: "penumbra-02.ct.rotko.net" host_timezone: "Asia/Bangkok" netif: '{"net0":"name=eth0,gw={{ default_nat_network_forward_cidr.split("/")[0] }},ip={{ default_host_ip }}/8,bridge={{ default_nat_device }}"}' role: "penumbra"