ipa-test-config(1)
π¦ ipa-test-config(1) β the FreeIPA Manual Pages cutie π¦
okay so bestie, welcome to the FreeIPA Manual Pages, section 1 β and today's main character is ipa-test-config. grab a strawberry π and let's go.
β¨ NAME β¨
ipa-test-config β Generate FreeIPA test configuration for use in Bash scripts
πΈ SYNOPSIS πΈ
ipa-test-config [options]
ipa-test-config [options] --global
ipa-test-config [options] hostname
π DESCRIPTION π
so here's the vibe: the FreeIPA integration test suite gets configured by setting environment variables. that's the whole thing. that's the mechanism. π
the ipa-run-tests command reads those variables and prints detailed configuration for shell-based scripts to standard output. and the default output of ipa-run-tests? it's a stack of export statements that Bash can source. literally source them and you're configured. iconic.
if you run it with no arguments, it prints out configuration specific to the local host. you can also name another host as an argument, or point at one via the --master, --replica, and --client options. and if you pass --global? it prints only the configuration that isn't specific to any host at all. no host, no drama, just globals. β¨
π OPTIONS π
-h,--helpβ print out the command's usage and exit. classic. respect the classics. π«Ά--globalβ output global configuration.--domainβ output configuration for the given domain (a.k.a. the environment). you can give it as an index or a name. by default, domain 1 is used.--masterβ output configuration for the master.--replicaβ output configuration for the replica with the given number.--replicaβ output configuration for the client with the given number.
bestie i need you to know that yes, --replica is listed twice in the original page, and the second one is the one described as the client option. i am simply reporting the lore as written. π i do not make the rules, i just deliver them with flair.
--roleβ output configuration for the host with the given role.--no-simpleβ do not output Simple Vars. these are normally included for backwards compatibility.--yamlβ output configuration in YAML format instead of Bash script. this requires the PyYAML library to be installed.--jsonβ output configuration in JSON format instead of Bash script.
π ENVIRONMENT VARIABLES π
π File-based configuration
$IPATEST_YAML_CONFIGβ specifies a file that contains configuration in YAML format, as given byipa-test-config --global --yaml. if given, the other environment variables are ignored. this requires the PyYAML library to be installed.$IPATEST_JSON_CONFIGβ specifies a file that contains configuration in JSON format, as given byipa-test-config --global --json. if given, the other environment variables are ignored.
πΊοΈ Domain configuration
Domain is implicitly defined by _envX suffix of the environment variables, if either AD_envX or MASTER_envX is defined.
π Host configuration
$MASTERβ FQDN of the first IPA server$REPLICAβ FQDNs of other IPA servers (space-separated)$CLIENTβ FQDNs of IPA clients (space-separated)$MASTER_env2,$REPLICA_env2,$CLIENT_env2,$MASTER_env3,$AD_env4,... β can be used for additional domains when needed$AD_env1,$AD_env2,$AD_env3,$AD_env4, ... β can be used to define Active Directory domains. β οΈ please note that these domains are not treated as separate from the IPA domains, so please use a unique environment suffix for each of your Active Directory domains.$TESTHOST_<keyword>_env<e>, e.g.$TESTHOST_LEGACY_env1β defines a host with extra role identified as lowercased<keyword>, e.g.'legacy'.$BEAKER<role><num>_IP_env<e>, e.g.$BEAKERREPLICA1_IP_env1β the IP address of the given host- Default: resolved via
gethostbyname(or DNS if$IPv6SETUPis set)
- Default: resolved via
π§ Basic configuration
$IPATEST_DIRβ directory for test data on the remote hosts- Default:
/root/ipatests
- Default:
$DNSFORWARDβ IP of a DNS forwarder- Default:
8.8.8.8
- Default:
$IPA_ROOT_SSH_PASSWORDβ root password for the remote machines. used if$IPA_ROOT_SSH_KEYis not set.$IPA_ROOT_SSH_KEYβ name of a file containing the private RSA key for root on the remote machines- Default:
~/.ssh/id_rsa
- Default:
π¨ Test customization
$DOMAINβ IPA domain name- Default: taken from
$MASTER
- Default: taken from
$NISDOMAINβ NIS domain name- Default:
ipatest
- Default:
$NTPSERVERβ NIS domain name- Default:
ipatest
- Default:
$IPv6SETUPβ set toTRUEfor IPv6-only connectivity$IPADEBUGβ set to enable test debugging$ADMINIDβ admin username- Default:
admin
- Default:
$ADMINPWβ admin user password- Default:
Secret123
- Default:
$ADADMINIDβ Active Directory Administrator username- Default:
Administrator
- Default:
$ADADMINPWβ Active Directory Administrator password- Default:
Secret123
- Default:
$ROOTDNβ directory manager DN- Default:
cn=Directory Manager
- Default:
$ROOTDNPWDβ directory manager password- Default:
Secret123
- Default:
β EXIT STATUS β
0if the command was successful1if an error occurred
π₯ REFERENCES π₯
a full description of the FreeIPA integration testing framework is available at http://www.freeipa.org/page/V3/Integration_testing β go read it, it's giving documentation.
and that's the whole page, bestie. FreeIPA wrote this one, dated Aug 29 2013, and honestly it aged like fine wine. mwah. π
π¦ where this page comes from
- centos-stream 10: python3-ipatests 4.13.4-1.el10 Β· GPL-3.0-or-later
- centos-stream 9: python3-ipatests 4.13.4-1.el9 Β· GPL-3.0-or-later
- fedora 43: python3-ipatests 4.12.5-3.fc43 Β· GPL-3.0-or-later
- fedora 43: python3-ipatests 4.13.4-2.fc43
- fedora 43: python3-ipatests 4.13.4-3.fc43 Β· GPL-3.0-or-later
- fedora 44: python3-ipatests 4.13.1-9.fc44 Β· GPL-3.0-or-later
- fedora 44: python3-ipatests 4.13.4-2.fc44
- fedora 44: python3-ipatests 4.13.4-3.fc44 Β· GPL-3.0-or-later
- nixos 26.05: freeipa 4.12.5
- nixpkgs unstable: freeipa 4.13.1
- Copyright (C) 2013 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms