Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
salt-formulas
runit-formula
Commits
5db9d852
Commit
5db9d852
authored
May 05, 2020
by
Julien Cigar
🤘
Browse files
add defaults
parent
ae528b27
Changes
4
Hide whitespace changes
Inline
Side-by-side
runit/install.sls
View file @
5db9d852
{% 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
runit/map.jinja
0 → 100644
View file @
5db9d852
{% import_yaml "runit/os.yaml" as osmap %}
{% set runit = salt.grains.filter_by(
osmap,
grain='os',
merge=salt.pillar.get('runit:lookup', {})
) %}
runit/os.yaml
0 → 100644
View file @
5db9d852
# vim: ts=2 sw=2
FreeBSD
:
pkg
:
runit
service_dir
:
/var/service
service_name
:
runsvdir
runit/service.sls
View file @
5db9d852
{% 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment