In 4.1, templates are not installed via dnf, but using the qvm-template
tool. There is a specific salt state to deal with them.
This means that instead of pkg.installed
, you use qvm.template_installed
In /srv/salt, create a file named template-debian-11-minimal.sls:
debian-11-minimal:
qvm.template_installed
The point is to install the template if it is not already
installed - otherwise, the clone operation will fail.
If you examine the clone.sls file you will see that it includes
another state, and that the clone operation requires that state.
If you know that you already have a debian-11-minimal template, then you
can remove this check, by deleting the section that starts “include:”,
and the two lines “require”.