Skip to content

Instantly share code, notes, and snippets.

@renoirb
Last active March 15, 2019 17:08
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 renoirb/788885978f7dd504ee66 to your computer and use it in GitHub Desktop.
Save renoirb/788885978f7dd504ee66 to your computer and use it in GitHub Desktop.
Installing SaltStack 2014.7 with etcd
#
# File: /srv/salt/salt/init.sls
#
salt-minion:
pkg:
- installed
service.running:
- enable: True
- reload: True
- require:
- pkg: salt-minion
salt-minion-deps:
pkg.installed:
- names:
- python-pip
- require:
- pkg: salt-minion
# Installing python-etcd from pip, equivalent of.
#
# pip install -i https://pypi.binstar.org/pypi/simple python-etcd
#
# ref:
# - https://binstar.org/pypi/python-etcd
# - http://pip.readthedocs.org/en/latest/reference/pip_install.html
python-etcd:
pip.installed:
- index_url: https://pypi.binstar.org/pypi/simple
- require:
- pkg: python-pip
{% if salt['pillar.get']('infra:salt_testing', false) == True %}
# Make sure you have `/etc/apt/sources.list.d/saltstack-salt-trusty.list`
# with a line `deb http://ppa.launchpad.net/saltstack/salt/ubuntu trusty main`
# in it.
/etc/apt/sources.list.d/saltstack-salt-trusty.list:
file.replace:
- pattern: '\bsalt\/'
- repl: 'salt-testing/'
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment