Created
March 29, 2018 19:57
-
-
Save exarkun/3b598483a770249df903f6e88949a260 to your computer and use it in GitHub Desktop.
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
configure introducer: | |
file.managed: | |
- name: "/srv/introducer/node/tahoe.cfg" | |
- source: "salt://introducer.cfg.jinja" | |
- user: "introducer" | |
- group: "introducer" | |
- mode: "0644" | |
- template: "jinja" | |
- require: | |
- id: "create introducer" | |
start introducer: | |
cmd.run: | |
- name: "/srv/introducer/virtualenv/bin/tahoe restart /srv/introducer/node" | |
- runas: "introducer" | |
- creates: | |
- "/srv/introducer/node/twistd.pid" | |
- onchanges: | |
# restart the introducer whenever the configuration changes | |
- file: "configure introducer" | |
- require: | |
- id: "configure introducer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment