Skip to content

Commit 8ad7a45

Browse files
authored
Merge branch 'stackhpc/2025.1' into filebeat_fix
2 parents a9dd520 + c6dac83 commit 8ad7a45

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

doc/source/operations/bifrost-hardware-inventory-management.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ The ADVise tool assumes that hardware introspection data has already been gather
239239
The ``extra-hardware`` disk builder element enabled when building the IPA image for the required data to be available.
240240

241241
To build ipa image with extra-hardware you need to edit ``ipa.yml`` and add this:
242+
242243
.. code-block:: console
243244
244245
# Whether to build IPA images from source.

doc/source/operations/gpu-in-openstack.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,13 @@ configuration or trigger the playbook manually:
6565
6666
kayobe overcloud host configure --limit compute_a100,compute_v100,compute_multi_gpu
6767
# OR
68-
kayobe playbook run --playbook $KAYOBE_CONFIG_PATH/ansible/maintenance/pci-passthrough.yml --limit compute_a100,compute_v100,compute_multi_gpu
68+
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/maintenance/pci-passthrough.yml --limit compute_a100,compute_v100,compute_multi_gpu
6969
7070
The playbook will apply the necessary configuraion and reboot the hosts if
7171
required.
7272

7373
Once host configuration is complete, deploy Nova:
74+
7475
.. code-block:: console
7576
7677
kayobe overcloud service deploy -kt nova

etc/kayobe/ansible/maintenance/cis.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,26 @@
2020
state: present
2121
when: ansible_facts.distribution == 'Ubuntu'
2222

23+
- name: Gather passwd entries
24+
ansible.builtin.getent:
25+
database: passwd
26+
become: true
27+
2328
- name: Ensure service accounts have no expiry options set
2429
# This is to workaround an issue where we set the expiry to 365 days on kayobe
2530
# service accounts in a previous iteration of the CIS benchmark hardening
2631
# defaults. This should restore the defaults and can eventually be removed.
27-
ansible.builtin.command: chage -m 0 -M 99999 -W 7 -I -1 {{ item }}
32+
ansible.builtin.user:
33+
name: "{{ item }}"
34+
password_expire_min: 0
35+
password_expire_max: 99999
36+
password_expire_warn: 7
37+
expires: -1
2838
become: true
29-
changed_when: false
30-
with_items:
39+
loop:
3140
- "{{ kayobe_ansible_user }}"
3241
- "{{ kolla_ansible_user }}"
42+
when: item in ansible_facts.getent_passwd
3343

3444
- name: Security hardening
3545
hosts: cis-hardening
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
CIS hardening playbook skips service accounts that do not exist on the host
5+
(e.g. kolla on non-Kolla/Ceph-only nodes) to avoid errors.

0 commit comments

Comments
 (0)