Skip to content

Commit 8131025

Browse files
committed
Merge remote-tracking branch 'origin/main' into ci/enable-linting
2 parents 5b02436 + bb4d95f commit 8131025

File tree

6 files changed

+25
-4
lines changed

6 files changed

+25
-4
lines changed

ansible/roles/freeipa/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Support FreeIPA in the appliance. In production use it is expected the FreeIPA s
3838

3939
- `freeipa_host_password`. Required for initial enrolment only, FreeIPA host password as described above.
4040
- `freeipa_setup_dns`: Optional, whether to use the FreeIPA server as the client's nameserver. Defaults to `true` when `freeipa_server` contains a host, otherwise `false`.
41+
- `freeipa_ca_cert_file`: Optional, path **on the ansible deploy host** to FreeIPA server cert. Else this will be downloaded (insecurely) from the FreeIPA server over http.
4142

4243
See also use of `appliances_state_dir` on the control node as described above.
4344

ansible/roles/freeipa/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ freeipa_user_defaults:
1111
ipa_pass: "{{ freeipa_admin_password | quote }}"
1212
ipa_user: admin
1313
freeipa_users: [] # see community.general.ipa_user
14-
14+
freeipa_ca_cert_file: ''
1515
_freeipa_keytab_backup_path: "{{ hostvars[groups['control'].0].appliances_state_dir }}/freeipa/{{ inventory_hostname }}/krb5.keytab"

ansible/roles/freeipa/tasks/enrol.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
mode: ug=rw,o=
1919
when: '"content" in _slurp_persisted_keytab'
2020

21+
- name: Copy CA Cert to host
22+
ansible.builtin.copy:
23+
src: "{{ freeipa_ca_cert_file }}"
24+
dest: /etc/ipa/ca.crt
25+
mode: u=rw,go=r
26+
owner: root
27+
group: root
28+
when: freeipa_ca_cert_file != ''
29+
2130
- name: Re-enrol with FreeIPA using backed-up keytab
2231
# Re-enrolment requires --force-join and --password, or --keytab
2332
# Re-rolement means:
@@ -33,6 +42,9 @@
3342
--mkhomedir
3443
--enable-dns-updates
3544
--keytab /tmp/krb5.keytab
45+
{% if freeipa_ca_cert_file != '' %}
46+
--ca-cert-file=/etc/ipa/ca.crt
47+
{% endif %}
3648
when: '"content" in _slurp_persisted_keytab'
3749
register: ipa_client_install_keytab
3850
changed_when: ipa_client_install_keytab.rc == 0
@@ -49,6 +61,9 @@
4961
--mkhomedir
5062
--enable-dns-updates
5163
--password '{{ freeipa_host_password }}'
64+
{% if freeipa_ca_cert_file != '' %}
65+
--ca-cert-file=/etc/ipa/ca.crt
66+
{% endif %}
5267
when:
5368
- '"content" not in _slurp_persisted_keytab'
5469
- freeipa_host_password is defined

ansible/roles/ofed/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ofed
22

3+
> [!IMPORTANT]
4+
> This role is deprecated - it is not regularly maintained and StackHPC CI
5+
> does not test that it works. Consider using [ansible/roles/doca](../doca/README.md)
6+
> instead.
7+
38
This role installs Mellanox OFED:
49

510
- It checks that the running kernel is the latest installed one, and errors if not.

docs/upgrades.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ git push
6363
Make changes as necessary.
6464

6565
1. Identify image(s) from the relevant [Slurm appliance release](https://github.com/stackhpc/ansible-slurm-appliance/releases), and download
66-
using the link on the release plus the image name, e.g. for an image `openhpc-ofed-RL8-240906-1042-32568dbb`:
66+
using the link on the release plus the image name, e.g. for an image `openhpc-RL9-250708-1547-1494192e`:
6767

6868
```shell
69-
wget https://object.arcus.openstack.hpc.cam.ac.uk/swift/v1/AUTH_3a06571936a0424bb40bc5c672c4ccb1/openhpc-images/openhpc-ofed-RL8-240906-1042-32568dbb
69+
wget https://object.arcus.openstack.hpc.cam.ac.uk/swift/v1/AUTH_3a06571936a0424bb40bc5c672c4ccb1/openhpc-images/openhpc-RL9-250708-1547-1494192e
7070
```
7171

7272
Note that some releases may not include new images. In this case use the image from the latest previous release with new images.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ansible==6.7.0 # cloudalchemy.prometheus uses ansible.builtin.include, removed in ansible-core==2.16 => ansible==9
22
openstacksdk
3-
python-openstackclient==6.6.1 # v7.0.0 has a bug re. rebuild
3+
python-openstackclient==8.0.0
44
python-manilaclient
55
python-ironicclient
66
jmespath

0 commit comments

Comments
 (0)