-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We intend to package these dom0-specific config items into an RPM, but for now we'll continue to use Salt to copy the files around via the Makefile. Note that the `sd-dom0-files.sls` filename implies the list is comprehensive, but in fact there are dom0-specific configs scattered through the other SLS files, mostly VM specifications and RPC policy grants.
- Loading branch information
Conor Schaefer
committed
Oct 19, 2018
1 parent
161918a
commit 99660b5
Showing
4 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
## | ||
# Installs dom0 config scripts specific to tracking updates | ||
# over time. These scripts should be ported to an RPM package. | ||
## | ||
|
||
|
||
# Copy script to system location so admins can run ad-hoc | ||
dom0-update-securedrop-script: | ||
file.managed: | ||
- name: /usr/bin/securedrop-update | ||
- source: salt://securedrop-update | ||
- user: root | ||
- group: root | ||
- mode: 755 | ||
|
||
# Symlink update script into cron, for single point of update | ||
dom0-update-securedrop-script-cron: | ||
file.symlink: | ||
- name: /etc/cron.daily/securedrop-update-cron | ||
- target: /usr/bin/securedrop-update | ||
|
||
# Create directory for storing SecureDrop-specific icons | ||
dom0-securedrop-icons-directory: | ||
file.directory: | ||
- name: /usr/share/securedrop/icons | ||
- user: root | ||
- group: root | ||
- mode: 755 | ||
- makedirs: True | ||
|
||
# Copy SecureDrop icon for use in GUI feedback. It's also present in | ||
# the Salt directory, but the permissions on that dir don't permit | ||
# normal user reads. | ||
dom0-securedrop-icon: | ||
file.managed: | ||
- name: /usr/share/securedrop/icons/sd-logo.png | ||
- source: salt://sd/sd-journalist/logo-small.png | ||
- user: root | ||
- group: root | ||
- mode: 644 | ||
# Dependency on parent dir should be explicitly declared, | ||
# but the require syntax below was throwing an error that the | ||
# referenced task was "not available". | ||
# require: | ||
# - dom0-securedrop-icons-directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
base: | ||
dom0: | ||
- sd-dom0-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
# "Placeholder" config to trigger TemplateVM boots, | ||
# so upgrades can be applied automatically via cron. | ||
base: | ||
qubes:type:template: | ||
- match: pillar | ||
- topd |