Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created February 6, 2018 15:40
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/d8a71ef2bc025e1a69619b03d202c666 to your computer and use it in GitHub Desktop.
Save exarkun/d8a71ef2bc025e1a69619b03d202c666 to your computer and use it in GitHub Desktop.
State 'configure introducer' in SLS 'introducer' is not formed as a list
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