Page MenuHomeDevCentral

D3444.id8897.diff
No OneTemporary

D3444.id8897.diff

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

Mime Type
text/plain
Expires
Sat, Nov 23, 08:33 (17 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256976
Default Alt Text
D3444.id8897.diff (709 B)

Event Timeline