Bladeren bron

Initial FreeBSD support

tags/v0.57.0
Kevin Bowling 10 jaren geleden
bovenliggende
commit
4675d68bd8
4 gewijzigde bestanden met toevoegingen van 11 en 5 verwijderingen
  1. +2
    -1
      salt/master.sls
  2. +2
    -1
      salt/minion.sls
  3. +5
    -1
      salt/package-map.jinja
  4. +2
    -2
      salt/syndic.sls

+ 2
- 1
salt/master.sls Bestand weergeven

@@ -4,11 +4,12 @@ salt-master:
pkg.installed:
- name: {{ pkgs['salt-master'] }}
file.managed:
- name: /etc/salt/master.d/master.conf
- name: {{ pkgs.get('config-path', '/etc/salt') }}/master.d/master.conf
- template: jinja
- source: salt://salt/files/master
service.running:
- enable: True
- name: {{ pkgs.get('master-service', 'salt-master') }}
- watch:
- pkg: salt-master
- file: salt-master

+ 2
- 1
salt/minion.sls Bestand weergeven

@@ -4,11 +4,12 @@ salt-minion:
pkg.installed:
- name: {{ pkgs['salt-minion'] }}
file.managed:
- name: /etc/salt/minion.d/minion.conf
- name: {{ pkgs.get('config-path', '/etc/salt') }}/minion.d/minion.conf
- template: jinja
- source: salt://salt/files/minion
service.running:
- enable: True
- name: {{ pkgs.get('minion-service', 'salt-minion') }}
- watch:
- pkg: salt-minion
- file: salt-minion

+ 5
- 1
salt/package-map.jinja Bestand weergeven

@@ -34,7 +34,11 @@
'FreeBSD': {'salt-master': 'py27-salt',
'salt-minion': '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 %}

+ 2
- 2
salt/syndic.sls Bestand weergeven

@@ -9,7 +9,7 @@ salt-syndic:
service:
- running
- require:
- service: salt-master
- service: {{ pkgs.get('syndic-service', 'salt-master') }}
- watch:
- pkg: salt-master
- file: /etc/salt/master
- file: {{ pkgs.get('config-path', '/etc/salt') }}/master

Laden…
Annuleren
Opslaan