Skip to content

Commit 032d758

Browse files
committed
Merge branch 'stackhpc/2024.1' into sot-rename
2 parents 81bf5f6 + 4843b9b commit 032d758

16 files changed

+60
-23
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ on:
5959
description: Whether to perform an upgrade
6060
type: boolean
6161
default: false
62+
stackhpc_cloud_tests_version:
63+
description: Git version of https://github.com/stackhpc/stackhpc-cloud-tests to use for testing
64+
type: string
65+
default: main
66+
repository:
67+
description: SKC repository to checkout (convenience for external CI)
68+
type: string
69+
default: ${{ github.repository }}
70+
github_ref:
71+
description: Git ref to checkout (convenience for external CI)
72+
type: string
73+
default: ${{ github.ref }}
6274
secrets:
6375
KAYOBE_VAULT_PASSWORD:
6476
required: true
@@ -94,7 +106,8 @@ jobs:
94106
- name: Checkout ${{ inputs.upgrade && 'previous release' || 'current' }} config
95107
uses: actions/checkout@v4
96108
with:
97-
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || github.ref }}
109+
repository: ${{ inputs.repository }}
110+
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || inputs.github_ref }}
98111
submodules: true
99112

100113
- name: Output Kayobe image
@@ -367,6 +380,8 @@ jobs:
367380
- name: Checkout current release config
368381
uses: actions/checkout@v4
369382
with:
383+
repository: ${{ inputs.repository }}
384+
ref: ${{ inputs.github_ref }}
370385
submodules: true
371386
clean: false
372387
if: inputs.upgrade
@@ -448,7 +463,7 @@ jobs:
448463
-v $(pwd)/sct-results:/stack/sct-results \
449464
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
450465
$KAYOBE_IMAGE \
451-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/stackhpc-cloud-tests.yml'
466+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/stackhpc-cloud-tests.yml' -e sot_version=${{ inputs.stackhpc_cloud_tests_version }}
452467
env:
453468
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
454469

doc/source/configuration/firewall.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Storage firewalld Configuration
8686
:caption: ``storage.yml``
8787
8888
###############################################################################
89-
# storage node firewalld configuration.
89+
# Storage node firewalld configuration.
9090
9191
# Whether to install and enable firewalld.
9292
storage_firewalld_enabled: true
@@ -118,7 +118,7 @@ Monitoring firewalld Configuration
118118
:caption: ``monitoring.yml``
119119
120120
###############################################################################
121-
# monitoring node firewalld configuration.
121+
# Monitoring node firewalld configuration.
122122
123123
# Whether to install and enable firewalld.
124124
monitoring_firewalld_enabled: true
@@ -182,7 +182,7 @@ Seed firewalld Configuration
182182
:caption: ``seed.yml``
183183
184184
###############################################################################
185-
# seed node firewalld configuration.
185+
# Seed node firewalld configuration.
186186
187187
# Whether to install and enable firewalld.
188188
seed_firewalld_enabled: true
@@ -211,7 +211,7 @@ Seed Hypervisor firewalld Configuration
211211
:caption: ``seed_hypervisor.yml``
212212
213213
###############################################################################
214-
# seed_hypervisor node firewalld configuration.
214+
# Seed hypervisor node firewalld configuration.
215215
216216
# Whether to install and enable firewalld.
217217
seed_hypervisor_firewalld_enabled: true

doc/source/configuration/wazuh.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,6 @@ rulesets. However, you may find you want to add more. This can be achieved via
336336
SKC supports this automatically, just add the policy file from this PR to
337337
``{{ kayobe_env_config_path }}/wazuh/custom_sca_policies``.
338338

339-
Currently, Wazuh does not ship with a CIS benchmark for Rocky 9. You can find
340-
the in-development policy here: https://github.com/wazuh/wazuh/pull/17810 To
341-
include this in your deployment, simply copy it to
342-
``{{ kayobe_env_config_path }}/wazuh/custom_sca_policies/cis_rocky_linux_9.yml``.
343-
344339
.. _Deploy:
345340

346341
Deploy
@@ -354,11 +349,11 @@ If you are using the wazuh generated certificates,
354349
this will result in the creation of some certificates and keys (in case of custom certs adjust path to it).
355350
Encrypt the keys (and remember to commit to git):
356351

