Skip to content

Instantly share code, notes, and snippets.

@apex-omontgomery
Created October 11, 2019 21:30
Show Gist options
  • Save apex-omontgomery/de2f2bafee5037596abb8c640c85ff1f to your computer and use it in GitHub Desktop.
Save apex-omontgomery/de2f2bafee5037596abb8c640c85ff1f to your computer and use it in GitHub Desktop.
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