{%- set user = salt['pillar.get']('podman:user', 'root') %} {%- set home = salt['user.info'](user).home %} [Unit] Description=Dump all mariadb databases [Service] Type=oneshot User={{ user }} ExecStart={{ home }}/bin/mysql-dump.sh [Install] WantedBy=default.target