Page MenuHomeDevCentral

D1550.diff
No OneTemporary

D1550.diff

diff --git a/roles/freebsd-repo/init.sls b/roles/freebsd-repo/init.sls
--- a/roles/freebsd-repo/init.sls
+++ b/roles/freebsd-repo/init.sls
@@ -7,3 +7,4 @@
include:
- .signing-key
+ - .repo
diff --git a/roles/freebsd-repo/map.jinja b/roles/freebsd-repo/map.jinja
--- a/roles/freebsd-repo/map.jinja
+++ b/roles/freebsd-repo/map.jinja
@@ -7,4 +7,5 @@
{% set repo = {
'signing_key_dir': '/usr/local/etc/freebsd-pkg-repo/key',
+ 'repo_dir': '/var/repo'
} %}
diff --git a/roles/freebsd-repo/repo/files/Makefile b/roles/freebsd-repo/repo/files/Makefile
new file mode 100644
--- /dev/null
+++ b/roles/freebsd-repo/repo/files/Makefile
@@ -0,0 +1,33 @@
+# -------------------------------------------------------------
+# FreeBSD repository
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/freebsd-repo/repo/files/Makefile
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+METADATA=digests.txz meta.txz packagesite.txz
+KEY={{ key }}
+
+# -------------------------------------------------------------
+# Main targets
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+all: build-repo
+
+clean:
+ rm -f $(METADATA)
+
+# -------------------------------------------------------------
+# Build targets
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+build-repo:
+ pkg repo . $(KEY)
diff --git a/roles/freebsd-repo/repo/init.sls b/roles/freebsd-repo/repo/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/freebsd-repo/repo/init.sls
@@ -0,0 +1,24 @@
+# -------------------------------------------------------------
+# Salt — FreeBSD repository
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "roles/freebsd-repo/map.jinja" import repo with context %}
+
+# -------------------------------------------------------------
+# Create repository directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{ repo.repo_dir }}:
+ file.directory:
+ - makedirs: True
+ - user: builder
+
+{{ repo.repo_dir }}/Makefile:
+ file.managed:
+ - source: salt://roles/freebsd-repo/repo/files/Makefile
+ - template: jinja
+ - context:
+ key: {{ repo.signing_key_dir }}/repo.key

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 02:18 (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265660
Default Alt Text
D1550.diff (2 KB)

Event Timeline