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
Sergey
bf752e4492
Move containers logic to module utils ( #139 )
2020-11-03 09:55:23 +02:00
Sergey
e1d35e70c6
Add strict image compare with hashes ( #136 )
2020-10-26 19:23:46 +02:00
Sergey
3dbca6fb91
Fix force restart option for containers ( #131 )
2020-10-24 18:04:42 +03:00
Sergey
1cf8872345
Add log level for Podman in module ( #129 )
2020-10-22 22:34:21 +03:00
Sergey
00a2bc9453
Prepare podman container to be called from other module ( #128 )
2020-10-22 00:43:53 +03:00
Sergey
2007d84132
Fix signals case for podman_container ( #126 )
...
In #113 we made a change to lowercase only keys, but signals in
image info are upper case.
Fix tests - stop signal should be word, not number.
Related to #125 .
2020-10-20 16:54:33 +03:00
Sergey
5343cb43ed
Remove pyyaml from requirements ( #121 )
...
And remove all skips from ansible-test which were related to
imports and compiles.
2020-10-09 01:10:26 +03:00
Sergey
f7f279a9ce
Add note about containerPort setting ( #120 )
...
Fix #116
2020-10-08 21:18:45 +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
ruatag
9a7b4d7172
Fix init: option it's boolean not string ( #111 )
...
* Fix init: option it's boolean not string
* DOCUMENTATION.options.init.type bool
2020-09-28 21:25:37 +03:00
Sergey
2d3689e8c5
Fix issue with idempotency uts, ipc with pod ( #95 )
2020-07-29 13:25:32 +03:00
Sergey
727d4a361f
Fix idempotency for case with = in env ( #92 )
...
Add tests for env settings.
2020-07-27 20:00:04 +03:00
Sergey
0636d05cac
Fix idempotency for networks and add tests ( #84 )
2020-07-19 23:50:25 +03:00
Sergey
3726e2a1c7
Add ubuntu 20.04 to CI as it has podman 2.0.1 version ( #83 )
...
Fix idempotency issues in podman_container
Add creating workdir, buildah issue: https://github.com/containers/buildah/issues/2475
Fix #68
Fix #69
Should help to #80 as well, but will be handled separately.
2020-07-16 21:21:17 +03:00
Sergey
3ba6416ffc
Improve idempotency for volumes with slashes ( #78 )
...
In case of trailing slash or double slashes, the Podman strips it
automatically. Prepare input data accordingly, so we can compare
with Podman inspected one.
2020-07-09 18:37:08 +03:00
Sergey
6b2bcef9b2
Improve ports idempotency and support UDP ( #76 )
2020-07-09 17:23:28 +03:00
Abhijeet Kasurde
8d44ce919c
sanity: doc fixes ( #71 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-07-05 12:11:04 +03:00
Sergey
d53539c2f4
Fix idempotency for podman > 2 versions ( #66 )
...
In podman 2.0.0 were introduced changes in inspection of container.
Support all idempotency changes from version 2.
2020-06-29 20:33:09 +03:00
Sergey
b2c36a8930
Add idempotency for ulimits and tests ( #62 )
2020-06-21 21:45:50 +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