forked from metaspace2020/sm-engine-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sm.yml
58 lines (47 loc) · 1.54 KB
/
sm.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
57
58
---
- name: installing postgres
hosts: sm-vbox
remote_user: ubuntu
become: yes
roles:
- role: postgres
postgres_version: "{{ postgres.postgres_version }}"
- name: installing SM dependencies as miniconda distribution
hosts: sm-vbox
remote_user: ubuntu
roles:
- role: miniconda
miniconda_version: latest
miniconda_python: 2
miniconda_prefix: "{{ miniconda.miniconda_prefix }}"
miniconda_env: "{{ miniconda.miniconda_env }}"
- name: installing spark
hosts: sm-vbox
remote_user: ubuntu
become: yes
roles:
- role: "spark"
spark_version: "{{ spark.spark_version }}"
spark_mirror: "{{ spark.spark_mirror }}"
spark_user: "ubuntu"
spark_user_groups: ["ubuntu"]
spark_src_dir: "/tmp"
spark_conf_dir: "/etc/spark"
spark_usr_parent_dir: "/usr/lib" #this is the folder where the spark archive will be extracted
spark_usr_dir: "{{ spark.spark_home }}" #this is the symlink to the extracted/installed spark
spark_lib_dir: "{{ spark.spark_home }}"
spark_log_dir: "/var/log/spark"
spark_run_dir: "/run/spark"
spark_env_extras: {}
spark_defaults_extras: {}
- name: getting SM code and setting up
hosts: sm-vbox
remote_user: ubuntu
roles:
- role: sm
sm_branch: "{{ sm.sm_branch }}"
postgres_sm_password: "{{ sm.postgres_sm_password }}"
venv: "{{ miniconda.miniconda_prefix }}"
conda_env: "{{ miniconda.miniconda_env.name }}"
spark_home: "{{ spark.spark_home }}"
sm_home: "{{ sm.sm_home }}"