summaryrefslogtreecommitdiff
path: root/baserock_ostree/image-config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'baserock_ostree/image-config.yml')
-rw-r--r--baserock_ostree/image-config.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/baserock_ostree/image-config.yml b/baserock_ostree/image-config.yml
new file mode 100644
index 00000000..24e8be9b
--- /dev/null
+++ b/baserock_ostree/image-config.yml
@@ -0,0 +1,54 @@
+# System configuration for Baserock OStree cache server.
+#
+# Tested against Fedora 25 base image.
+---
+- hosts: ostree
+ gather_facts: false
+ sudo: yes
+ tasks:
+ # See: https://fedoramagazine.org/getting-ansible-working-fedora-23/
+ - name: install Python2 and required deps for Ansible modules
+ raw: dnf install -y python2 python2-dnf libselinux-python
+
+ - name: enable persistant journal
+ shell: mkdir /var/log/journal
+ args:
+ creates: /var/log/journal
+
+ - name: ensure system up to date
+ dnf: name=* state=latest
+
+ - name: install lvm2 tools
+ dnf: name=lvm2 state=latest
+
+ - name: lighttpd installed
+ dnf: name=lighttpd state=latest
+
+ - name: ostree installed
+ dnf: name=ostree state=latest
+
+ # We only need BuildStream for the bst-artifact-receive hook, but it's
+ # easiest to install all the deps
+ - name: buildstream dep - bubblewrap
+ dnf: name=bubblewrap state=latest
+ - name: buildstream dep - git
+ dnf: name=git state=latest
+ - name: buildstream dep - python3-gobject
+ dnf: name=python3-gobject state=latest
+ - name: buildstream dep - python3-pip
+ dnf: name=python3-pip state=latest
+
+ - name: buildstream sources
+ git: dest=/home/fedora/buildstream repo=https://gitlab.com/buildstream/buildstream version=dd15b1ba494c4725fd452b6723ff799d1708830c
+
+ - name: buildstream installed
+ command: /usr/bin/pip3 install .
+ args:
+ chdir: /home/fedora/buildstream
+ creates: /usr/bin/bst-artifact-receive
+
+ - name: disable SELinux on subsequent boots
+ selinux: state=disabled
+
+ - name: disable SELinux on current boot
+ command: setenforce 0