forked from project-sunbird/sunbird-learning-platform-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lp_samza_deploy.yml
31 lines (27 loc) · 836 Bytes
/
lp_samza_deploy.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
---
- name: "Start Nodemanager on Slaves"
hosts: "yarn-slave"
become: yes
tasks:
- name: Ensure yarn nodemanager is running
become_user: hduser
shell: |
(ps aux | grep yarn-hduser-nodemanager | grep -v grep) || /usr/local/hadoop/sbin/yarn-daemon.sh --config /usr/local/hadoop-{{hadoop_version}}/conf/ start nodemanager || sleep 10
- name: Install mysql client
apt: name=mysql-client state=present
- name: install imagemagick
apt: name=imagemagick state=present update_cache=yes
- name: "Copy Samza jobs additional configuration to slaves"
become: yes
hosts: "yarn-slave"
roles:
- samza-jobs-additional-config
- name: "Deploy Samza jobs"
hosts: "yarn-master"
become: yes
vars_files:
- "{{ secrets_path }}"
vars:
deploy_jobs: true
roles:
- samza-jobs