mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-28 05:07:54 +01:00
Added functionality to state for salt syndic deamon.
This commit is contained in:
parent
74acda8071
commit
e798b46c8a
@ -25,6 +25,11 @@ Install a minion
|
|||||||
|
|
||||||
Install a master.
|
Install a master.
|
||||||
|
|
||||||
|
``salt.syndic``
|
||||||
|
---------------
|
||||||
|
|
||||||
|
Install a syndic.
|
||||||
|
|
||||||
``Configuration``
|
``Configuration``
|
||||||
-----------------
|
-----------------
|
||||||
Every option available in the templates can be set in pillar. Settings under 'salt' will be overridden by more specific settings under salt['master'] or salt['minion']
|
Every option available in the templates can be set in pillar. Settings under 'salt' will be overridden by more specific settings under salt['master'] or salt['minion']
|
||||||
|
@ -1,20 +1,28 @@
|
|||||||
{% set package_table = {
|
{% set package_table = {
|
||||||
'Debian': {'salt-master': 'salt-master',
|
'Debian': {'salt-master': 'salt-master',
|
||||||
'salt-minion': 'salt-minion'},
|
'salt-minion': 'salt-minion',
|
||||||
|
'salt-syndic': 'salt-syndic'},
|
||||||
'Ubuntu': {'salt-master': 'salt-master',
|
'Ubuntu': {'salt-master': 'salt-master',
|
||||||
'salt-minion': 'salt-minion'},
|
'salt-minion': 'salt-minion',
|
||||||
|
'salt-syndic': 'salt-syndic'},
|
||||||
'CentOS': {'salt-master': 'salt-master',
|
'CentOS': {'salt-master': 'salt-master',
|
||||||
'salt-minion': 'salt-minion'},
|
'salt-minion': 'salt-minion',
|
||||||
|
'salt-syndic': 'salt-syndic'},
|
||||||
'Amazon': {'salt-master': 'salt-master',
|
'Amazon': {'salt-master': 'salt-master',
|
||||||
'salt-minion': 'salt-minion'},
|
'salt-minion': 'salt-minion',
|
||||||
|
'salt-syndic': 'salt-syndic'},
|
||||||
'Fedora': {'salt-master': 'salt-master',
|
'Fedora': {'salt-master': 'salt-master',
|
||||||
'salt-minion': 'salt-minion'},
|
'salt-minion': 'salt-minion',
|
||||||
|
'salt-syndic': 'salt-syndic'},
|
||||||
'RedHat': {'salt-master': 'salt-master',
|
'RedHat': {'salt-master': 'salt-master',
|
||||||
'salt-minion': 'salt-minion'},
|
'salt-minion': 'salt-minion',
|
||||||
|
'salt-syndic': 'salt-syndic'},
|
||||||
'Gentoo': {'salt-master': 'app-admin/salt',
|
'Gentoo': {'salt-master': 'app-admin/salt',
|
||||||
'salt-minion': 'app-admin/salt'},
|
'salt-minion': 'app-admin/salt',
|
||||||
|
'salt-syndic': 'app-admin/salt'},
|
||||||
'Arch': {'salt-master': 'salt',
|
'Arch': {'salt-master': 'salt',
|
||||||
'salt-minion': 'salt'}
|
'salt-minion': 'salt',
|
||||||
|
'salt-syndic': 'salt'}
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
{% if 'package_table' in pillar %}
|
{% if 'package_table' in pillar %}
|
||||||
|
15
salt/syndic.sls
Normal file
15
salt/syndic.sls
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{% from "salt/package-map.jinja" import pkgs with context %}
|
||||||
|
|
||||||
|
include:
|
||||||
|
- salt.master
|
||||||
|
|
||||||
|
salt-syndic:
|
||||||
|
pkg.installed:
|
||||||
|
- name: {{ pkgs['salt-syndic'] }}
|
||||||
|
service:
|
||||||
|
- running
|
||||||
|
- require:
|
||||||
|
- service: salt-master
|
||||||
|
- watch:
|
||||||
|
- pkg: salt-master
|
||||||
|
- file: /etc/salt/master
|
Loading…
Reference in New Issue
Block a user