-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: run podman directly instead of using containers.podman
Using the containers.podman collection to handle podman is a nice idea, however what that collection supports now is becoming more strict than what this role supports. Case in point: containers.podman now requires Python 3.6+ for the managed nodes, which breaks the testing of EL 7. This means that sadly the setup of a self-deployed Candlepin needs to run podman commands manually. Since there are parameters of "podman run" that depend on the OS, store them in an helper fact, filtering it to avoid empty items. The gymnastics of checking the return code & stderr of "podman stop" are needed because the "--ignore" option (which would be ideal) was introduced in podman 1.7.0, and EL 7 has podman 1.6.4. There is no behaviour change. Signed-off-by: Pino Toscano <[email protected]>
- Loading branch information
Showing
2 changed files
with
40 additions
and
16 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--- | ||
collections: | ||
- name: containers.podman | ||
- name: fedora.linux_system_roles |
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