Sergey
5db058ac67
Remove default value of log-driver ( #340 )
...
The default value of log-driver is not defined now and can change
depending on the platform.
2021-11-25 19:06:02 +02: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
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
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
717963d66d
Fix issue with podman and exposed ports ( #323 )
2021-10-12 02:18:08 +03:00
Sergey
a1aec061f5
Support empty stings in prefixes ( #321 )
2021-10-11 23:38:58 +03: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
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
Sergey
53338e7ec0
Add podman import/export containers modules ( #297 )
2021-09-12 17:01:38 +03:00
Marcin Skarbek
af7772db77
Add support for podman pod create --infra-name ( #292 )
2021-09-01 13:42:05 +03:00
Sergey
afe55dd277
Fix idempotency when containers have a common network ( #279 )
...
Fix #252
2021-08-16 14:28:57 +03:00
Sergey
1f28b52242
Fix modules for newest pylint in ansible-test ( #286 )
2021-08-15 19:40:07 +03:00
Aliaksandr Mianzhynski
e9ace7b4bf
Add initial secrets support ( #284 )
...
* Add initial secrets support
2021-08-10 15:35:48 +03:00
Sergey
ed681ef10e
Fix idempotency with systemd podman files ( #278 )
...
Fix #276
Label 'podman_systemd_unit' is the marker for container starting
from systemd generated file. In this case:
* Ignore podman_systemd_unit label
* Ignore cidfile settings when this label presents
2021-08-02 12:59:43 +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
8ada1501f6
Disable no-hosts idempotency ( #273 )
...
Because of podman bug we can't discover what's --no-hosts option
set to.
2021-07-07 12:11:13 +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
a7629a89db
Fix multi-containers options ( #258 )
2021-05-24 09:58:33 +03:00
Sergey
b3cf53e5ac
Fix idempotency for environment ( #260 )
2021-05-24 01:22:32 +03:00
Sergey
b62fb99bae
Fix ansible-test issues for CI ( #241 )
2021-04-07 10:21:08 +03:00
Sergey
607c120f94
Fix uppercase labels idempotency issue ( #230 )
...
When we lower cases for all keys, but leave it original case for
all values, we need to do the same with input labels.
Add test.
Fix #227
2021-04-01 16:33:27 +03:00
Sergey
f41c63815f
Stop pods without recreating them ( #229 )
...
Stop pod without recreating if its definition isn't the same as
before.
Fix #215
2021-04-01 14:52:58 +03:00
Sergey
f6ec6ac158
Add support for Podman Pod restart ( #228 )
...
Fix #223
Add tests.
2021-04-01 12:58:26 +03:00
Sergey
d87777394b
Add IPv6 support for publishing ports ( #226 )
2021-03-31 18:28:46 +03:00
Sergey
ed3a3dc080
Fix no_log for newer ansible-test ( #221 )
2021-03-16 16:28:58 +02:00
Andreas Gerstmayr
303486c52c
Add sigrtmin+3 signal (required for systemd containers) ( #220 )
2021-03-13 12:30:13 +02:00
Elias Norrby
4da30fd3fd
Attempt graceful stop when recreating container ( #203 )
...
References: containers/ansible-podman-collections#202
Co-authored-by: Sergey <sshnaidm@users.noreply.github.com>
2021-02-24 13:19:37 +02:00
Sergey
c4ba85f73c
Fixes for podman_container for Podman v3 ( #209 )
...
Fix logs, networks, etc.
2021-02-24 07:52:30 +02:00
Sergey
9f45c40ea9
Fix podman_pod* modules for Podman v3 ( #207 )
...
Fix network in podman_pod modules for Podman v3
2021-02-23 15:57:25 +02:00
Sergey
86c9066771
Fix idempotency for multiple ports ( #194 )
2021-02-14 09:47:32 +02: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
596aab757f
Fix pylint issues for ansible-test
2021-02-11 04:22:04 +02:00
Sagi Shnaidman
2b073c6e89
Fix slirp4netns options idempotency
...
Fix #184
2021-02-11 01:54:42 +02:00
Sagi Shnaidman
0bdaa4a78f
Fix ambigous variable issue for pylint
2021-02-10 20:54:00 +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
885af0c7c5
Change default log level for 3+ versions
2021-02-10 18:13:39 +02:00
Georgi Valkov
b911939f07
Fix 'cap_add' and 'cap_drop' idempotency
...
- Ensure that comparison always happens on lower-case values.
- Take into account that capabilities can be specified with or
without the 'CAP_' prefix.
2021-02-01 11:24:14 +02:00
Justin Riley
db09d8e778
podman_container_lib: fix command idempotency
...
preserve case sensitivity by removing the use of lower() and using shlex
to split the command string
2021-01-12 13:38:28 +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
bae71956b7
Handle slash removals for root volumes mount
2020-12-27 16:00:46 +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
Sagi Shnaidman
62638bac26
Fix no_hosts idempotency for newer version
2020-12-20 18:30:17 +02:00
Sagi Shnaidman
cd652fe2ee
Remove 'detach' when creating container
2020-12-20 18:30:17 +02:00
Sagi Shnaidman
a35c9cc8ca
Add idempotency for mac_address and tests
2020-11-23 15:53:08 +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