Skip to content

Instantly share code, notes, and snippets.

@marmarek

marmarek/dom0.sls

Last active Oct 28, 2016
Embed
What would you like to do?
Martus salt configuration for Qubes OS
include:
- qvm.template-debian-8
- qvm.sys-whonix
debian-8-martus:
qvm.clone:
- source: debian-8
- label: black
martus:
qvm.vm:
- present:
- template: debian-8-martus
- label: blue
- prefs:
- netvm: sys-whonix
- require:
- qvm: sys-whonix
- qvm: debian-8-martus
base:
dom0:
- martus.dom0
debian-8-martus:
- martus.template
martus:
- martus.vm
backports:
pkgrepo.managed:
- humanname: Debian backports
- name: deb http://ftp.debian.org/debian jessie-backports main
- dist: jessie-backports
- file: /etc/apt/sources.list.d/backports.list
- refresh_db: true
openjfx:
pkg.installed:
- fromrepo: jessie-backports
- require:
- pkgrepo: backports
unzip:
pkg.installed: []
/home/user/Downloads/Martus-5.1.1.zip:
file.managed:
- source: https://martus.org/installers/Martus-5.1.1.zip
- source_hash: sha1=da13a7ed03788a9a4abf5988ab64370644fdfa4c
- user: user
- group: user
/home/user/Martus-5.1.1:
cmd.run:
- name: unzip /home/user/Downloads/Martus-5.1.1.zip
- cwd: /home/user
- user: user
- creates: /home/user/MartusClient-5.1.1
- require:
- file: /home/user/Downloads/Martus-5.1.1.zip
/home/user/.config/autostart/martus.desktop:
file.managed:
- user: user
- group: user
- makedirs: true
- mode: 0644
- contents: |
[Desktop Entry]
Version=1.0
Type=Application
Name=Martus
Path=/home/user/MartusClient-5.1.1
Exec=java -jar martus.jar
@Rudd-O

This comment has been minimized.

Copy link

@Rudd-O Rudd-O commented Oct 28, 2016

Why is Martus being deployed to /home in the appvm instead of to like /opt in the templatevm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment