mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-05-01 21:38:57 +00:00
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
This commit is contained in:
parent
baf459ec23
commit
29a4bfa8e0
2 changed files with 10 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ ARGUMENTS_SPEC_CONTAINER = dict(
|
|||
type='str',
|
||||
choices=["debug", "info", "warn", "error", "fatal", "panic"]),
|
||||
log_opt=dict(type='str', aliases=['log_options']),
|
||||
mac_address=dict(type='str'),
|
||||
memory=dict(type='str'),
|
||||
memory_reservation=dict(type='str'),
|
||||
memory_swap=dict(type='str'),
|
||||
|
|
@ -391,6 +392,9 @@ class PodmanModuleParams:
|
|||
def addparam_log_level(self, c):
|
||||
return c + ['--log-level', self.params['log_level']]
|
||||
|
||||
def addparam_mac_address(self, c):
|
||||
return c + ['--mac-address', self.params['mac_address']]
|
||||
|
||||
def addparam_memory(self, c):
|
||||
return c + ['--memory', self.params['memory']]
|
||||
|
||||
|
|
|
|||
|
|
@ -426,6 +426,12 @@ options:
|
|||
type: str
|
||||
aliases:
|
||||
- log_options
|
||||
mac_address:
|
||||
description:
|
||||
- Specify a MAC address for the container, for example
|
||||
'92:d0:c6:0a:29:33'.
|
||||
Don't forget that it must be unique within one Ethernet network.
|
||||
type: str
|
||||
memory:
|
||||
description:
|
||||
- Memory limit (format 10k, where unit = b, k, m or g)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue