Skip to content

Commit

Permalink
fixup! Change DB location for Homu
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshusa committed Apr 22, 2017
1 parent 16ef531 commit 24a9400
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion homu/files/cfg.toml
Expand Up @@ -309,4 +309,4 @@ secret = "{{ pillar["homu"]["gh-webhook-secret"] }}"
context = 'continuous-integration/appveyor/branch'

[db]
file = {{ db }}
file = "{{ db }}"
18 changes: 11 additions & 7 deletions 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 All @@ -50,9 +60,3 @@ homu:
- require:
- pip: homu
- file: /home/servo/homu/cfg.toml
/var/homu:
file.directory:
- user: servo/servo
- group: servo/servo
- dir_mode: 700

0 comments on commit 24a9400

Please sign in to comment.