17 lines
425 B
Bash
17 lines
425 B
Bash
#!/bin/sh
|
|
sleep 5
|
|
systemctl restart autofs
|
|
sleep 5
|
|
{%- if pillar['lxc'] is defined -%}
|
|
{%- for container in pillar['lxc'] -%}
|
|
{%- if pillar['lxc'][container]['bind_dirs'] is defined -%}
|
|
{%- for dir in pillar['lxc'][container]['bind_dirs'] %}
|
|
ls /{{dir}}/
|
|
{%- endfor -%}
|
|
{%- endif -%}
|
|
{%- endfor %}
|
|
sleep 5
|
|
{%- for container in pillar['lxc'] %}
|
|
lxc-start {{container}}
|
|
{%- endfor -%}
|
|
{%- endif -%}
|