@@ -19,7 +19,7 @@ Configuration
1919--------------
2020
2121Some 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
2323suitable for all deployments and so some fine tuning may be required. For
2424instance, you may want different rules on a network node compared to a
2525controller. 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:
3131Running the playbooks
3232---------------------
3333
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+
3442As there is potential for unintended side effects when applying the hardening
3543playbooks, the playbooks are not currently enabled by default. It is recommended
3644that 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
4048
4149 kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/cis.yml
4250
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