@@ -19,7 +19,7 @@ Configuration
19
19
--------------
20
20
21
21
Some overrides to the role defaults are provided in
22
- ``$KAYOBE_CONFIG_PATH/inventory/group_vars/overcloud /cis ``. These may not be
22
+ ``$KAYOBE_CONFIG_PATH/inventory/group_vars/cis-hardening /cis ``. These may not be
23
23
suitable for all deployments and so some fine tuning may be required. For
24
24
instance, you may want different rules on a network node compared to a
25
25
controller. It is best to consult the upstream role documentation for details
@@ -31,6 +31,14 @@ about what each variable does. The documentation can be found here:
31
31
Running the playbooks
32
32
---------------------
33
33
34
+ .. note ::
35
+
36
+ The hosts may need rebooting to fully pick up all of the changes. The CIS
37
+ roles will warn you when this needs to be done, but the actual reboot is left
38
+ as a manual operation to allow you to select a convenient time. Generally, if
39
+ you are applying the hardening for the first time, then you will need to
40
+ reboot.
41
+
34
42
As there is potential for unintended side effects when applying the hardening
35
43
playbooks, the playbooks are not currently enabled by default. It is recommended
36
44
that they are first applied to a representative staging environment to determine
@@ -40,3 +48,33 @@ whether or not workloads or API requests are affected by any configuration chang
40
48
41
49
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/cis.yml
42
50
51
+ Targetting additional hosts
52
+ ---------------------------
53
+
54
+ The ``cis.yml `` playbook targets hosts in the ``cis-hardening `` group. By
55
+ default this includes the ``overcloud `` group. You can adjust this group
56
+ to suit your needs, e.g to add the seed VM:
57
+
58
+ .. code-block :: yaml
59
+ :caption : $KAYOBE_CONFIG_PATH/inventory/groups
60
+
61
+ [cis-hardening:children]
62
+ overcloud
63
+ seed
64
+
65
+ Enabling the host configure hook
66
+ --------------------------------
67
+
68
+ A hook is pre-installed but its execution is guarded by the
69
+ ``stackhpc_enable_cis_benchmark_hardening_hook `` configuration option.
70
+ If you want the hardening playbooks to run automatically, as part of
71
+ host configure, simply set this flag to ``true ``:
72
+
73
+ .. code-block :: yaml
74
+ :caption : $KAYOBE_CONFIG_PATH/stackhpc.yml
75
+
76
+ stackhpc_enable_cis_benchmark_hardening_hook : true
77
+
78
+ Alternatively, this can be toggled on a per-environment basis by
79
+ setting it in an environment specific config file, or even on
80
+ targeted hosts by using group or host vars.
0 commit comments