Commit 5db9d852 authored by Julien Cigar's avatar Julien Cigar 🤘
Browse files

add defaults

parent ae528b27
{% from "runit/map.jinja" import runit with context %}
runit_pkg: runit_pkg:
pkg.installed: pkg.installed:
- name: runit - name: {{ runit.pkg }}
runit_service_directory: runit_service_directory:
file.directory: file.directory:
- name: /var/service - name: {{ runit.service_dir }}
- require: - require:
- pkg: runit_pkg - pkg: runit_pkg
{% import_yaml "runit/os.yaml" as osmap %}
{% set runit = salt.grains.filter_by(
osmap,
grain='os',
merge=salt.pillar.get('runit:lookup', {})
) %}
# vim: ts=2 sw=2
FreeBSD:
pkg: runit
service_dir: /var/service
service_name: runsvdir
{% from "runit/map.jinja" import runit with context %}
include: include:
- runit.install - runit.install
runit_runsvdir: runit_runsvdir:
service.running: service.running:
- name: runsvdir - name: {{ runit.service_name }}
- enable: True - enable: True
- watch: - watch:
- pkg: runit_pkg - pkg: runit_pkg
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment