{% from 'lib.sls' import pod_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" {{ pod_deploy('mosquitto') }}