added support for devices

This commit is contained in:
IronicBadger 2020-10-01 19:42:59 -04:00
parent 6a8e17c50d
commit f09e41d662

View File

@ -19,6 +19,17 @@ services:
{% if container.privileged is defined %} {% if container.privileged is defined %}
privileged: {{ container.privileged }} privileged: {{ container.privileged }}
{% endif %} {% endif %}
{% if container.cap_add is defined %}
cap_add:
{% for cap in container.cap_add %}
- {{ cap }}
{% endfor %}
{% endif %}
{% if container.devices is defined %}
devices:
{% for device in container.devices %}
- {{ device }}
{% endfor %}
{% if container.volumes is defined %} {% if container.volumes is defined %}
volumes: volumes:
{% for volume in container.volumes %} {% for volume in container.volumes %}
@ -65,12 +76,6 @@ services:
{% if container.restart is defined %} {% if container.restart is defined %}
restart: {{ container.restart }} restart: {{ container.restart }}
{% endif %} {% endif %}
{% if container.cap_add is defined %}
cap_add:
{% for cap in container.cap_add %}
- {{ cap }}
{% endfor %}
{% endif %}
{% if container.command is defined %} {% if container.command is defined %}
command: command:
{% for command in container.command %} {% for command in container.command %}