Last active
March 15, 2019 17:08
-
-
Save renoirb/788885978f7dd504ee66 to your computer and use it in GitHub Desktop.
Installing SaltStack 2014.7 with etcd
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
# | |
# 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