Apt-cacher-ng cacher qube creating errors

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”.

1 Like

Wow! Twenty one posts to discover this. I’m wondering how we should know that, when even search via docs site doesn’t return any result on the ducduckgo page for a phrase qvm.template_installed on all of the three resources (forum, docs and dev)

No, really, where is this documented? I’m trying to learn salt, but it looks it won’t be easy to salt the Qubes?