-
Notifications
You must be signed in to change notification settings - Fork 2
/
playbook.yml
56 lines (48 loc) · 1.27 KB
/
playbook.yml
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
---
- hosts: all
vars:
geometa_path: /home/vagrant/geometa
girder_plugins:
- path: "{{ geometa_path }}"
args: "-f"
girder_virtualenv: /home/vagrant/venvs/girder
girder_web: no
pre_tasks:
- name: Install required system packages
apt:
name: "{{ item }}"
with_items:
- mongodb
- npm
- python2.7-dev
- python-virtualenv
- libgdal-dev
become: yes
- name: Install gdal python bindings
environment:
CPLUS_INCLUDE_PATH: /usr/include/gdal
C_INCLUDE_PATH: /usr/include/gdal
pip:
name: gdal
version: 2.2.3
virtualenv: "{{ girder_virtualenv }}"
- name: Clone girder_geospatial
git:
repo: 'https://github.com/OpenGeoscience/girder_geospatial.git'
dest: "{{ geometa_path }}"
- name: Discover all geometa handlers
find:
paths: "{{ geometa_path }}/types"
file_type: directory
register: geometa_handlers
- name: Install geometa handlers
pip:
name: file://"{{ item.path }}"
virtualenv: "{{ girder_virtualenv }}"
with_items:
- "{{ geometa_handlers.files }}"
roles:
- role: girder.girder
become: yes
post_tasks:
- include: "post_tasks.yml"