Skip to content

Commit

Permalink
tests: Ensure ipaserver hostname is a FQDN
Browse files Browse the repository at this point in the history
As certificate system role uses an IPA server to test certmonger
provider, the ipaserver node has to have a FQDN for IPA to be installed.
For the RedHat family of distros, from CentOS/RHEL 7+ and newer,
automatic detection of Ansible's hostname may not select 'systemd'
strategy, failing to set the hostnade FQDN. This failure often happens
when running the tests locally with 'qemu'.

This patch ensure that the 'systemd' strategy is used to set hostname.

Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
  • Loading branch information
rjeffman authored and richm committed Jul 6, 2023
1 parent f46489f commit 04bb8e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/tasks/setup_ipa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
- name: Set hostname
hostname:
name: ipaserver.test.local
use: systemd
when: ansible_facts.os_family == "RedHat"

- name: Ensure nss package is up-to-date
package:
Expand Down

0 comments on commit 04bb8e9

Please sign in to comment.