summaryrefslogtreecommitdiff
path: root/baserock_ostree/instance-config.yml
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/instance-config.yml
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/instance-config.yml')
-rw-r--r--baserock_ostree/instance-config.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/baserock_ostree/instance-config.yml b/baserock_ostree/instance-config.yml
index 5286c61b..e3c6d214 100644
--- a/baserock_ostree/instance-config.yml
+++ b/baserock_ostree/instance-config.yml
@@ -39,3 +39,17 @@
- name: restart sshd server
service: name=sshd enabled=yes state=restarted
+
+ - name: install systemd units
+ copy: src=./{{item}} dest=/{{item}}
+ sudo: yes
+ with_items:
+ - etc/systemd/system/ostree-cache-update-summary.service
+ - etc/systemd/system/ostree-cache-update-summary.timer
+
+ - name: enable systemd units
+ systemd: name={{item}} enabled=yes daemon_reload=yes state=started
+ sudo: yes
+ with_items:
+ - ostree-cache-update-summary.service
+ - ostree-cache-update-summary.timer