{% from 'lib.sls' import container_deploy with context %} Create mosquitto configuration directory: file.directory: - name: /etc/mosquitto - user: 1883 - group: 1883 - mode: "0750" Create mosquitto data directory: file.directory: - name: /srv/mosquitto - user: 1883 - group: 1883 - mode: "0750" {{ container_deploy('mosquitto') }}