salt-formula/salt/api.sls

15 lines
330 B
Plaintext
Raw Normal View History

2015-03-07 23:43:32 +01:00
{% from "salt/map.jinja" import salt with context %}
include:
- salt.master
salt-api:
pkg.installed:
- name: {{ salt['salt-api'] }}
service.running:
- name: {{ salt.get('api-service', 'salt-api') }}
- require:
- service: {{ salt.get('api-service', 'salt-master') }}
- watch:
- pkg: salt-master