-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
role: repositories: Add rhsm_environment and FIPS fix (#483)
* Add Satellite ovirt_repositories_rhsm_environment * Fix ovirt_repositories_ca_rpm_url for fips * add changelog * Move install ca to sep file * Fix FIPS install * Add example * Add force to install the sat ca
- Loading branch information
Showing
6 changed files
with
98 additions
and
18 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
changelogs/fragments/483-repositories-add-rhsm_environment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
minor_changes: | ||
- repositories - Add ovirt_repositories_rhsm_environment and FIPS fix (https://github.com/oVirt/ovirt-ansible-collection/pull/483). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
|
||
- name: Install Satellite certificates wihtout FIPS | ||
ansible.builtin.dnf: | ||
name: "{{ ovirt_repositories_ca_rpm_url }}" | ||
state: present | ||
validate_certs: "{{ ovirt_repositories_ca_rpm_validate_certs | default(omit) }}" | ||
disable_gpg_check: "{{ ovirt_repositories_ca_rpm_disable_gpg_check | default(omit) }}" | ||
when: not ovirt_repositories_fips_enabled | ||
|
||
- name: Install Satellite certificates with FIPS block | ||
block: | ||
- name: Download Satellite certificate rpm | ||
ansible.builtin.get_url: | ||
url: "{{ ovirt_repositories_ca_rpm_url }}" | ||
dest: /tmp/sat_ca.rpm | ||
mode: '0644' | ||
validate_certs: "{{ ovirt_repositories_ca_rpm_validate_certs | default(omit) }}" | ||
|
||
- name: Install Satellite certificates with FIPS | ||
ansible.builtin.command: "rpm -U --nodigest --nofiledigest --force /tmp/sat_ca.rpm" # noqa command-instead-of-module | ||
changed_when: true | ||
|
||
- name: Remove downloaded rpm | ||
ansible.builtin.file: | ||
path: /tmp/sat_ca.rpm | ||
state: absent | ||
when: ovirt_repositories_fips_enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters