-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Enable AD DC tests using ipalab-config
ipalab-config allows the creation of complex IPA environments using rootless containers. The tool provides the means to create an environment where a trust can be set between IPA and Samba AD DC, which is similar enough to Windows AD DC to be used in ansible-freeipa testing. To start a test scenario run 'infra/scenario/start-scenario' passing the scenario configuration as parameter. A list of the containers created will be printed on the screen, and an inventory file will be create on the repository root with the name 'inventory-scenario.yml'. Test playbooks can be executed using this scenario, or it can be used along with 'pytest'. Only one scenario can be run at a single time. When the tests are finished, 'infra/scenario/stop-scenario' will cleanup the environment, and a new scenario can be started. The inventory file created will not be removed, but will be overwritten if a new scenario is created. Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
- Loading branch information
Showing
4 changed files
with
83 additions
and
22 deletions.
There are no files selected for viewing
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,54 @@ | ||
# IPA trust to Samba AD DC. | ||
# | ||
# Steps to set trust on 'server': | ||
# # kinit admin <<< SomeADMINpassword | ||
# # ipa dnsforwardzone-add ad.ipa.test. --forwarder=192.168.13.250 | ||
# # ipa trust-add ad.ipa.test --type ad --range-type ipa-ad-trust --two-way true --admin=Administrator --password <<< Secret123 | ||
# | ||
# Create samba user on 'addc': | ||
# # samba-tool user create jdoe --given-name John --surname Doe | ||
# | ||
# Checking user on IPA server: | ||
# | ||
# # getent passwd jdoe@AD.IPA.TEST | ||
# # kinit jdoe@AD.IPA.TEST | ||
# | ||
--- | ||
lab_name: ipa-ad-trust | ||
subnet: "192.168.13.0/24" | ||
extra_data: | ||
- playbooks | ||
external: | ||
hosts: | ||
- name: addc | ||
hostname: dc.ad.ipa.test | ||
role: addc | ||
ip_address: 192.168.13.250 | ||
options: | ||
forwarder: 192.168.13.100 | ||
ipa_deployments: | ||
- name: ipa | ||
domain: linux.ipa.test | ||
admin_password: SomeADMINpassword | ||
dm_password: SomeDMpassword | ||
cluster: | ||
servers: | ||
- name: server | ||
capabilities: ["DNS", "AD", "KRA"] | ||
ip_address: 192.168.13.100 | ||
vars: | ||
ipaserver_netbios_name: IPA | ||
ipaserver_idstart: 60000 | ||
ipaserver_idmax: 62000 | ||
ipaserver_rid_base: 63000 | ||
ipaserver_secondary_rid_base: 70000 | ||
# trust test vars | ||
winserver_domain: ad.ipa.test | ||
winserver_admin_password: Secret123 | ||
winserver_ip: 192.168.13.250 | ||
# external users vars | ||
test_ad_user: 'jdoe@DC' | ||
test_alt_user: 'jdoe@ad.ipa.test' | ||
clients: | ||
- name: cli01 | ||
dns: server |
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,2 @@ | ||
ipalab-config>=0.10.2 | ||
podman-compose>=1.2.0 |
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