Skip to content

Commit fac0d01

Browse files
committed
Enable firewalld in the multinode environment
1 parent 7211d17 commit fac0d01

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# Enable firewalld on all hosts, and use the standard StackHPC firewalld
3+
# configuration
4+
5+
seed_hypervisor_firewalld_enabled: true
6+
seed_firewalld_enabled: true
7+
infra_vm_firewalld_enabled: true
8+
compute_firewalld_enabled: true
9+
controller_firewalld_enabled: true
10+
monitoring_firewalld_enabled: true
11+
storage_firewalld_enabled: true
12+
13+
seed_hypervisor_firewalld_rules: "{{ stackhpc_firewalld_rules }}"
14+
seed_firewalld_rules: "{{ stackhpc_firewalld_rules }}"
15+
infra_vm_firewalld_rules: "{{ stackhpc_firewalld_rules }}"
16+
compute_firewalld_rules: "{{ stackhpc_firewalld_rules }}"
17+
controller_firewalld_rules: "{{ stackhpc_firewalld_rules }}"
18+
monitoring_firewalld_rules: "{{ stackhpc_firewalld_rules }}"
19+
storage_firewalld_rules: "{{ stackhpc_firewalld_rules }}"
20+
21+
seed_hypervisor_firewalld_zones: "{{ stackhpc_firewalld_zones }}"
22+
seed_firewalld_zones: "{{ stackhpc_firewalld_zones }}"
23+
infra_vm_firewalld_zones: "{{ stackhpc_firewalld_zones }}"
24+
compute_firewalld_zones: "{{ stackhpc_firewalld_zones }}"
25+
controller_firewalld_zones: "{{ stackhpc_firewalld_zones }}"
26+
monitoring_firewalld_zones: "{{ stackhpc_firewalld_zones }}"
27+
storage_firewalld_zones: "{{ stackhpc_firewalld_zones }}"
28+
29+
# TODO: Add more rules until drop is possible
30+
seed_hypervisor_firewalld_default_zone: "trusted"
31+
seed_firewalld_default_zone: "trusted"
32+
infra_vm_firewalld_default_zone: "trusted"
33+
compute_firewalld_default_zone: "trusted"
34+
controller_firewalld_default_zone: "trusted"
35+
monitoring_firewalld_default_zone: "trusted"
36+
storage_firewalld_default_zone: "trusted"

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,48 +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"
8081

8182
# External network
8283
external_cidr: 192.168.38.0/24
8384
external_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
8485
external_allocation_pool_start: 192.168.38.3
8586
external_allocation_pool_end: 192.168.38.128
8687
external_vlan: 102
88+
external_zone: "external"
8789

8890
# Public network
8991
public_cidr: 192.168.39.0/24
9092
public_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
9193
public_allocation_pool_start: 192.168.39.3
9294
public_allocation_pool_end: 192.168.39.254
9395
public_vlan: 103
96+
public_zone: "public"
9497

9598
# Tunnel network
9699
tunnel_cidr: 192.168.40.0/24
97100
tunnel_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
98101
tunnel_allocation_pool_start: 192.168.40.3
99102
tunnel_allocation_pool_end: 192.168.40.254
100103
tunnel_vlan: 104
104+
tunnel_zone: "tunnel"
101105

102106
# Storage network
103107
storage_cidr: 192.168.41.0/24
104108
storage_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
105109
storage_allocation_pool_start: 192.168.41.3
106110
storage_allocation_pool_end: 192.168.41.254
107111
storage_vlan: 105
112+
storage_zone: "storage"
108113

109114
# Storage management network
110115
storage_mgmt_cidr: 192.168.42.0/24
111116
storage_mgmt_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
112117
storage_mgmt_allocation_pool_start: 192.168.42.3
113118
storage_mgmt_allocation_pool_end: 192.168.42.254
114119
storage_mgmt_vlan: 106
120+
storage_mgmt_zone: "storage_mgmt"
115121

116122
# Provision overcloud network
117123
provision_oc_cidr: 192.168.33.0/24
118124
provision_oc_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
119125
provision_oc_allocation_pool_start: 192.168.33.128
120126
provision_oc_allocation_pool_end: 192.168.33.254
121127
provision_oc_vlan: 107
128+
provision_oc_zone: "provision_oc"
122129

123130
###############################################################################
124131
# Network virtual patch link configuration.

0 commit comments

Comments
 (0)