Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10939326
D2139.id5393.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
D2139.id5393.diff
View Options
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
+ - .ports
- .rsyslog
- .salt
- .sshd
diff --git a/roles/core/ports/init.sls b/roles/core/ports/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/core/ports/init.sls
@@ -0,0 +1,22 @@
+# -------------------------------------------------------------
+# Extract FreeBSD ports
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2020-01-20
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% if grains['os'] == 'FreeBSD' %}
+
+/usr/ports:
+ cmd.run:
+ - name: portsnap fetch extract
+ - creates: /usr/ports
+
+compile_login_db:
+ cmd.run:
+ - name: cap_mkdb /etc/login.conf
+ - onchanges:
+ - file: /etc/login.conf
+
+{% endif %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 7, 12:26 (13 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2877631
Default Alt Text
D2139.id5393.diff (977 B)
Attached To
Mode
D2139: Deploy ports tree on FreeBSD servers
Attached
Detach File
Event Timeline
Log In to Comment