Skip to content

Commit b973da3

Browse files
committed
Refactor firewall config to new file
1 parent e638a42 commit b973da3

File tree

3 files changed

+407
-0
lines changed

3 files changed

+407
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.. _firewall:
2+
3+
========
4+
Firewall
5+
========
6+
7+
StackHPC Kayobe configuration provides a standardised firewalld configuration.
8+
The configuration uses the :kayobe-doc:`firewall
9+
<configuration/reference/hosts.html#firewalld>` host configuration
10+
functionality of Kayobe.
11+
12+
The firewall configuration is provided in
13+
``etc/kayobe/inventory/group_vars/all/firewall``. This allows configuration
14+
variables to be overridden on a per-group or per-host basis (which would not be
15+
possible for an "extra variable" in ``etc/kayobe/*.yml``). This configuration
16+
is not used by default, and must be actively opted into. This can be done as
17+
follows:
18+
19+
.. code-block:: yaml
20+
:caption: ``etc/kayobe/controllers.yml``
21+
22+
controller_firewalld_zones: "{{ stackhpc_firewalld_zones }}"
23+
controller_firewalld_rules: "{{ stackhpc_firewalld_rules }}"
24+
25+
This will configure the standard set of firewalld rules on controller hosts.
26+
Rule definitions are automatically added according to group membership.Rule
27+
sets exist for the following groups:
28+
29+
* Controllers - ``stackhpc_controller_firewalld_rules``
30+
* Compute - ``stackhpc_compute_firewalld_rules``
31+
* Storage - ``stackhpc_storage_firewalld_rules``
32+
* Monitoring - ``stackhpc_monitoring_firewalld_rules``
33+
* Wazuh Manager Infrastructure VM - ``stackhpc_infra_vm_firewalld_rules``
34+
* Ansible Control host Infrastructure VM - ``stackhpc_infra_vm_firewalld_rules``
35+
* Seed - ``stackhpc_seed_firewalld_rules``
36+
* Seed Hypervisor - ``stackhpc_seed_hypervisor_firewalld_rules``
37+

doc/source/configuration/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ the various features provided.
2020
magnum-capi
2121
ci-cd
2222
security-hardening
23+
firewall

0 commit comments

Comments
 (0)