summaryrefslogtreecommitdiff
path: root/baserock_ostree/etc
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-20 20:29:02 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-21 10:21:33 +0100
commitb7d12bbdfdc5b58fc19dba985a1ffa1e36522ff1 (patch)
treea4b49dc471eaab0d140e74138920dbf849370611 /baserock_ostree/etc
parentdbe1204d2e77192cdece1f75a4db8df40e132ca4 (diff)
downloadinfrastructure-b7d12bbdfdc5b58fc19dba985a1ffa1e36522ff1.tar.gz
baserock_ostree: Update for changes in BuildStreamsam/update-ostree
We now need a timer job to update the summary file, see: https://buildstream.gitlab.io/buildstream/artifacts.html#summary-file-updates I also updated BuildStream which changes the artifact push protocol. Sadly the protocol isn't versioned yet so old versions will now fail to push with weird errors.
Diffstat (limited to 'baserock_ostree/etc')
-rw-r--r--baserock_ostree/etc/systemd/system/ostree-cache-update-summary.service11
-rw-r--r--baserock_ostree/etc/systemd/system/ostree-cache-update-summary.timer8
2 files changed, 19 insertions, 0 deletions
diff --git a/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.service b/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.service
new file mode 100644
index 00000000..d070aec8
--- /dev/null
+++ b/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.service
@@ -0,0 +1,11 @@
+[Unit]
+Description = Update OSTree summary file for cache
+
+[Service]
+Type = oneshot
+ExecStart = /usr/bin/ostree --repo=/srv/ostree/cache/ summary -u
+User = ostree
+Group = ostree
+
+[Install]
+WantedBy=default.target
diff --git a/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.timer b/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.timer
new file mode 100644
index 00000000..0be7bc51
--- /dev/null
+++ b/baserock_ostree/etc/systemd/system/ostree-cache-update-summary.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description = Update OSTree summary file for cache
+
+[Timer]
+OnUnitActiveSec = 5min
+
+[Install]
+WantedBy = default.target