Skip to content

Commit

Permalink
Add group_add parameter for podman quadlet (#827)
Browse files Browse the repository at this point in the history
* Add group_add parameter for podman quadlet

* Update plugins/module_utils/podman/quadlet.py

Co-authored-by: Sergey <[email protected]>

---------

Co-authored-by: Sergey <[email protected]>
  • Loading branch information
tompre and sshnaidm authored Sep 2, 2024
1 parent 25a6410 commit 4f24ece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/module_utils/podman/quadlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ def custom_prepare_params(self, params: dict) -> dict:
params["podman_args"].append(f"--env {k}={v}")
if params["gpus"]:
params["podman_args"].append(f"--gpus {params['gpus']}")
if params["group_add"]:
for group in params["group_add"]:
params["podman_args"].append(f"--group-add {group}")
if params["group_entry"]:
params["podman_args"].append(f"--group-entry {params['group_entry']}")
if params["hostuser"]:
Expand Down

0 comments on commit 4f24ece

Please sign in to comment.