added logic for containers without volumes
This commit is contained in:
parent
00d7160d66
commit
1801d4e00f
@ -7,6 +7,7 @@ function pull_image(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{% if pillar['containers'][container]['volumes'] is defined %}
|
||||||
function create_volumes() {
|
function create_volumes() {
|
||||||
{% for volume, mounts in args['volumes'].items() -%}
|
{% for volume, mounts in args['volumes'].items() -%}
|
||||||
if ! podman volume exists {{ container }}-{{ volume }}; then
|
if ! podman volume exists {{ container }}-{{ volume }}; then
|
||||||
@ -14,6 +15,7 @@ function create_volumes() {
|
|||||||
fi
|
fi
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
function create_container() {
|
function create_container() {
|
||||||
if ! podman container exists {{ container }};then
|
if ! podman container exists {{ container }};then
|
||||||
|
Reference in New Issue
Block a user