rjeffman: this is a fixup for infra/images/build.sh

This patch modifies the image building script by adding:

- An usage message.
- An option "-I" to NOT install IPA to the generated container.
- An opiton "-c NAME" to both set the name and use an existing container
  to ONLY install IPA.
- Rename "scenario" to "DISTRO" as "scenario" should be used for the
  container scenario usage, rather than the distro (I'll change the name
  also in the Azure scripts)
- Use 'log' (from shlog) to print messages.
This commit is contained in:
Rafael Guterres Jeffman
2024-07-19 17:57:30 -03:00
committed by Thomas Woerner
parent b0e03a032d
commit fb6fed58cb
2 changed files with 111 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
[ipaserver]
ansible-test ansible_connection=podman ansible_python_interpreter=/usr/bin/python3
ansible-freeipa-image-builder ansible_connection=podman ansible_python_interpreter=/usr/bin/python3
[ipaserver:vars]
ipaadmin_password=SomeADMINpassword