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
Holger Müller
2914785411
Fixed idempotency with cpus parameter ( #581 )
...
* Added cpu_quota parameter and fixed #559
Signed-off-by: Holger Mueller <holger.mueller@inovex.de>
* force float for cpu parameter in diff
Signed-off-by: Holger Mueller <holger.mueller@inovex.de>
* fixed typo
Signed-off-by: Holger Mueller <holger.mueller@inovex.de>
* revert linebreak caused by linting with too short lines
Signed-off-by: Holger Mueller <holger.mueller@inovex.de>
* removed quota parameter from patch
Signed-off-by: Holger Mueller <holger.mueller@inovex.de>
* readded already existing quota key to defaults
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:29:06 +03:00
benblasco
fc47f86a18
Added support for "userns" parameter to "play" module ( #577 )
...
Co-authored-by: Benjamin Blasco <bblasco@redhat.com>
2023-05-31 13:23:55 +03:00
Simon
52911bfc22
fix(podman-play): fix regex for pod kube recreate ( #582 )
...
Signed-off-by: Simon Kuhball <simon@kuhball.de>
Co-authored-by: rwxd <rwxd@pm.me>
2023-05-31 10:27:49 +03:00
Sergey
181de14633
Add stdout to podman build and push actions ( #586 )
...
Fix #584
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-05-02 17:54:34 +03:00
nishipy
ab64d5f953
Update podman_image to specify CPU arch when pulling image ( #578 )
...
* Add test to sprcify CPU arch when pulling image
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update to specify CPU arch when pulling image
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Add document for specifying arch
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Fix for idempotency
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update plugins/modules/podman_image.py
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2023-04-15 13:49:16 +03:00
nishipy
e8c270370d
Convert str to json format before evaluating length. ( #574 )
...
Signed-off-by: nishipy <goodisonev4@gmail.com>
2023-04-06 13:44:26 +03:00
Sergey
d5f7655464
Support SHA256 tag for podman images ( #570 )
...
Fix #569
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-04-03 23:56:11 +03:00
Sergey
bb4b14bc5d
Add more explanation about cmd_args command usage ( #568 )
...
Fix #567
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-04-01 22:01:08 +03:00
spmfox
1a7dc953b4
podman-login - fix FIPS md5 issue and registry requirement ( #566 )
...
* Changing md5 to sha256 for FIPS compliance
Signed-off-by: spmfox <spmfox@foxwd.com>
* Removing check for registry
Signed-off-by: spmfox <spmfox@foxwd.com>
* Adding contributor name
Signed-off-by: spmfox <spmfox@foxwd.com>
---------
Signed-off-by: spmfox <spmfox@foxwd.com>
2023-04-01 13:56:09 +03:00
Sergey
0332db2aad
Change yes/no to true/false in the modules ( #561 )
...
Fix #560
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-03-08 23:28:52 +02:00
Sergey
dba0d78844
podman_systemd: Ignore header when comparing systemd files content ( #558 )
...
Fix #557
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-03-04 18:06:23 +02:00
Sergey
1bfa6396a5
Fix pylint issues for CI ansible-test ( #550 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-02-14 16:22:36 +02:00
Jannik Vieten
f618b5ccc6
Improved documentation of podman_generate_systemd module ( #542 )
...
* podman_generate_systemd: fixed typos in docs and put 'dest' option hints where they belong
Signed-off-by: Jannik Vieten <me@exploide.net>
* podman_generate_systemd: added an idempotent example when using podman_generate_systemd with new:true
Signed-off-by: Jannik Vieten <me@exploide.net>
---------
Signed-off-by: Jannik Vieten <me@exploide.net>
2023-02-12 13:58:18 +02:00
Sergey
132baa18e4
Add hooks-dir parameter for containers ( #547 )
...
Fix #539
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-02-12 01:47:46 +02:00
Roberto Alfieri
7d1d016fe9
added podman_prune module ( #538 )
...
* added podman-prune module
---------
Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
Signed-off-by: Roberto Alfieri <me@rebtoor.com>
2023-01-31 02:22:57 +02:00
Sergey
877581e31f
Add missing options to podman network ( #535 )
...
Fix #534
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-01-01 18:20:51 +02:00
Sergey
f8a70fe5b0
Fix podman logout tests for v4 ( #526 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-11-29 00:41:17 +02:00
Sergey
4f6ed89607
Run CI jobs with newer podman 4 ( #525 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-11-29 00:02:24 +02:00
phong-ngthanh
ed69d3c143
feat: allow empty string for prefixes ( #517 )
...
Signed-off-by: zephyros-dev <phong.ngthanh@outlook.com>
Signed-off-by: zephyros-dev <phong.ngthanh@outlook.com>
2022-11-21 18:19:27 +02:00
Sergey
a3f8901c4c
Fix docs issues in podman_image ( #507 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-11-02 16:56:24 +02:00
Alessandro Re
1fa3dda67b
docs: added simple extra_args example ( #493 )
2022-11-01 01:15:40 +02:00
Sergey
9e92a6e90c
Fix podman load module for Podman 4 ( #503 )
...
Fix #486
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-10-31 22:23:35 +02:00
Sergey
712c3230b2
Fix example in systemd generate module ( #502 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-10-31 21:59:21 +02:00