Skip to content

Commit

Permalink
#rg zabbix_port -l | xargs sed -i 's/zabbix_port/zabbix_ext_port/g'
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Jan 20, 2024
1 parent 0e4b124 commit a998f2f
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 43 deletions.
4 changes: 2 additions & 2 deletions host_vars/bkk01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ lxc_nodes:
- from_port: "{{ hostvars['dot01']['ansible_port'] }}"
to_host: "{{ hostvars['dot01']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['dot01']['default_p2p_port'] }}"
Expand Down Expand Up @@ -80,7 +80,7 @@ lxc_nodes:
- from_port: "{{ hostvars['ksm01']['ansible_port'] }}"
to_host: "{{ hostvars['ksm01']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['ksm01']['default_p2p_port'] }}"
Expand Down
4 changes: 2 additions & 2 deletions host_vars/bkk02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ lxc_nodes:
- from_port: "{{ hostvars['dot02']['ansible_port'] }}"
to_host: "{{ hostvars['dot02']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['dot02']['default_p2p_port'] }}"
Expand Down Expand Up @@ -80,7 +80,7 @@ lxc_nodes:
- from_port: "{{ hostvars['ksm02']['ansible_port'] }}"
to_host: "{{ hostvars['ksm02']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['ksm02']['default_p2p_port'] }}"
Expand Down
18 changes: 9 additions & 9 deletions host_vars/bkk03.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ lxc_nodes:
- from_port: "{{ hostvars['ibp']['ansible_port'] }}"
to_host: "{{ hostvars['ibp']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- host: "dot23"
Expand All @@ -73,7 +73,7 @@ lxc_nodes:
- from_port: "{{ hostvars['dot23']['ansible_port'] }}"
to_host: "{{ hostvars['dot23']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['dot23']['default_p2p_port'] }}"
Expand Down Expand Up @@ -111,7 +111,7 @@ lxc_nodes:
- from_port: "{{ hostvars['ksm23']['ansible_port'] }}"
to_host: "{{ hostvars['ksm23']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['ksm23']['default_p2p_port'] }}"
Expand Down Expand Up @@ -149,7 +149,7 @@ lxc_nodes:
- from_port: "{{ hostvars['wnd23']['ansible_port'] }}"
to_host: "{{ hostvars['wnd23']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['wnd23']['default_p2p_port'] }}"
Expand Down Expand Up @@ -187,7 +187,7 @@ lxc_nodes:
- from_port: "{{ hostvars['pbr13']['ansible_port'] }}"
to_host: "{{ hostvars['pbr13']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['pbr13']['default_p2p_port'] }}"
Expand Down Expand Up @@ -231,7 +231,7 @@ lxc_nodes:
- from_port: "{{ hostvars['kbr13']['ansible_port'] }}"
to_host: "{{ hostvars['kbr13']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['kbr13']['default_p2p_port'] }}"
Expand Down Expand Up @@ -275,7 +275,7 @@ lxc_nodes:
- from_port: "{{ hostvars['wbr13']['ansible_port'] }}"
to_host: "{{ hostvars['wbr13']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['wbr13']['default_p2p_port'] }}"
Expand Down Expand Up @@ -319,7 +319,7 @@ lxc_nodes:
- from_port: "{{ hostvars['pch13']['ansible_port'] }}"
to_host: "{{ hostvars['pch13']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['pch13']['default_p2p_port'] }}"
Expand Down Expand Up @@ -363,7 +363,7 @@ lxc_nodes:
- from_port: "{{ hostvars['wch13']['ansible_port'] }}"
to_host: "{{ hostvars['wch13']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['wch13']['default_p2p_port'] }}"
Expand Down
28 changes: 14 additions & 14 deletions host_vars/bkk04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ lxc_nodes:
- from_port: "{{ hostvars['ansible']['ansible_port'] }}"
to_host: "{{ hostvars['ansible']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['ansible']['zabbix_port'] }}"
- from_port: "{{ hostvars['ansible']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['ansible']['container_ip'] }}:10050"
protocol: "tcp"
- host: "matrix"
Expand Down Expand Up @@ -70,7 +70,7 @@ lxc_nodes:
- from_port: "8448"
to_host: "{{ hostvars['matrix']['container_ip'] }}:8448"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- host: "dot14"
Expand All @@ -96,7 +96,7 @@ lxc_nodes:
- from_port: "{{ hostvars['dot14']['ansible_port'] }}"
to_host: "{{ hostvars['dot14']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['dot14']['default_p2p_port'] }}"
Expand Down Expand Up @@ -140,7 +140,7 @@ lxc_nodes:
- from_port: "{{ hostvars['dot24']['ansible_port'] }}"
to_host: "{{ hostvars['dot24']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['dot24']['default_p2p_port'] }}"
Expand Down Expand Up @@ -178,7 +178,7 @@ lxc_nodes:
- from_port: "{{ hostvars['ksm04']['ansible_port'] }}"
to_host: "{{ hostvars['ksm04']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['ksm04']['default_p2p_port'] }}"
Expand Down Expand Up @@ -216,7 +216,7 @@ lxc_nodes:
- from_port: "{{ hostvars['ksm14']['ansible_port'] }}"
to_host: "{{ hostvars['ksm14']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['ksm14']['default_p2p_port'] }}"
Expand Down Expand Up @@ -260,7 +260,7 @@ lxc_nodes:
- from_port: "{{ hostvars['ksm24']['ansible_port'] }}"
to_host: "{{ hostvars['ksm24']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['ksm24']['default_p2p_port'] }}"
Expand Down Expand Up @@ -298,7 +298,7 @@ lxc_nodes:
- from_port: "{{ hostvars['wnd14']['ansible_port'] }}"
to_host: "{{ hostvars['wnd14']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['wnd14']['default_p2p_port'] }}"
Expand Down Expand Up @@ -342,7 +342,7 @@ lxc_nodes:
- from_port: "{{ hostvars['wnd24']['ansible_port'] }}"
to_host: "{{ hostvars['wnd24']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['wnd24']['default_p2p_port'] }}"
Expand Down Expand Up @@ -380,7 +380,7 @@ lxc_nodes:
- from_port: "{{ hostvars['mint14']['ansible_port'] }}"
to_host: "{{ hostvars['mint14']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['mint14']['default_p2p_port'] }}"
Expand Down Expand Up @@ -424,7 +424,7 @@ lxc_nodes:
- from_port: "{{ hostvars['mine14']['ansible_port'] }}"
to_host: "{{ hostvars['mine14']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['mine14']['default_p2p_port'] }}"
Expand Down Expand Up @@ -468,7 +468,7 @@ lxc_nodes:
- from_port: "{{ hostvars['wmint14']['ansible_port'] }}"
to_host: "{{ hostvars['wmint14']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['wmint14']['default_p2p_port'] }}"
Expand Down Expand Up @@ -512,7 +512,7 @@ lxc_nodes:
- from_port: "{{ hostvars['wmint14']['ansible_port'] }}"
to_host: "{{ hostvars['wmint14']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['wmint14']['default_p2p_port'] }}"
Expand Down Expand Up @@ -556,7 +556,7 @@ lxc_nodes:
- from_port: "{{ hostvars['enc14']['ansible_port'] }}"
to_host: "{{ hostvars['enc14']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['monitor']['zabbix_port'] }}"
- from_port: "{{ hostvars['monitor']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['enc14']['default_p2p_port'] }}"
Expand Down
Loading

0 comments on commit a998f2f

Please sign in to comment.