Skip to content

Commit 04bb8e9

Browse files
rjeffmanrichm
authored andcommitted
tests: Ensure ipaserver hostname is a FQDN
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 <[email protected]>
1 parent f46489f commit 04bb8e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tasks/setup_ipa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
- name: Set hostname
4747
hostname:
4848
name: ipaserver.test.local
49+
use: systemd
50+
when: ansible_facts.os_family == "RedHat"
4951

5052
- name: Ensure nss package is up-to-date
5153
package:

0 commit comments

Comments
 (0)