Created host has short hostname, breaking FreeIPA client certmonger

Problem:

Created hosts need to have their hostname set to the FQDN (“long”) version not the short hostname. I’m not concerned about how Foreman stores the hostname, but rather the hostname of the unattended deployed machine.

Expected outcome:

I’m looking for a flag to control whether hosts are configured with a long or short hostname during deployment. I’m probably missing a flag in a Template, but have been unable to find anything so far.

Foreman and Proxy versions:
Foreman & Proxy: 3:15

Foreman and Proxy plugin versions:
n/a

Distribution and version:
CentOS Stream 8

Other relevant data:
Deploying Ubuntu hosts.

For now, I’ve added the following to Preseed default finish custom post:

##
## Set long hostname
##
echo "Finish custom post: Set long hostname"
hostnamectl set-hostname $(hostname -f)

My question is if there’s a neater way built into Foreman, rather than the above.