pkg.installed: | pkg.installed: | ||||
- name: {{ pkgs['salt-master'] }} | - name: {{ pkgs['salt-master'] }} | ||||
file.managed: | file.managed: | ||||
- name: /etc/salt/master.d/master.conf | |||||
- name: {{ pkgs.get('config-path', '/etc/salt') }}/master.d/master.conf | |||||
- template: jinja | - template: jinja | ||||
- source: salt://salt/files/master | - source: salt://salt/files/master | ||||
service.running: | service.running: | ||||
- enable: True | - enable: True | ||||
- name: {{ pkgs.get('master-service', 'salt-master') }} | |||||
- watch: | - watch: | ||||
- pkg: salt-master | - pkg: salt-master | ||||
- file: salt-master | - file: salt-master |
pkg.installed: | pkg.installed: | ||||
- name: {{ pkgs['salt-minion'] }} | - name: {{ pkgs['salt-minion'] }} | ||||
file.managed: | file.managed: | ||||
- name: /etc/salt/minion.d/minion.conf | |||||
- name: {{ pkgs.get('config-path', '/etc/salt') }}/minion.d/minion.conf | |||||
- template: jinja | - template: jinja | ||||
- source: salt://salt/files/minion | - source: salt://salt/files/minion | ||||
service.running: | service.running: | ||||
- enable: True | - enable: True | ||||
- name: {{ pkgs.get('minion-service', 'salt-minion') }} | |||||
- watch: | - watch: | ||||
- pkg: salt-minion | - pkg: salt-minion | ||||
- file: salt-minion | - file: salt-minion |
'FreeBSD': {'salt-master': 'py27-salt', | 'FreeBSD': {'salt-master': 'py27-salt', | ||||
'salt-minion': 'py27-salt', | 'salt-minion': 'py27-salt', | ||||
'salt-syndic': 'py27-salt', | 'salt-syndic': 'py27-salt', | ||||
'salt-cloud': 'py27-salt'} | |||||
'salt-cloud': 'py27-salt', | |||||
'config-path': '/usr/local/etc/salt', | |||||
'minion-service': 'salt_minion', | |||||
'master-service': 'salt_master', | |||||
'syndic-service': 'salt_syndic'} | |||||
} %} | } %} | ||||
{% if 'package_table' in pillar %} | {% if 'package_table' in pillar %} |
service: | service: | ||||
- running | - running | ||||
- require: | - require: | ||||
- service: salt-master | |||||
- service: {{ pkgs.get('syndic-service', 'salt-master') }} | |||||
- watch: | - watch: | ||||
- pkg: salt-master | - pkg: salt-master | ||||
- file: /etc/salt/master | |||||
- file: {{ pkgs.get('config-path', '/etc/salt') }}/master |