Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3746048
D925.id2349.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
977 B
Referenced Files
None
Subscribers
None
D925.id2349.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D925: Provide canonical directories as pillar
Attached
Detach File
Event Timeline
Log In to Comment