Browse Source

Fixed merge conflict and rearaged readme.

master
Love Nyberg 10 years ago
parent
commit
6405354299
3 changed files with 30 additions and 2 deletions
  1. +5
    -0
      README.rst
  2. +10
    -2
      salt/package-map.jinja
  3. +15
    -0
      salt/syndic.sls

+ 5
- 0
README.rst View File



Install a master. Install a master.


``salt.syndic``
---------------

Install a syndic.

``salt.cloud`` ``salt.cloud``
--------------- ---------------



+ 10
- 2
salt/package-map.jinja View File

{% 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',
'salt-cloud': 'salt-cloud'}, 'salt-cloud': 'salt-cloud'},
'Ubuntu': {'salt-master': 'salt-master', 'Ubuntu': {'salt-master': 'salt-master',
'salt-minion': 'salt-minion', 'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic',
'salt-cloud': 'salt-cloud'}, 'salt-cloud': 'salt-cloud'},
'CentOS': {'salt-master': 'salt-master', 'CentOS': {'salt-master': 'salt-master',
'salt-minion': 'salt-minion', 'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic',
'salt-cloud': 'salt-cloud'}, 'salt-cloud': 'salt-cloud'},
'Amazon': {'salt-master': 'salt-master', 'Amazon': {'salt-master': 'salt-master',
'salt-minion': 'salt-minion', 'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic',
'salt-cloud': 'salt-cloud'}, 'salt-cloud': 'salt-cloud'},
'Fedora': {'salt-master': 'salt-master', 'Fedora': {'salt-master': 'salt-master',
'salt-minion': 'salt-minion', 'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic',
'salt-cloud': 'salt-cloud'}, 'salt-cloud': 'salt-cloud'},
'RedHat': {'salt-master': 'salt-master', 'RedHat': {'salt-master': 'salt-master',
'salt-minion': 'salt-minion', 'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic',
'salt-cloud': 'salt-cloud'}, 'salt-cloud': 'salt-cloud'},
'Gentoo': {'salt-master': 'app-admin/salt', 'Gentoo': {'salt-master': 'app-admin/salt',
'salt-minion': 'app-admin/salt', 'salt-minion': 'app-admin/salt',
'salt-minion': 'app-admin/salt'},
'salt-syndic': 'app-admin/salt',
'salt-cloud': 'app-admin/salt'},
'Arch': {'salt-master': 'salt', 'Arch': {'salt-master': 'salt',
'salt-minion': 'salt', 'salt-minion': 'salt',
'salt-minion': 'salt'}
'salt-syndic': 'salt',
'salt-cloud': 'salt'}
} %} } %}


{% if 'package_table' in pillar %} {% if 'package_table' in pillar %}

+ 15
- 0
salt/syndic.sls View File

{% 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…
Cancel
Save