Created
October 11, 2019 21:30
-
-
Save apex-omontgomery/de2f2bafee5037596abb8c640c85ff1f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
salt-repo: | |
pkgrepo.managed: | |
- humanname: SaltStack Repo | |
- name: deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3 {{ grains['lsb_distrib_codename'] }} main | |
- dist: {{ grains['lsb_distrib_codename'] }} | |
- key_url: https://repo.saltstack.com/py3/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | |
salt-minion: | |
pkg.latest: | |
- name: salt-minion | |
salt-minion-id: | |
file.absent: | |
- name: '/etc/salt/minion_id' | |
salt-config: | |
file.managed: | |
- name: '/etc/salt/minion.d/local.conf' | |
- contents: | | |
master: salt-master | |
id: {{ grains['id'] }} | |
salt-service: | |
service.running: | |
- name: salt-minion | |
- enable: True | |
- watch: | |
- file: '/etc/salt/minion.d/local.conf' | |
- file: '/etc/salt/minion_id' | |
'install required py-git modules': | |
pip.installed: | |
- names: | |
- pygit2 | |
- libgit2 | |
- require: | |
- pkg: python-pip | |
'python-pip is installed': | |
pkg.installed: | |
- name: python-pip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment