Skip to content

Commit

Permalink
Auto merge of #476 - Coder206:homuDB, r=aneeshusa
Browse files Browse the repository at this point in the history
Changing DB location for Homu

Here is some code that attempts to solve #456.

cc @aneeshusa

<!-- Reviewable:start -->

---

This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/476)

<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Apr 22, 2017
2 parents 5e6044a + 656ed2b commit d77ca7a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions homu/files/cfg.toml
Expand Up @@ -307,3 +307,6 @@ secret = "{{ pillar["homu"]["gh-webhook-secret"] }}"

[repo.dwrote-rs.status.appveyor]
context = 'continuous-integration/appveyor/branch'

[db]
file = "{{ db }}"
12 changes: 11 additions & 1 deletion homu/init.sls
Expand Up @@ -33,13 +33,23 @@ homu:
- file: /home/servo/homu/cfg.toml
- file: /etc/init/homu.conf
{{ salt['file.dirname'](homu.db) }}:
file.directory:
- user: servo
- group: servo
- dir_mode: 700
- require_in:
- file: /home/servo/homu/cfg.toml
/home/servo/homu/cfg.toml:
file.managed:
- source: salt://{{ tpldir }}/files/cfg.toml
- template: jinja
- user: servo
- group: servo
- mode: 644
- template: jinja
- context:
db: {{ homu.db }}
/etc/init/homu.conf:
file.managed:
Expand Down
1 change: 1 addition & 0 deletions homu/map.jinja
@@ -1,5 +1,6 @@
{%
set homu = {
'db': '/var/homu/main.db',
'rev': '83689f0d52e64292a4eb50def23d0e9028f8aba1'
}
%}

0 comments on commit d77ca7a

Please sign in to comment.