Sergey
b3dc57c1cf
Add autodiscovery for build context in podman_image ( #757 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-26 00:02:20 +03:00
Sergey
391e4c54ef
Revert "Fix transports issues in podman_image ( #619 )" ( #754 )
...
This reverts commit 7ad3dc53d5 .
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 21:11:23 +03:00
Sergey
7ad3dc53d5
Fix transports issues in podman_image ( #619 )
...
Fix #218 #205 #264
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 20:01:32 +03:00
Sergey
2ae2309cb8
Add extra_args for podman_image push and pull ( #752 )
...
* Add extra_args for podman_image push
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
* Add extra_args to podman pull image
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
---------
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 19:50:36 +03:00
Sergey
2f5da14c30
Add new options for podman_container ( #750 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 14:30:28 +03:00
Sergey
b987120fa0
Add new options to pod module ( #745 )
...
Fix #742
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-16 14:50:47 +03:00
Sagi Shnaidman
35cdaa1365
Release 1.13.0 version
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-22 21:20:28 +03:00
Sagi Shnaidman
4bfbabe727
Add more quadlet examples in docs
2024-04-22 21:20:28 +03:00
Sergey
1476ebe685
Add quadlet support for Podman modules ( #722 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-22 01:13:04 +03:00
Oliver Walsh
4591a44ef8
Fix pod info for non-existant pods ( #732 )
...
Do not try to deserialize json when out is empty
Fixes #731
Signed-off-by: Oliver Walsh <owalsh@redhat.com>
2024-04-12 16:24:13 +03:00
Sagi Shnaidman
75c4834273
Fix kube play annotations
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-08 01:11:46 +03:00
nishipy
6e04b20bf4
Update the logic for deleting pods/containers in podman_play ( #727 )
...
* Add test case for deleting pod with podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update test case for deleting pod with podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Add tear_down_pods() for Podman 3.4.0 or later
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2024-03-28 13:31:56 +02:00
nishipy
44b2ce69e3
Add support for kube yaml files with multi-documents ( #724 )
...
* Add support for multi doc kube yaml
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update to skip yamllint
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update ignores for sanity tests
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update discover_pods()
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update test for podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2024-03-23 13:55:44 +02:00
Dawa Ometto
890ae35360
Update podman_login.py ( #725 )
...
Make tlsverify and certdir parameters no longer mutually exclusive.
Signed-off-by: Dawa Ometto <d.ometto@gmail.com>
2024-03-19 13:38:19 +02:00
Sagi Shnaidman
f2dcda6a1d
Remove unnecessary quotes in podman_container_exec module
...
Fix #714
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-28 17:55:19 +02:00
Sagi Shnaidman
de490b8b37
Fix wrong return data type in podman_image_info
...
Fix #689
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-19 15:08:52 +02:00
Sagi Shnaidman
90ac7e19ac
Return data for podman exec module
...
And add "executable" parameter to be aligned with other modules
Fix #711
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-18 18:41:14 +02:00
Sagi Shnaidman
129710a383
Fix broken info of pods in Podman v5
...
Fixing issue from:
https://github.com/containers/podman/pull/21514
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-18 13:13:57 +02:00
Dan Campbell
efbfba7c3c
Fix broken example for podman_generate_systemd ( #708 )
...
Change the postgres_local example to use the scope of "user" so
the unit file saved to ~/.config/systemd/user/ will be used by systemd.
Signed-off-by: Dan Campbell <dan@compiledworks.com>
2024-02-04 11:58:28 +02:00
Sergey
da420f96d9
Add secrets info module ( #706 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-01-29 00:14:51 +02:00
ant-bl
2e661d1700
Update env_file to accept a list of files instead of a single file ( #702 )
...
* Update env_file to accept a list of files instead of a single file
Signed-off-by: antoine <antoine.blin@gandi.net>
* Update doc: add alias env_files
Signed-off-by: antoine <antoine.blin@gandi.net>
* Update plugins/module_utils/podman/podman_container_lib.py
Use real arg name and not alias
Co-authored-by: Sergey <6213510+sshnaidm@users.noreply.github.com>
---------
Signed-off-by: antoine <antoine.blin@gandi.net>
Co-authored-by: Sergey <6213510+sshnaidm@users.noreply.github.com>
2024-01-25 14:04:40 +02:00
Sergey
35cac483c9
Add new arguments to podman status commands ( #703 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-01-23 11:28:55 +02:00
Andreas Seidl
eab26e5eba
Fix idempotency for podman_network ( #699 ) ( #700 )
...
* Fix idempotency for podman_network when explicitly definining disable_dns parameter for Podman driver other than type bridge
Signed-off-by: andreas.seidl <andreas.seidl@r-kom.de>
2024-01-11 14:13:32 +02:00
Sergey
f9cbca5582
Add idempotency for podman_secret ( #693 )
...
* Add idempotency for podman_secret
Fix #692
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
* Add lables support for podman_secret
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
---------
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-12-23 18:52:25 +02:00
Apollo3zehn
e4cf9f6133
Fix example name ( #687 )
...
Signed-off-by: Apollo3zehn <git@m1.apollo3zehn.net>
Co-authored-by: Apollo3zehn <git@m1.apollo3zehn.net>
2023-12-11 14:20:59 +02:00
Alessandro Fulgini
4d233a4146
Alias generate systemd options stop_timeout and time ( #685 )
...
* Alias generate systemd options `stop_timeout` and `time`
Closes #683
Option `time` was used before Podman v4, then it was renamed
`stop_timeout`.
Accept both names (the newer takes prirority) and set the correct
CLI argument name based on the detected Podman version.
Signed-off-by: Alessandro Fulgini <fuljo97@gmail.com>
* Fix typo in parameter name `--stop-timeout`
Signed-off-by: Alessandro Fulgini <fuljo97@gmail.com>
* Don't delete temporary variables at the end of block
Co-authored-by: Sergey <6213510+sshnaidm@users.noreply.github.com>
---------
Signed-off-by: Alessandro Fulgini <fuljo97@gmail.com>
Co-authored-by: Sergey <6213510+sshnaidm@users.noreply.github.com>
2023-12-07 11:24:28 +02:00
Sergey
e245e332f0
Fix volume inspection by name in podman_volume ( #684 )
...
Fix #661
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-12-03 20:54:52 +02:00
Sergey
c3b38b54a9
Catch exceptions when no JSON output in podman_image ( #680 )
...
Fix #676
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-11-30 15:12:38 +02:00
Pablo Méndez Hernández
ea51855a4c
Add support for setting underlying interface in podman_network ( #677 )
...
It may be desirable to set a different interface than the default one
(for example, a different bridge).
In the case of a macvlan interface, it can be used instead of setting
`opt.parent`.
Signed-off-by: Pablo Méndez Hernández <pablomh@redhat.com>
2023-11-29 17:31:49 +02:00
Sergey
59a0dee373
Fix multi-image support for podman_save ( #672 )
...
Fix #670
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-11-26 21:31:47 +02:00
nishipy
b7e8711230
Add log_opt and annotaion options to podman_play module ( #668 )
...
* Add tests for options of podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Add log_opt and annotaion options for podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix pep8 errors
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update tests in play-with-options.yml
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update podman_play.py
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update test
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2023-11-26 14:03:55 +02:00
Denis Medeiros
3c0d2cc58c
Add support for health-on-failure action ( #658 )
...
Signed-off-by: Denis Medeiros <denis.medeiros@bbd.ca>
2023-11-01 11:31:55 +02:00
Chris Xiao
e463004db7
Fix #656 : Do not force network removal by default ( #660 )
...
* fix #656 : do not force network removal by default
* Remove `-f` flag when removing network with `podman network rm`, so
that containers using the network won't be removed by default.
* Add `force` option (default False) to `podman_network`, which uses `-f`
and removes containers using the network
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* set default=False for `force`
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
---------
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
2023-10-31 12:28:41 +02:00
nishipy
b65a3dea60
Add build and context_dir option to podman_play ( #649 )
...
* Add test for kube_play with image build
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Add build and context_dir options to podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix yamllint errors
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix ci errors
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2023-10-19 17:25:23 +03:00
Sergey
ed8c04fa1e
Fix CI job for podman connection ( #655 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-10-19 17:20:56 +03:00
Sergey
a1a667b726
Fix network DNS enable idempotency issue ( #650 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-09-28 11:42:54 +03:00
nishipy
2a8aaf4522
Add options for resource limits to podman_pod ( #635 )
...
* Add resource limiting paramters for podman_pod
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix doc-elements-mismatch
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update tests for podman_pod
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2023-09-08 13:36:31 +03:00
Andrew Imeson
18a939a167
Fix typos and spelling errors ( #639 )
...
Found with codespell
Signed-off-by: Andrew Imeson <andrew@andrewimeson.com>
2023-09-05 11:30:15 +03:00
Pavel Dostál
d2daf7262e
Optimize the podman_runlabel integration test ( #640 )
...
I used [1] as example.
[1]: https://fossies.org/linux/podman/test/system/037-runlabel.bats
Signed-off-by: Pavel Dostál <pdostal@pdostal.cz>
2023-09-05 11:28:58 +03:00
Sergey
ba5fa945ef
Add target support for podman build image ( #632 )
...
Fix #631
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-08-22 20:54:10 +03:00
nishipy
bc3670f8dc
Add podman_container_exec module ( #627 )
...
* Add podman_container_exec
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update podman_container_exec
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Add tests for podman_container_exec
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update examples for podman_container_exec
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix CI errors
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix CI errors
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix typo
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Add workflow for podman_container_exec
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix python version in the workflow for podman_container_exec
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix python version in the workflow for podman_container_exec
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2023-08-22 18:52:07 +03:00
Pavel Dostál
c6ae4b97e7
Add podman_runlabel module ( #626 )
...
This is implementing the [podman container runlabel](https://docs.podman.io/en/latest/markdown/podman-container-runlabel.1.html ) command.
Signed-off-by: Pavel Dostál <pdostal@suse.cz>
2023-08-22 16:47:52 +03:00
nishipy
04f455bec1
Add a force field to podman_generate_systemd ( #624 )
...
* Add tests for podman_generate_systemd
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Add force option for podman_generate_systemd
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix test code for podman_generate_systemd
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix CI error
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2023-08-13 21:51:13 +03:00
Sergey
c6a80a5573
Add example with quotes in command to docs ( #623 )
...
Fix #449
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-08-12 15:04:00 +03:00
Sergey
4812aea6b8
Improve docs about container env_file on remote machine ( #621 )
...
Fix #583
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-08-12 13:53:59 +03:00
DilasserT
e4cd2c4493
Adding volume import and export option ( #617 )
...
* Adding volume import and export option
adding volume import and volume export to podman_import and podman_export
Updating integration tests
Signed-off-by: DilasserT <dilassert@gmail.com>
* Fixes and linting
Signed-off-by: DilasserT <dilassert@gmail.com>
---------
Signed-off-by: DilasserT <dilassert@gmail.com>
2023-08-11 16:29:22 +03:00
Sergey
ff12ccddaf
Add restart-sec and other options to systemd generation. ( #615 )
...
Add restart_sec, start_timeout_sec and stop_timeout_sec
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-08-06 21:15:36 +03:00
Sergey
b91ddd3db7
Fix pulling short image name ( #614 )
...
Also return image data when pulling it.
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-08-06 16:39:06 +03:00
Sergey
7a307453a5
Add diff and change detection to systemd generation ( #608 )
...
Fix #339
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-08-03 16:26:18 +03:00
Holger Müller
cc34c2b780
added cpu_quota parameter to podman_container ( #612 )
...
* added cpu_qouta parameter to podman_container
Signed-off-by: Holger Mueller <holger.mueller@inovex.de>
* add missing key to parameter dict
Signed-off-by: Holger Mueller <holger.mueller@inovex.de>
---------
Signed-off-by: Holger Mueller <holger.mueller@inovex.de>
Co-authored-by: Holger Mueller <holger.mueller@inovex.de>
2023-08-03 15:57:10 +03:00