357-
``ansible-vault encrypt --vault-password-file ~/vault.pass $KAYOBE_CONFIG_PATH/environments/<environment>/wazuh/wazuh-certificates/*.key``
352+
``ansible-vault encrypt --vault-password-file ~/vault.pass $KAYOBE_CONFIG_PATH/environments/<environment>/wazuh/wazuh-certificates/*.key $KAYOBE_CONFIG_PATH/environments/<environment>/wazuh/wazuh-certificates/*-key.pem``
358353

359354
If using the kayobe environments feature, otherwise:
360355

361-
``ansible-vault encrypt --vault-password-file ~/vault.pass $KAYOBE_CONFIG_PATH/ansible/wazuh/certificates/certs/*.key``
356+
``ansible-vault encrypt --vault-password-file ~/vault.pass $KAYOBE_CONFIG_PATH/ansible/wazuh/certificates/certs/*.key $KAYOBE_CONFIG_PATH/ansible/wazuh/certificates/certs/*-key.pem``
362357

363358
.. _wazuh-verification:
364359

etc/kayobe/ansible/growroot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
- name: Check LVM status
3333
ansible.builtin.shell:
3434
executable: "/bin/bash"
35-
cmd: set -o pipefail && vgdisplay | grep -q lvm2
35+
cmd: set -o pipefail && vgdisplay | grep lvm2 >> /dev/null
3636
changed_when: false
3737
failed_when: false
3838
check_mode: false

etc/kayobe/ansible/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ roles:
2222
version: 1.3.1
2323
- name: wazuh-ansible
2424
src: https://github.com/stackhpc/wazuh-ansible
25-
version: stackhpc
25+
version: stackhpc-v4.10.0
2626
- name: geerlingguy.pip
2727
version: 2.2.0
2828
- name: monolithprojects.github_actions_runner

etc/kayobe/ansible/stackhpc-cloud-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
vars:
77
sct_venv: "{{ virtualenv_path }}/sct-venv"
88
sct_repo: https://github.com/stackhpc/stackhpc-cloud-tests
9-
sct_version: v0.2.0
9+
sct_version: main
1010
sct_timeout: 30
1111
results_path_local: "{{ lookup('env', 'HOME') }}/sct-results"
1212
tasks:

etc/kayobe/ansible/wazuh-manager.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@
130130
changed_when: false
131131
retries: 2
132132

133+
- name: Correct permissions on alerts manifest
134+
ansible.builtin.file:
135+
path: "/usr/share/filebeat/module/wazuh/alerts/manifest.yml"
136+
mode: "go-w"
137+
133138
handlers:
134139
- name: Restart wazuh
135140
ansible.builtin.service:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
###############################################################################
3-
# monitoring node firewalld configuration.
3+
# Monitoring node firewalld configuration.
44

55
# Whether to install and enable firewalld.
66
monitoring_firewalld_enabled: true

etc/kayobe/environments/ci-multinode/seed-hypervisor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
###############################################################################
3-
# seed_hypervisor node firewalld configuration.
3+
# Seed hypervisor node firewalld configuration.
44

55
# Whether to install and enable firewalld.
66
seed_hypervisor_firewalld_enabled: true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ snat_rules_manila:
2929
snat_rules: "{{ snat_rules_default + snat_rules_manila if (kolla_enable_manila | bool and kolla_enable_manila_backend_cephfs_native | bool) else snat_rules_default }}"
3030

3131
###############################################################################
32-
# seed node firewalld configuration.
32+
# Seed node firewalld configuration.
3333

3434
# Whether to install and enable firewalld.
3535
seed_firewalld_enabled: "{{ kolla_enable_ovn | bool }}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ storage_lvm_groups:
66
- "{{ stackhpc_lvm_group_rootvg }}"
77

88
###############################################################################
9-
# storage node firewalld configuration.
9+
# Storage node firewalld configuration.
1010

1111
# Whether to install and enable firewalld.
1212
storage_firewalld_enabled: true

etc/kayobe/ipa.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ ipa_ramdisk_upstream_url: "{{ (stackhpc_ipa_image_url + '/ipa.initramfs') if sta
107107
# Algorithm of checksum of Ironic deployment ramdisk image.
108108
#ipa_ramdisk_checksum_algorithm:
109109

110+
# IPA download parameters
111+
image_download_url_username: "{{ stackhpc_release_pulp_username }}"
112+
image_download_url_password: "{{ stackhpc_release_pulp_password }}"
113+
image_download_force_basic_auth: true
114+
image_download_unredirected_headers:
115+
- Authorization
116+
110117
###############################################################################
111118
# Ironic Python Agent (IPA) deployment configuration.
112119

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
# Overcloud host image versioning tags
33
# These images must be in SMS, since they are used by our AIO CI runners
4-
stackhpc_rocky_9_overcloud_host_image_version: "2024.1-20240912T145502"
5-
stackhpc_ubuntu_jammy_overcloud_host_image_version: "2024.1-20240911T124950"
4+
stackhpc_rocky_9_overcloud_host_image_version: "2024.1-20241209T151515"
5+
stackhpc_ubuntu_jammy_overcloud_host_image_version: "2024.1-20250116T133659"

etc/kayobe/stackhpc-overcloud-dib.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ stackhpc_overcloud_dib_elements:
3737
stackhpc_overcloud_dib_env_vars:
3838
DIB_BLOCK_DEVICE_CONFIG: "{{ stackhpc_overcloud_dib_block_device_config_uefi_lvm }}"
3939
DIB_BOOTLOADER_DEFAULT_CMDLINE: "nofb nomodeset gfxpayload=text net.ifnames=1 rd.auto"
40-
DIB_CLOUD_INIT_DATASOURCES: "ConfigDrive"
40+
DIB_GRUB_TIMEOUT: "5"
41+
DIB_GRUB_TIMEOUT_STYLE: "menu"
42+
DIB_CLOUD_INIT_DATASOURCES: "OpenStack, ConfigDrive"
4143
DIB_CONTAINERFILE_RUNTIME: "docker"
4244
DIB_CONTAINERFILE_NETWORK_DRIVER: "host"
4345
DIB_CONTAINERFILE_DOCKERFILE: "/opt/kayobe/src/stackhpc-image-elements/elements/rocky-container-stackhpc/containerfiles/9-stackhpc"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
upgrade:
3+
- |
4+
Change default values for ``DIB_GRUB_TIMEOUT_STYLE`` and
5+
``DIB_GRUB_TIMEOUT``. The default value for ``DIB_GRUB_TIMEOUT_STYLE``
6+
will be ``menu`` and for ``DIB_GRUB_TIMEOUT`` will be ``5``.
7+
Adding ConfigDrive to ``DIB_CLOUD_INIT_DATASOURCES`` var list to fix
8+
cloud-init issue.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Upgrades the version of wazuh-ansible to v4.10.0. This brings in the SCA CIS
5+
checks for Rocky Linux 9 by default.

0 commit comments

Comments
 (0)