Merge remote-tracking branch 'origin/pr/47'
Conflicts: salt/master.sls salt/minion.sls
This commit is contained in:
commit
1682df8592
@ -4,12 +4,13 @@ salt-master:
|
|||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ pkgs['salt-master'] }}
|
- name: {{ pkgs['salt-master'] }}
|
||||||
file.recurse:
|
file.recurse:
|
||||||
- name: /etc/salt/master.d
|
- name: {{ pkgs.get('config-path', '/etc/salt') }}/master.d
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- source: salt://salt/files/master.d
|
- source: salt://salt/files/master.d
|
||||||
- clean: True
|
- clean: True
|
||||||
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
|
||||||
|
@ -4,12 +4,13 @@ salt-minion:
|
|||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ pkgs['salt-minion'] }}
|
- name: {{ pkgs['salt-minion'] }}
|
||||||
file.recurse:
|
file.recurse:
|
||||||
- name: /etc/salt/minion.d
|
- name: {{ pkgs.get('config-path', '/etc/salt') }}/minion.d
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- source: salt://salt/files/minion.d
|
- source: salt://salt/files/minion.d
|
||||||
- clean: True
|
- clean: True
|
||||||
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
|
||||||
|
@ -30,7 +30,15 @@
|
|||||||
'Arch': {'salt-master': 'salt',
|
'Arch': {'salt-master': 'salt',
|
||||||
'salt-minion': 'salt',
|
'salt-minion': 'salt',
|
||||||
'salt-syndic': 'salt',
|
'salt-syndic': 'salt',
|
||||||
'salt-cloud': 'salt'}
|
'salt-cloud': 'salt'},
|
||||||
|
'FreeBSD': {'salt-master': 'py27-salt',
|
||||||
|
'salt-minion': 'py27-salt',
|
||||||
|
'salt-syndic': '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 %}
|
||||||
|
@ -9,7 +9,7 @@ salt-syndic:
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user