Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3764892
D3444.id8881.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
709 B
Referenced Files
None
Subscribers
None
D3444.id8881.diff
View Options
diff --git a/roles/core/userland-software/init.sls b/roles/core/userland-software/init.sls
--- a/roles/core/userland-software/init.sls
+++ b/roles/core/userland-software/init.sls
@@ -17,6 +17,19 @@
file.managed:
- source: salt://roles/core/userland-software/files/Nasqueron.conf
- makedirs: True
+
+git:
+ pkg.installed
+
+ports_tree:
+ cmd.run:
+ - name: |
+ mkdir -p /usr/ports
+ cd /usr/ports && git init --initial-branch=main
+ git remote add origin https://git.FreeBSD.org/ports.git
+ git fetch --all
+ git reset --hard origin/main
+ - creates: /usr/ports/.git
{% endif %}
{% if grains['os_family'] == 'RedHat' and grains['os'] != 'Fedora' %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 09:02 (17 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256976
Default Alt Text
D3444.id8881.diff (709 B)
Attached To
Mode
D3444: Ensure /usr/ports is a Git repository on FreeBSD
Attached
Detach File
Event Timeline
Log In to Comment