17 lines
443 B
Bash
17 lines
443 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'] %}
|
|
systemctl start lxc@{{container}}.service
|
|
{%- endfor -%}
|
|
{%- endif -%}
|