/
storm_playbook.yaml
52 lines (39 loc) · 1.18 KB
/
storm_playbook.yaml
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
- hosts: nimbus
become: yes
remote_user: root
gather_facts: no
tasks:
- name: 'copy storm nimbus configuration file'
copy:
src: "./{{ nimbus_yaml }}"
dest: "{{ storm_conf_dir }}/storm.yaml"
# owner: "{{ user }}"
# group: users
mode: 0644
- name: 'creating zookeeper configuration file'
copy:
src: "{{ zookeeper_conf_dir }}/zoo_sample.cfg"
dest: "{{ zookeeper_conf_dir }}/zoo.cfg"
remote_src: yes
- name: 'starting zookeeper'
command: ./zkServer.sh start
args:
chdir: "{{ zookeeper_bin_dir }}"
- name: 'starting nimbus'
shell: "daemon {{ storm_bin_dir }}/storm nimbus"
- name: 'starting ui'
shell: "daemon {{ storm_bin_dir }}/storm ui"
- hosts: supervisor
become: yes
remote_user: root
gather_facts: no
tasks:
- name: 'copy storm supervisor configuratiion file'
copy:
src: "./{{ supervisor_yaml }}"
dest: "{{ storm_conf_dir }}/storm.yaml"
# owner: "{{ user }}"
# group: users
mode: 0644
- name: 'starting supervisor'
shell: "daemon {{ storm_bin_dir }}/storm supervisor"