Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Allow adding devices to the platform container (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmsc authored Jan 17, 2022
1 parent f137553 commit f12bb63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/molecule_podman/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class Podman(Driver):
privileged: True|False
security_opts:
- seccomp=unconfined
devices:
- /dev/sdc:/dev/xvdc:rwm
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
Expand Down
1 change: 1 addition & 0 deletions src/molecule_podman/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
{% if item.privileged is defined %}--privileged={{ item.privileged }}{% endif %}
{% if item.detach is defined %}--detach{% endif %}
{% if item.security_opts is defined %}{% for i in item.security_opts %}--security-opt {{ i }} {% endfor %}{% endif %}
{% if item.devices is defined %}{% for i in item.devices %}--device {{ i }} {% endfor %}{% endif %}
{% if item.volumes is defined %}{% for i in item.volumes %}--volume {{ i }} {% endfor %}{% endif %}
{% if item.tmpfs is defined %}{% for i in item.tmpfs %}--tmpfs={{ i }} {% endfor %}{% endif %}
{% if item.capabilities is defined %}{% for i in item.capabilities %}--cap-add={{ i }} {% endfor %}{% endif %}
Expand Down

0 comments on commit f12bb63

Please sign in to comment.