Page MenuHomeDevCentral

D2140.id5398.diff
No OneTemporary

D2140.id5398.diff

diff --git a/roles/core/init.sls b/roles/core/init.sls
--- a/roles/core/init.sls
+++ b/roles/core/init.sls
@@ -11,6 +11,7 @@
- .login
- .network
- .motd
+ - .src
- .ports
- .rsyslog
- .salt
diff --git a/roles/core/src/init.sls b/roles/core/src/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/core/src/init.sls
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------
+# Extract FreeBSD sources
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2020-01-20
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% if grains['os'] == 'FreeBSD' %}
+
+{% set version = grains['kernelrelease'].split("-")[0] %}
+
+freebsd_src:
+ cmd.run:
+ - name: svnlite checkout https://svn.freebsd.org/base/releng/{{ version }} /usr/src
+ - creates: /usr/src/Makefile
+
+{% endif %}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 20:00 (7 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2312860
Default Alt Text
D2140.id5398.diff (974 B)

Event Timeline