Created
October 5, 2015 12:26
-
-
Save upgradeksh/282e8072502f20efba3f to your computer and use it in GitHub Desktop.
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
#### salt-repo/init.sls | |
saltstack: | |
pkgrepo.managed: | |
- name: saltstack | |
- humanname: SaltStack repo for RHEL/CentOS $releasever | |
- baseurl: https://repo.saltstack.com/yum/rhel$releasever | |
- enabled: 1 | |
- gpgcheck: 1 | |
- gpgkey: file:///etc/pki/rpm-gpg/SALTSTACK-GPG-KEY.pub | |
- require: | |
- file: /etc/pki/rpm-gpg/SALTSTACK-GPG-KEY.pub | |
/etc/pki/rpm-gpg/SALTSTACK-GPG-KEY.pub: | |
file.managed: | |
- source: salt://salt-repo/SALTSTACK-GPG-KEY.pub | |
- user: root | |
- group: root | |
- mode: 644 | |
#### salt-minion/init.sls | |
include: | |
- salt-repo | |
salt-minion: | |
pkg.installed: [] | |
service.running: | |
- require: | |
- pkgrepo: saltstack | |
- watch: | |
- file: /etc/salt/minion | |
/etc/salt/minion: | |
file.managed: | |
- user: root | |
- group: root | |
- mode: 644 | |
- source: salt://salt-minion/minion | |
- require: | |
- pkg: salt-minion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment