SaltStack error: Template was specified incorrectly: False

@deeplow - pls feel free to put this in another thread if you think it shouldn’t be asked here - there are multiple saltstack threads & I wasn’t sure which was more appropriate.

This is the first time I’m attempting to use saltstack & having some problems. I want to use unman’s shaker cacher salt config to install a caching server. Can anyone point me in the right direction. I have copied the cacher directory from unman’s shaker repo to /srv/salt in dom0. I already have the debian-10-minimal template installed.

I get the following error when trying to apply the state - is there something I should run before this?

sudo qubesctl state.apply cacher.create
[ERROR   ] Template was specified incorrectly: False
    Data failed to compile:
    Specified SLS template-debian-10-minimal in saltenv base is not available on the salt master or through a configured fileserver
DOM0 configuration failed, not continuing

The error message is, for once, fairly clear - an sls is specified but
is not available.

If you examine create.sls you will see that it includes cacher.clone

Clone.sls requires and includes a state called
This is the state you are missing - NB NOT the template, but the salt
file that specifies that you have the template installed.
It looks like this:

    - name:	qubes-template-debian-10-minimal
    - fromrepo:	qubes-templates-itl

You already have files like this in
/srv/formulas/base/virtual-machines-formula/qvm for some of the other
I keep these universal requirements under /srv/salt

Thanks - I managed to resolve it by creating the template-debian-10-minimal.sls file in /srv/salt as you mentioned.