freedomofpress / securedrop-workstation

Qubes-based SecureDrop Journalist Workstation environment for submission handling
GNU Affero General Public License v3.0
141 stars 43 forks source link

Non stateful commands used to install templates #1179

Open ben-grande opened 2 months ago

ben-grande commented 2 months ago

Description

Related:

There are some places that I found that shell commands were used when salt modules already exist.

Steps to Reproduce

Not applicable.

Expected Behavior

Stateful commands.

Actual Behavior

Non stateful commands used.

kennethrrosen commented 1 month ago

I'd be happy to take this on with a little guidance, if of interest to the team.

ben-grande commented 1 month ago

@kennethrrosen If you are still interested in doing it, please specify what you did not understand.

One task example: change the use of cmd.run of qvm-template to qvm.template_installed. The other tasks are very similar. There may be others in the repo, I just listed some above that were specifically linked to the templates installation.

kennethrrosen commented 1 month ago

@ben-grande I understood everything without issue, and plan on taking this on -- if, and only if, this is something @rocodes approves of.