Skip to content

Instantly share code, notes, and snippets.

@exarkun
Last active March 30, 2018 18:20
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/6ec057774fe47a85fc8c6127f9353ff2 to your computer and use it in GitHub Desktop.
Save exarkun/6ec057774fe47a85fc8c6127f9353ff2 to your computer and use it in GitHub Desktop.
start storage:
cmd.run:
- name: "/srv/storage/virtualenv/bin/tahoe restart /srv/storage/node"
- runas: "storage"
- onchange:
# restart the storageserver whenever the configuration changes
- file: "configure storage node"
- require:
- id: "create storage node"
- id: "configure storage node"
- id: "permission storage"
- id: "engage storage"
start introducer:
cmd.run:
- name: "/srv/introducer/virtualenv/bin/tahoe restart /srv/introducer/node"
- runas: "introducer"
- onchanges:
# restart the introducer whenever the configuration changes
- file: "configure introducer"
- require:
- id: "configure introducer"
ID: configure storage node
Function: file.managed
Name: /srv/storage/node/tahoe.cfg
Result: True
Comment: File /srv/storage/node/tahoe.cfg is in the correct state
Started: 14:19:12.348512
Duration: 44.632 ms
Changes:
----------
ID: start storage
Function: cmd.run
Name: /srv/storage/virtualenv/bin/tahoe restart /srv/storage/node
Result: True
Comment: Command "/srv/storage/virtualenv/bin/tahoe restart /srv/storage/node" run
Started: 14:19:12.396972
Duration: 1251.864 ms
Changes:
----------
pid:
11751
retcode:
0
stderr:
stdout:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment