Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created March 29, 2018 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/3b598483a770249df903f6e88949a260 to your computer and use it in GitHub Desktop.
Save exarkun/3b598483a770249df903f6e88949a260 to your computer and use it in GitHub Desktop.
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