Page MenuHomeDevCentral

D925.id2349.diff
No OneTemporary

D925.id2349.diff

diff --git a/pillar/core/dirs.sls b/pillar/core/dirs.sls
new file mode 100644
--- /dev/null
+++ b/pillar/core/dirs.sls
@@ -0,0 +1,20 @@
+# -------------------------------------------------------------
+# Salt — Canonical directories
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-01-23
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+dirs:
+ {% if grains['os_family'] == 'FreeBSD' %}
+ etc: /usr/local/etc
+ bin: /usr/local/bin
+ include: /usr/local/include
+ lib: /usr/local/lib
+ {% elif grains['kernel'] == 'Linux' %}
+ etc: /etc
+ bin: /usr/bin
+ include: /usr/include
+ lib: /usr/lib
+ {% endif %}
diff --git a/pillar/top.sls b/pillar/top.sls
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -8,6 +8,7 @@
base:
'*':
+ - core.dirs
- core.hostnames
eglide:
- users.revokedusers

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 18:17 (20 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247918
Default Alt Text
D925.id2349.diff (977 B)

Event Timeline