-
-
Save exarkun/d8a71ef2bc025e1a69619b03d202c666 to your computer and use it in GitHub Desktop.
State 'configure introducer' in SLS 'introducer' is not formed as a list
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: | |
user.present: | |
- name: "introducer" | |
- shell: "/bin/false" | |
- home: "/srv/introducer" | |
python2.7: | |
pkg: | |
- "installed" | |
virtualenv: | |
pkg: | |
- "installed" | |
# https://docs.saltstack.com/en/latest/ref/states/all/salt.states.virtualenv_mod.html | |
virtualenv.managed: | |
- name: "/srv/introducer/virtualenv" | |
- require: | |
- pkg: "python2.7" | |
- pkg: "virtualenv" | |
- user: "introducer" | |
- python: "python2.7" | |
- system_site_packages: false | |
- pip_pkgs: | |
- "tahoe-lafs==1.12.1" | |
cmd.run: | |
- name: > | |
/srv/storage/virtualenv/bin/tahoe create-introducer | |
--basedir /srv/introducer/node | |
--location {{ pillar['introducer']['location'] }} | |
--port {{ pillar['introducer']['port'] }} | |
- creates: | |
- "/srv/introducer/node/tahoe.cfg" | |
- "/srv/introducer/node/private" | |
mine.send: | |
- name: "introducer.furl" | |
- func: "file.read" | |
- path: "/srv/introducer/node/introducer.furl" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment