Page MenuHomeDevCentral

D964.id2462.diff
No OneTemporary

D964.id2462.diff

diff --git a/map.jinja b/map.jinja
--- a/map.jinja
+++ b/map.jinja
@@ -12,3 +12,12 @@
'lib': '/usr/local/lib',
},
}, default='Debian') %}
+
+{% set services = salt['grains.filter_by']({
+ 'Debian': {
+ 'manager': 'systemd',
+ },
+ 'FreeBSD' : {
+ 'manager': 'rc',
+ },
+}, default='Debian') %}
diff --git a/roles/shellserver/odderon/service.sls b/roles/shellserver/odderon/service.sls
--- a/roles/shellserver/odderon/service.sls
+++ b/roles/shellserver/odderon/service.sls
@@ -7,10 +7,14 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+{% from "map.jinja" import services with context %}
+
# -------------------------------------------------------------
# Unit configuration
# -------------------------------------------------------------
+{% if services['manager'] == 'systemd' %}
+
odderon_unit:
file.managed:
- name: /etc/systemd/system/odderon.service
@@ -28,3 +32,5 @@
- enable: true
- watch:
- module: odderon_unit
+
+{% endif %}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 11:33 (19 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247295
Default Alt Text
D964.id2462.diff (1 KB)

Event Timeline