Skip to content

Commit

Permalink
Fix issue blocking sd-viewer & sd-app to be marked internal
Browse files Browse the repository at this point in the history
The issue was due to a double yaml intruction, which when rendered
and interpreted lead to the first `set` to be ignored.

Fixes: #1097
  • Loading branch information
deeplow authored and legoktm committed Jun 26, 2024
1 parent 617d88c commit c11715a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions securedrop_salt/sd-app.sls
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ sd-app:
- sd-client
- sd-workstation
- features:
{% if d.environment == "prod" %}
- set:
- vm-config.SD_MIME_HANDLING: sd-app
{% if d.environment == "prod" %}
- internal: 1
{% endif %}
{% endif %}
- enable:
- service.paxctld
- service.securedrop-mime-handling
- set:
- vm-config.SD_MIME_HANDLING: sd-app
- require:
- qvm: sd-small-{{ sdvars.distribution }}-template

Expand Down
7 changes: 3 additions & 4 deletions securedrop_salt/sd-viewer.sls
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@ sd-viewer:
- sd-viewer-vm
- sd-{{ sdvars.distribution }}
- features:
{% if d.environment == "prod" %}
- set:
- vm-config.SD_MIME_HANDLING: sd-viewer
{% if d.environment == "prod" %}
- internal: 1
{% endif %}
{% endif %}
- enable:
- service.paxctld
- service.securedrop-mime-handling
- set:
- vm-config.SD_MIME_HANDLING: sd-viewer
- require:
- qvm: sd-large-{{ sdvars.distribution }}-template

Expand Down

0 comments on commit c11715a

Please sign in to comment.