summaryrefslogtreecommitdiff
path: root/baserock_ostree/etc
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-08-30 17:20:40 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-27 15:17:25 +0100
commitb76058177d73b2973c29dcfecfabd8fe1ab9a6d2 (patch)
tree1486f4c713eaf9bdc5a8201d2eb231d6a4241f3d /baserock_ostree/etc
parent6e96e97a39880e07f90eea44e6a0562b20cf802e (diff)
downloadinfrastructure-b76058177d73b2973c29dcfecfabd8fe1ab9a6d2.tar.gz
baserock_ostree: Add 'releases' repo
This is different from the existing 'cache' repo in that we should be careful what we push to it, and we should never delete things from it once they have been made public. Pushing to the releases repo should be done with ostree-push/receive rather than BuildStream. I've set up the receive hook on the server. The upstream repo of ostree-push/receive seems abandoned so I have been using a fork: https://github.com/ssssam/ostree-push See also: https://listmaster.pepperfish.net/pipermail/baserock-dev-baserock.org/2017-September/013811.html https://gitlab.com/baserock/definitions/merge_requests/58
Diffstat (limited to 'baserock_ostree/etc')
-rw-r--r--baserock_ostree/etc/systemd/system/ostree-update-summary-cache.service (renamed from baserock_ostree/etc/systemd/system/ostree-cache-update-summary.service)2
-rw-r--r--baserock_ostree/etc/systemd/system/ostree-update-summary-cache.timer (renamed from baserock_ostree/etc/systemd/system/ostree-cache-update-summary.timer)2
-rw-r--r--baserock_ostree/etc/systemd/system/ostree-update-summary-releases.service11
-rw-r--r--baserock_ostree/etc/systemd/system/ostree-update-summary-releases.timer8
4 files changed, 21 insertions, 2 deletions
diff --git a/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.service b/baserock_ostree/etc/systemd/system/ostree-update-summary-cache.service
index d070aec8..70f4e708 100644
--- a/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.service
+++ b/baserock_ostree/etc/systemd/system/ostree-update-summary-cache.service
@@ -1,5 +1,5 @@
[Unit]
-Description = Update OSTree summary file for cache
+Description = Update OSTree summary files for 'cache' repo
[Service]
Type = oneshot
diff --git a/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.timer b/baserock_ostree/etc/systemd/system/ostree-update-summary-cache.timer
index 0be7bc51..3696b028 100644
--- a/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.timer
+++ b/baserock_ostree/etc/systemd/system/ostree-update-summary-cache.timer
@@ -1,5 +1,5 @@
[Unit]
-Description = Update OSTree summary file for cache
+Description = Update OSTree summary files for 'cache' repo
[Timer]
OnUnitActiveSec = 5min
diff --git a/baserock_ostree/etc/systemd/system/ostree-update-summary-releases.service b/baserock_ostree/etc/systemd/system/ostree-update-summary-releases.service
new file mode 100644
index 00000000..fdb557f1
--- /dev/null
+++ b/baserock_ostree/etc/systemd/system/ostree-update-summary-releases.service
@@ -0,0 +1,11 @@
+[Unit]
+Description = Update OSTree summary files for 'releases' repo
+
+[Service]
+Type = oneshot
+ExecStart = /usr/bin/ostree --repo=/srv/ostree/releases/ summary -u
+User = ostree-releases
+Group = ostree-releases
+
+[Install]
+WantedBy=default.target
diff --git a/baserock_ostree/etc/systemd/system/ostree-update-summary-releases.timer b/baserock_ostree/etc/systemd/system/ostree-update-summary-releases.timer
new file mode 100644
index 00000000..eea6dd5a
--- /dev/null
+++ b/baserock_ostree/etc/systemd/system/ostree-update-summary-releases.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description = Update OSTree summary files for 'releases' repo
+
+[Timer]
+OnUnitActiveSec = 5min
+
+[Install]
+WantedBy = default.target