Sergey
4c682e170c
Run black -l 120 on all Python files to unify the style ( #939 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2025-06-15 18:25:48 +03:00
Ewoud Kohl van Wijngaarden
40d320d8f6
Document that sdnotify can be set to healthy ( #911 )
...
For quadlets you can set sdnotify (which maps to Notify=) to healthy to
use a healthcheck to determine when the container is up.
Signed-off-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
2025-03-10 10:24:42 +02:00
Sergey
7fa610a416
Convert DNS domain search to a list ( #881 )
...
Fix #880
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-12-13 20:34:17 +02:00
Vinícius Hashimoto
d68ca756de
docs(podman_container): improve comments on network property ( #878 )
...
Signed-off-by: vkhashimoto <me@vkhashimoto.dev>
2024-11-24 20:34:29 +02:00
Guillaume HOUDMON
2deadf069a
Add quadlet file mode option to specify file permission ( #867 )
...
* Add quadlet file mode option
Signed-off-by: ghoudmon <guillaume@houdmon.com>
* Fix file mode only change test
Signed-off-by: ghoudmon <guillaume@houdmon.com>
---------
Signed-off-by: ghoudmon <guillaume@houdmon.com>
2024-10-22 15:20:26 +03:00
InsideTheVoid
84cff745f9
Fix unsupported pull policy in example on podman_container.py ( #865 )
...
Signed-off-by: InsideTheVoid <824767+InsideTheVoid@users.noreply.github.com>
2024-10-15 13:33:19 +03:00
Evgeni Golov
36c146a633
don't document quadlet_dir as required when setting state=quadlet ( #852 )
...
The underlying code has sane defaults and will figure out the
directory on its own in most cases
0b773e5d61/plugins/module_utils/podman/quadlet.py (L688-L693)
Signed-off-by: Evgeni Golov <evgeni@golov.de>
2024-09-25 17:51:54 +03:00
Sergey
7a1d668e0e
Update inspection info about objects in modules ( #819 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-08-16 19:26:35 +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
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
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
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
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
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
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
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
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
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
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
dada513
b72a026328
generate_systemd: implement --wants, --after and --requires (GH-431) ( #432 )
...
* generate_systemd: implement --wants, --after and --requires (GH-431)
Signed-off-by: dada513 <dada513@protonmail.com>
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Co-authored-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-09-01 20:28:07 +03:00
Sergey
cecb29222e
Add --sdnotify option for container ( #465 )
...
Fix #464
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-08-28 16:42:31 +03:00
Benjamin Schubert
15dae0d9ad
podman_container.py: Fix typo in the documentation ( #424 )
...
I believe "prefix" is what was meant here
Signed-off-by: Benjamin Schubert <contact@benschubert.me>
2022-05-22 15:08:16 +03:00
Sergey
aa4c3223d2
Fix podman collection for Podman version 4 ( #398 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-03-17 21:56:19 +02:00
Rubik's Dot
d024e91216
fix check for read-only change of root image ( #393 )
...
The --read-only option is not checked for changes between runs of
ansible thus the container is not recreated if the user changes
the root image between read-write to read-only.
Default for the read_only variable set to False in line with
documentation and so that later checks are simplified.
This is a fix for bug #383 .
Signed-off-by: Andrew <rubiksdot@grue.cc>
Co-authored-by: Andrew <rubiksdot@grue.cc>
2022-03-14 12:54:12 +02:00
Sergey
527ccacf01
Add --requires option ( #378 )
...
Fix #374
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-02-17 18:53:37 +02:00
Aliaksandr Mianzhynski
d185616a72
Update secrets description and add test with secret opts ( #363 )
...
* Update secrets description and add test with secret opts
* Make pep happy
2022-01-06 18:08:09 +02:00
zephyros
e6d2e86e35
Add documentations for generate_systemd ( #336 )
2021-11-19 16:04:06 +02:00
Luca Beltrame
cef7bdbea0
Support --new in generate_systemd ( #334 )
...
* Support --new in generate_systemd
Fixes #318 .
* Add docs
2021-11-18 14:35:42 +02:00
Cédric Jeanneret
a8e81193f4
Allow to actually pass a list of string for "mounts" ( #332 )
...
Like "volume", "mount" can be passed multiple times to the container
creation/run, therefore we want to support a list of string, and a
"mounts" alias.
2021-11-09 13:40:40 +02:00
Jad Kik
15cd7623af
Add support for network-alias flag ( #314 )
...
* Add support for network-alias flag
* Ignore idempotency assert in tests
Co-authored-by: Sagi Shnaidman <sshnaidm@redhat.com>
2021-10-03 22:18:31 +03:00
Sergey
3f3cdab506
Add .service extension to systemd files ( #310 )
2021-09-23 09:50:16 +03:00
Bruno Marsal
8d48e30721
Fix suboption key in podman_container/podman_pod for generate_systemd documentation ( #305 )
...
* fix suboption key in podman_container -> generate_systemd documentation
As of this line 5b3f8a4d3d/plugins/module_utils/podman/common.py (L66) it should be "path", not "file"
* fix suboption key in podman_pod -> generate_systemd documentation
2021-09-19 13:54:50 +03:00
Sergey
5d37e1ee22
Add systemd generation for pods ( #299 )
2021-09-15 02:44:06 +03:00
Sergey
24329ce5d3
Generate systemd service files for containers ( #298 )
2021-09-13 17:13:15 +03:00
Aliaksandr Mianzhynski
e9ace7b4bf
Add initial secrets support ( #284 )
...
* Add initial secrets support
2021-08-10 15:35:48 +03:00
Sergey
9ff36649ab
Change present state to be as created state ( #263 )
...
For being more compliant with docker module.
See #257
2021-07-07 18:48:50 +03:00
Sergey
bcdaa9f825
Add support for timezones in containers ( #262 )
...
* Remove choices for cgroups
* Add timezone parameter to container module
2021-05-24 11:39:08 +03:00
Sergey
b62fb99bae
Fix ansible-test issues for CI ( #241 )
2021-04-07 10:21:08 +03:00
Sagi Shnaidman
8a61f88d66
Don't recreate container if env_file is specified
...
Fix #178
2021-02-11 04:34:25 +02:00
Sagi Shnaidman
e4f5a8eabe
Convert systemd option to a string
...
And set it to lower to workaround bugs in 3.0.1
2021-02-10 20:14:03 +02:00
Sagi Shnaidman
c60f2c6cae
Restart container in a simple manner
...
Don't require an image when restarting container, only the
container name.
2021-01-08 00:56:42 +02:00
Sagi Shnaidman
33c7fa5842
Add 'created' state for podman_container
...
Add state 'created' which will ensure container exists in current
configuration. It can either run or not.
2021-01-06 15:20:16 +02:00
Sagi Shnaidman
00d490b95c
Convert gidmap to list for podman_container
...
Fix #152
2020-12-21 00:53:42 +02:00
Sagi Shnaidman
1d5d02cbbb
Convert log-opts to dictionary and idempotent
2020-12-21 00:53:42 +02:00
Eric L
29a4bfa8e0
Add mac_address field to podman_container module
...
* extended description of podman_container
* add mac_address field and add_param function in podman_container_lib
* closes #146
2020-11-23 15:53:08 +02:00
Riyad Preukschas
9bc1233a73
Improve compatibility with docker_container by adding aliases ( #142 )
2020-11-07 19:54:27 +02:00