-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a751de
commit 9bf1981
Showing
6 changed files
with
76 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"port": 5004, "crash_dir": "./crashes/", "secret": "{{ pillar['crash-reporter']['secret'] }}"} |
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,13 @@ | ||
[Unit] | ||
Description=Job that runs crash-reporter | ||
Requires=network-online.target | ||
|
||
[Service] | ||
ExecStart={{ common.servo_home }}/crash-reporter/_venv/bin/crash_reporter | ||
Environment=HOME={{ common.servo_home }} | ||
User=servo | ||
Group=servo | ||
WorkingDirectory={{ common.servo_home }}/crash-reporter | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,53 @@ | ||
{% from 'common/map.jinja' import common %} | ||
{% from tpldir ~ '/map.jinja' import crashreporter %} | ||
include: | ||
- common | ||
- python | ||
crash-reporter: | ||
virtualenv.managed: | ||
- name: /home/servo/crash-reporter/_venv | ||
- venv_bin: virtualenv-3.5 | ||
- python: python3 | ||
- system_site_packages: False | ||
- require: | ||
- pkg: python3 | ||
- pip: virtualenv | ||
pip.installed: | ||
- pkgs: | ||
- git+https://github.com/servo/crash-reporter@{{ crashreporter.rev }} | ||
- bin_env: /home/servo/crash-reporter/_venv | ||
- upgrade: True | ||
- require: | ||
- virtualenv: crash-reporter | ||
service.running: | ||
- enable: True | ||
- name: crashreporter | ||
- require: | ||
- pip: crash-reporter | ||
- watch: | ||
- file: /home/servo/crash-reporter/config.json | ||
- file: /lib/systemd/system/crashreporter.service | ||
- pip: crash-reporter | ||
/home/servo/crash-reporter/config.json: | ||
file.managed: | ||
- source: salt://{{ tpldir }}/files/config.json | ||
- template: jinja | ||
- user: servo | ||
- group: servo | ||
- mode: 644 | ||
/lib/systemd/system/crashreporter.service: | ||
file.managed: | ||
- source: salt://{{ tpldir }}/files/crashreporter.service | ||
- template: jinja | ||
- user: root | ||
- group: root | ||
- mode: 644 | ||
- context: | ||
common: {{ common }} | ||
- require: | ||
- pip: crash-reporter | ||
- file: /home/servo/crash-reporter/config.json |
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,5 @@ | ||
{% | ||
set crashreporter = { | ||
'rev': 'FIXME' | ||
} | ||
%} |
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 |
---|---|---|
|
@@ -32,3 +32,4 @@ base: | |
- nginx | ||
- salt.master | ||
- standups | ||
- crash-reporter |