Added small readme

This commit is contained in:
Ari Lerner 2013-06-18 00:18:10 -07:00
parent 3ff270fe9f
commit 91330d170d
2 changed files with 30 additions and 1 deletions

View File

@ -11,4 +11,10 @@ Install a minion
salt.master salt.master
=========== ===========
Install a master Install a master. Every option available in the master template can be set in the pillar file:
salt:
ret_port: 4506
master:
user: saltuser
...

View File

@ -15,3 +15,26 @@ salt-master:
- pkg: salt-minion - pkg: salt-minion
- watch: - watch:
- file: salt-minion - file: salt-minion
configure-salt-master:
file.managed:
- name: /etc/salt/master
- source: salt://salt/templates/master.template
- template: jinja
- user: root
- groupt: root
- mode: 0700
run-salt-master:
cmd.wait:
- name: start salt-master
- watch:
- file: run-salt-master
- require:
- file: configure-salt-master
file.managed:
- name: /etc/init/salt-master
- source: salt://salt/templates/upstart-master.conf
- template: jinja
- defaults:
run_mode: master