#update lxc containers on this lxc host {%- if pillar['lxc'] is defined -%} {%- for container in pillar['lxc'] %} update-{{container}}: cmd.run: - name: salt-call publish.publish '{{container}}.actcur.com' pkg.upgrade arg='refresh=true' {% endfor %} {% endif %}