Skip to content

Commit

Permalink
Merge pull request #298 from freedomofpress/271-package-send-to-usb
Browse files Browse the repository at this point in the history
Remove salt provisioning for sd-export files
  • Loading branch information
zenmonkeykstop authored Aug 9, 2019
2 parents 92d0006 + 5572792 commit d8e1a84
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 589 deletions.
61 changes: 4 additions & 57 deletions dom0/sd-export-files.sls
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@
include:
- fpf-apt-test-repo

sd-export-template-install-packages:
pkg.installed:
- pkgs:
- cryptsetup
- cups
- task-print-server
- system-config-printer
- xpp
- libcups2-dev
- python3-dev
- libtool-bin
- unoconv

# Libreoffice needs to be installed here to convert to pdf to allow printing
sd-export-install-libreoffice:
pkg.installed:
Expand All @@ -33,50 +20,10 @@ sd-export-install-libreoffice:
interval: 60
- install_recommends: False

sd-export-send-to-usb-script:
file.managed:
- name: /usr/bin/send-to-usb
- source: salt://sd/sd-export/send-to-usb
- user: root
- group: root
- mode: 755
- makedirs: True

sd-export-desktop-file:
file.managed:
- name: /usr/share/applications/send-to-usb.desktop
- source: salt://sd/sd-export/send-to-usb.desktop
- user: root
- group: root
- mode: 644
- makedirs: True
cmd.run:
- name: sudo update-desktop-database /usr/share/applications
- require:
- file: sd-export-desktop-file

sd-export-file-format:
file.managed:
- name: /usr/share/mime/packages/application-x-sd-export.xml
- source: salt://sd/sd-export/application-x-sd-export.xml
- user: root
- group: root
- mode: 644
- makedirs: True
cmd.run:
- name: sudo update-mime-database /usr/share/mime
- require:
- file: sd-export-file-format
- file: sd-export-desktop-file

sd-export-securedrop-icon:
file.managed:
- name: /usr/share/securedrop/icons/sd-logo.png
- source: salt://sd/sd-proxy/logo-small.png
- user: root
- group: root
- mode: 644
- makedirs: True
# Install securedrop-export package https://github.com/freedomofpress/securedrop-export
sd-export-install-package:
pkg.installed:
- name: securedrop-export

# populate sd-export-config.json in sd-export-template. This contains the usb
# device information used for the export
Expand Down
7 changes: 0 additions & 7 deletions sd-export/application-x-sd-export.xml

This file was deleted.

Loading

0 comments on commit d8e1a84

Please sign in to comment.