Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 2 additions & 33 deletions etc/kayobe/ansible/ceph/cephadm-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,6 @@
- cephadm
- cephadm-deploy
tasks:
# note(owenjones): the Ceph release signing key still uses SHA-1, which requires us to
# downgrade to the LEGACY policy on Rocky 10 until a new key is published.
# A later Ceph release might fix this - https://tracker.ceph.com/issues/74861
- name: Discover current active crypto policy (Rocky 10)
ansible.builtin.command:
cmd: update-crypto-policies --show
become: true
changed_when: false
register: crypto_policy
when:
- ansible_facts.os_family == 'RedHat'
- ansible_facts.distribution_major_version | int == 10
- name: Set crypto policy to LEGACY (Rocky 10)
ansible.builtin.command:
cmd: update-crypto-policies --set LEGACY
become: true
when:
- ansible_facts.os_family == 'RedHat'
- ansible_facts.distribution_major_version | int == 10
- crypto_policy.stdout | default('DEFAULT') != 'LEGACY'
- name: Apply Cephadm role
block:
- name: Apply Cephadm role
ansible.builtin.import_role:
name: stackhpc.cephadm.cephadm
always:
- name: Revert crypto policy (Rocky 10)
ansible.builtin.command:
cmd: update-crypto-policies --set {{ crypto_policy.stdout | default('DEFAULT') }}
become: true
when:
- ansible_facts.os_family == 'RedHat'
- ansible_facts.distribution_major_version | int == 10
- crypto_policy.stdout | default('DEFAULT') != 'LEGACY'
ansible.builtin.import_role:
name: stackhpc.cephadm.cephadm
Loading