Skip to content

Commit 0849f0f

Browse files
committed
Imported changes from MN
1 parent 6a12b68 commit 0849f0f

File tree

2 files changed

+45
-12
lines changed

2 files changed

+45
-12
lines changed

etc/kayobe/environments/ci-multinode/networks.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,55 +77,55 @@ internal_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
7777
internal_allocation_pool_start: 192.168.37.3
7878
internal_allocation_pool_end: 192.168.37.254
7979
internal_vlan: 101
80-
internal_zone: "internal"
80+
internal_zone: "internal_net_zone"
8181

8282
# External network
8383
external_cidr: 192.168.38.0/24
8484
external_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
8585
external_allocation_pool_start: 192.168.38.3
8686
external_allocation_pool_end: 192.168.38.128
8787
external_vlan: 102
88-
external_zone: "external"
88+
external_zone: "external_net_zone"
8989

9090
# Public network
9191
public_cidr: 192.168.39.0/24
9292
public_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
9393
public_allocation_pool_start: 192.168.39.3
9494
public_allocation_pool_end: 192.168.39.254
9595
public_vlan: 103
96-
public_zone: "public"
96+
public_zone: "public_net_zone"
9797

9898
# Tunnel network
9999
tunnel_cidr: 192.168.40.0/24
100100
tunnel_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
101101
tunnel_allocation_pool_start: 192.168.40.3
102102
tunnel_allocation_pool_end: 192.168.40.254
103103
tunnel_vlan: 104
104-
tunnel_zone: "tunnel"
104+
tunnel_zone: "tunnel_net_zone"
105105

106106
# Storage network
107107
storage_cidr: 192.168.41.0/24
108108
storage_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
109109
storage_allocation_pool_start: 192.168.41.3
110110
storage_allocation_pool_end: 192.168.41.254
111111
storage_vlan: 105
112-
storage_zone: "storage"
112+
storage_zone: "storage_net_zone"
113113

114114
# Storage management network
115115
storage_mgmt_cidr: 192.168.42.0/24
116116
storage_mgmt_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
117117
storage_mgmt_allocation_pool_start: 192.168.42.3
118118
storage_mgmt_allocation_pool_end: 192.168.42.254
119119
storage_mgmt_vlan: 106
120-
storage_mgmt_zone: "storage_mgmt"
120+
storage_mgmt_zone: "storage_mgmt_net_zone"
121121

122122
# Provision overcloud network
123123
provision_oc_cidr: 192.168.33.0/24
124124
provision_oc_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
125125
provision_oc_allocation_pool_start: 192.168.33.128
126126
provision_oc_allocation_pool_end: 192.168.33.254
127127
provision_oc_vlan: 107
128-
provision_oc_zone: "provision_oc"
128+
provision_oc_zone: "provision_oc_net_zone"
129129

130130
###############################################################################
131131
# Network virtual patch link configuration.

etc/kayobe/inventory/group_vars/all/firewall

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ stackhpc_firewalld_rules: |
2828
{% set stackhpc_firewalld_rules_verified = [] %}
2929
{% for rule in stackhpc_firewalld_rules_unverified | unique %}
3030
{% if rule | ansible.utils.remove_keys('state') in stackhpc_firewalld_rules_verified | map('ansible.utils.remove_keys', 'state') %}
31-
{% set stackhpc_firewalld_rules_verified = 'Invalid configuration! Two matching firewalld rules exist with different states' + 1 %}
31+
{% set stackhpc_firewalld_rules_verified = 'Invalid configuration! Two matching firewalld rules probably exist with different states' + 1 %}
3232
{% elif rule.network in network_interfaces and rule.network | net_zone is not none %}
3333
{% set _ = stackhpc_firewalld_rules_verified.append(rule) %}
3434
{% endif %}
@@ -78,17 +78,17 @@ stackhpc_common_firewalld_rules_template:
7878
- service: dhcpv6-client
7979
network: "{{ public_net_name }}"
8080
state: disabled
81-
enabled: "{{ 'public' in stackhpc_firewalld_zones }}"
81+
enabled: "{{ public_net_name | net_zone in stackhpc_firewalld_zones }}"
8282
- rules:
8383
- service: ssh
8484
network: "{{ public_net_name }}"
8585
state: disabled
86-
enabled: "{{ 'public' in stackhpc_firewalld_zones && admin_oc_net_name | net_zone != 'public' }}"
86+
enabled: "{{ public_net_name | net_zone in stackhpc_firewalld_zones and admin_oc_net_name | net_zone != public_net_name | net_zone }}"
8787

8888
stackhpc_common_firewalld_rules_extra: []
8989

9090
###############################################################################
91-
# Common firewalld rules
91+
# Controller firewalld rules
9292

9393
stackhpc_controller_firewalld_rules: "{{ stackhpc_controller_firewalld_rules_default + stackhpc_controller_firewalld_rules_extra }}"
9494

@@ -142,6 +142,39 @@ stackhpc_controller_firewalld_rules_template:
142142
network: "{{ public_net_name }}"
143143
state: enabled
144144
enabled: "{{ kolla_enable_designate | bool }}"
145+
# Vault & Consul
146+
- rules:
147+
- port: 8200/tcp
148+
network: "{{ internal_net_name }}"
149+
state: enabled
150+
- port: 8300/tcp
151+
network: "{{ internal_net_name }}"
152+
state: enabled
153+
- port: 8301/tcp
154+
network: "{{ internal_net_name }}"
155+
state: enabled
156+
- port: 8301/udp
157+
network: "{{ internal_net_name }}"
158+
state: enabled
159+
- port: 8302/tcp
160+
network: "{{ internal_net_name }}"
161+
state: enabled
162+
- port: 8302/udp
163+
network: "{{ internal_net_name }}"
164+
state: enabled
165+
- port: 8500/tcp
166+
network: "{{ internal_net_name }}"
167+
state: enabled
168+
- port: 8501/tcp
169+
network: "{{ internal_net_name }}"
170+
state: enabled
171+
- port: 8600/tcp
172+
network: "{{ internal_net_name }}"
173+
state: enabled
174+
- port: 8600/udp
175+
network: "{{ internal_net_name }}"
176+
state: enabled
177+
enabled: true # FIXME add condition
145178
# GENEVE
146179
- rules:
147180
- port: 6081/udp
@@ -386,7 +419,7 @@ stackhpc_seed_firewalld_rules_template:
386419
- port: 9610/tcp
387420
network: "{{ provision_oc_net_name }}"
388421
state: enabled
389-
enabled: "{{ stackhpc_enable_redfish_exporter }}"
422+
enabled: "{{ stackhpc_enable_redfish_exporter | default(false) }}"
390423

391424
stackhpc_seed_firewalld_rules_extra: []
392425

0 commit comments

Comments
 (0)