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
Popkornium18
a45d94d503
Fix idempotency for containers with env vars containing MAX_SIZE ( #893 )
...
Signed-off-by: Popkornium18 <mail@popkornium18.de>
2025-01-19 20:34:26 +02:00
Sergey
d4977eae0a
Fix max_size idempotency issue ( #862 )
...
Fix #843
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-10-11 22:28:19 +03:00
Sergey
d25cf57967
Idempotency improvements ( #795 )
...
* Fix integers in Quadlet generation
* Work around quotes in command for idempotency
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-07-07 22:55:26 +03:00
Sergey
24c842fdd6
Fix idempotency for empty values ( #790 )
...
Fix #788
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-06-20 09:53:16 +03:00
Sergey
47fc4cc119
Redesign idempotency for Podman Pod module ( #759 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-27 17:49:32 +03:00
Sergey
1fe9642576
Add option to parse CreateCommand easily for diff calc ( #698 )
...
We have a few calculations of given options and arguments from
CreateCommand, so let's do it in a more convinient way.
Define a function _createcommand which receives an argument
and returns all values for it in a command line of Podman.
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-01-11 15:30:24 +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
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
edcb13dd8a
Fail if systemd generation failed and it's explicitly set ( #682 )
...
Fix #675
If we explicitly set to generate systemd with parameters, fail
the module if the generation failed.
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-11-30 16:04:51 +02:00
Sergey
e025e928b2
Fix common file for Python 2.7 ( #643 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-09-06 13:28:52 +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
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
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
Sergey
a90c040239
Fix expanduser in path for systemd generation ( #510 )
...
Use expanduser for path calculation.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2133207
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-11-11 11:00:47 +02:00
Sergey
5c68ee09fe
Add protection for systemd files deletion ( #509 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-11-10 21:06:55 +02:00
Sergey
5198b726fb
Delete systemd files when container/pod is deleted ( #508 )
...
Fix #489
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-11-10 17:13:45 +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
2577f5b0f5
Remove distutils as deprecated ( #437 )
...
Fix #422
The distutils package is deprecated and slated for removal in Python 3.12
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-06-12 22:54:03 +03:00
Oliver Walsh
f3e95d0d3f
Hardcode RT signal numbers ( #338 )
...
Looking up SIGRTMIN/SIGRTMAX isn't portable.
Hardcode the Linux signal number instead.
Fixes issue #337 .
2021-11-20 03:06:07 +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
Oliver Walsh
a0377fbd24
Fix signal diff for truncated and RT signal names ( #326 )
...
* Fix signal diff for truncated and RT signal names
This refactors the signal mapping logic to closely resemble the logic in
podman.
Podman tolerates images with truncated STOPSIGNAL names e.g RTMIN+3
is used in the freeipa-container Dockerfiles.
Also avoids hardcoding real-time signals as they vary per
platform or glibc implementation (see man 7 signal).
* Cleanup lint
* More lint cleanup
2021-10-19 17:18:22 +03:00
Sergey
a1aec061f5
Support empty stings in prefixes ( #321 )
2021-10-11 23:38:58 +03:00
Sergey
3f3cdab506
Add .service extension to systemd files ( #310 )
2021-09-23 09:50:16 +03:00
Sergey
5d37e1ee22
Add systemd generation for pods ( #299 )
2021-09-15 02:44:06 +03:00
Sergey
53338e7ec0
Add podman import/export containers modules ( #297 )
2021-09-12 17:01:38 +03:00
Sergey
b62fb99bae
Fix ansible-test issues for CI ( #241 )
2021-04-07 10:21:08 +03:00
Holger Hees
1bd3b70de6
fix diff calculation for lower/upper cases ( #115 )
...
* fix diff calculation
* fix formatting
* fix formatting
* removed unused import statements
* add missing requirement doc
2020-10-07 11:50:43 +03:00
Sergey
8b717f9201
Relicense under GPLv3 and clean up modules ( #57 )
...
Clean up modules according to last Ansible changes
Set license for GPLv3 to avoid various possible issues
2020-06-08 17:07:16 +03:00
Sagi Shnaidman
dc13dce52a
Migration of Podman modules from Ansible to Containers
2020-03-06 16:29:20 +02:00