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:
pkg.installed:
- name: runit
- name: {{ runit.pkg }}
runit_service_directory:
file.directory:
- name: /var/service
- name: {{ runit.service_dir }}
- require:
- 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:
- runit.install
runit_runsvdir:
service.running:
- name: runsvdir
- name: {{ runit.service_name }}
- enable: True
- watch:
- 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