ansible-community / ansible-community/molecule-plugins
podman run container with multiple networks
- Dominant language
- Python
- Stars
- 164
- Forks
- 113
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 1
Description
Podman supports starting a container with `--network ''; and we had need of such type of setup in our test scenario here: https://github.com/guidograzioli/cross-dc-rhsso-demo/tree/molecule/molecule/default
The idea is generating one podman network for the aggregated [set](https://github.com/guidograzioli/cross-dc-rhsso-demo/blob/molecule/molecule/default/molecule.yml#L19) of all `network: xxx` coming from all platforms, then attaching to the list when running the containers, using an additional [argument](https://github.com/guidograzioli/cross-dc-rhsso-demo/blob/molecule/molecule/default/molecule.yml#L16) `networks: []`.
The final [create.yml](https://github.com/guidograzioli/cross-dc-rhsso-demo/blob/molecule/molecule/default/create.yml)
If it could be beneficial for others, I am up to prepare a PR with this behaviour implemented.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing molecule.yml and create.yml in the linked cross-dc-rhsso-demo scenario to understand the proposed networks list and container creation flow. Implement support for attaching containers to multiple Podman networks, then verify the existing Molecule scenario covers the aggregated network behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100