forked from TOSIT-IO/tdp-getting-started
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-service-start-on-boot-policies.yml
101 lines (88 loc) · 3.2 KB
/
deploy-service-start-on-boot-policies.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
- hosts: localhost
become: yes
gather_facts: no
tasks:
- name: "Apply hadoop-hdfs-namenode service start on boot policy"
delegate_to: "{{ item }}"
service:
name: hadoop-hdfs-namenode
enabled: "{{ hdfs_nn_start_on_boot }}"
loop: "{{ groups['hdfs_nn'] }}"
- name: "Apply hadoop-hdfs-journalnode service start on boot policy"
delegate_to: "{{ item }}"
service:
name: hadoop-hdfs-journalnode
enabled: "{{ hdfs_jn_start_on_boot }}"
loop: "{{ groups['hdfs_jn'] }}"
- name: "Apply hadoop-hdfs-zkfc service start on boot policy"
delegate_to: "{{ item }}"
service:
name: hadoop-hdfs-zkfc
enabled: "{{ hdfs_zkfc_start_on_boot }}"
loop: "{{ groups['hdfs_nn'] }}"
- name: "Apply hadoop-hdfs-datanode service start on boot policy"
delegate_to: "{{ item }}"
service:
name: hadoop-hdfs-datanode
enabled: "{{ hdfs_dn_start_on_boot }}"
loop: "{{ groups['hdfs_dn'] }}"
- name: "Apply zookeeper service start on boot policy"
delegate_to: "{{ item }}"
service:
name: zookeeper
enabled: "{{ zk_start_on_boot }}"
loop: "{{ groups['zk'] }}"
- name: "Apply krb5-kdc service start on boot policy"
delegate_to: "{{ item }}"
service:
name: krb5kdc
enabled: "{{ krb_start_on_boot }}"
loop: "{{ groups['kdc'] }}"
- name: "Apply kadmin service start on boot policy"
delegate_to: "{{ item }}"
service:
name: kadmin
enabled: "{{ krb_start_on_boot }}"
loop: "{{ groups['kdc'] }}"
- name: "Apply hadoop-yarn-resourcemanager service start on boot policy"
delegate_to: "{{ item }}"
service:
name: hadoop-yarn-resourcemanager
enabled: "{{ yarn_rm_start_on_boot }}"
loop: "{{ groups['yarn_rm'] }}"
- name: "Apply hadoop-yarn-nodemanager service start on boot policy"
delegate_to: "{{ item }}"
service:
name: hadoop-yarn-nodemanager
enabled: "{{ yarn_nm_start_on_boot }}"
loop: "{{ groups['yarn_nm'] }}"
- name: "Apply hadoop-yarn-timelineserver service start on boot policy"
delegate_to: "{{ item }}"
service:
name: hadoop-yarn-timelineserver
enabled: "{{ yarn_ts_start_on_boot }}"
loop: "{{ groups['yarn_ats'] }}"
- name: "Apply hive-server2 service start on boot policy"
delegate_to: "{{ item }}"
service:
name: hive-server2
enabled: "{{ hiveserver2_start_on_boot }}"
loop: "{{ groups['hive_s2'] }}"
- name: "Apply ranger-admin service start on boot policy"
delegate_to: "{{ groups['ranger_admin'][0] }}"
service:
name: ranger-admin
enabled: "{{ ranger_admin_start_on_boot }}"
- name: "Apply spark-history-server service start on boot policy"
delegate_to: "{{ item }}"
service:
name: spark-history-server
enabled: "{{ spark_hs_start_on_boot }}"
loop: "{{ groups['spark_hs'] }}"
- name: "Apply systemd service start on boot policies"
delegate_to: "{{ item }}"
service:
name: spark-history-server
enabled: "{{ spark_hs_start_on_boot }}"
loop: "{{ groups['spark_hs'] }}"