Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3783146
D1550.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1550.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1550: Create repository directory and provide build instructions
Attached
Detach File
Event Timeline
Log In to Comment