blob: a4298500b4130a8060fddaa90e2d36e990d2c538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# System configuration for Baserock OStree cache server.
#
# Tested against Fedora 26 base image.
---
- hosts: ostree
become: yes
become_user: root
tasks:
- name: ensure system up to date
apt:
upgrade: yes
update_cache: yes
- name: install lvm2 tools
apt:
name: lvm2
- name: lighttpd installed
apt:
name: lighttpd
- name: ostree installed
apt:
name: ostree
- name: pkg-config installed
apt:
name: pkg-config
# We only need BuildStream for the bst-artifact-receive hook, but it's
# easiest to install all the deps
- name: buildstream dep - bubblewrap
apt:
name: bubblewrap
- name: buildstream dep - libcairo2-dev
apt:
name: libcairo2-dev
- name: buildstream dep - libgirepository1.0-dev
apt:
name: libgirepository1.0-dev
- name: buildstream dep - git
apt:
name: git
- name: buildstream dep - python3-pip
apt:
name: python3-pip
- name: buildstream dep - python3-gobject - from pip
pip:
name: PyGObject
version: "3.40.1"
executable: pip3
# - name: buildstream dep - python3-gobject
# apt:
# name: python3-gobject
- name: buildstream sources
git:
dest: /home/{{ ansible_user_id }}/buildstream
repo: https://gitlab.com/buildstream/buildstream
version: 1.1.3
become_user: "{{ ansible_user_id }}"
register: buildstream_source
- name: buildstream installed
command: /usr/bin/pip3 install .
args:
chdir: /home/{{ ansible_user_id }}/buildstream
when: buildstream_source.changed
# We also install ostree-push/receive, which is used for pushing to the
# releases/ repo.
- name: ostree-push/receive sources
git:
dest: /home/{{ ansible_user_id }}/ostree-push
repo: https://github.com/ssssam/ostree-push
version: 9aa82b67325786a810653155b952a17b7ccc436a
become_user: "{{ ansible_user_id }}"
- name: ostree-push/receive installed
command: make PREFIX=/usr/ install
args:
chdir: /home/{{ ansible_user_id }}/ostree-push
creates: /usr/bin/ostree-receive
|