southalc / podman

Puppet module for podman
Apache License 2.0
13 stars 30 forks source link

podman networks created after containers - which then fails #78

Open Enrice opened 10 months ago

Enrice commented 10 months ago

When I create everything by parameterizing the class, container creation fails because of missing network definition.

I think the order of creation should be swapped here.

Enrice commented 10 months ago

Ok I can see the problem: My VERY old podman installation (podman 1.6.4 which is the one we have in CentOS 7) does not know the command "podman network exists", but I found that I could also use "podman network inspect". Would this be feasible to be downwards compatible?

jonesbrennan commented 5 months ago

I have run into this issue as well where the networks get created after the containers. I am passing the --net flag to podman container create in the container class but the network doesn't exist yet.

jonesbrennan commented 5 months ago

I have created https://github.com/southalc/podman/pull/85 for this issue.