Skip to content

Commit 54c969b

Browse files
committed
added new variables that allow to disable install of some parts (like java, rngd, mysql)
1 parent a4a3d29 commit 54c969b

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

group_vars/all

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ ad_domain: "{{ krb5_realm.lower() }}"
77
computer_ou: ou=Hosts,ou=morhidi,ou=HadoopClusters,ou=morhidi,dc=ad,dc=sec,dc=cloudera,dc=com
88
domain: vpc.cloudera.com
99
kdc: w2k8-1.ad.sec.cloudera.com
10+
11+
cdh_install_java: true
12+
cdh_install_mysql: true
13+
cdh_install_rngd: true
14+
cdh_install_groups_users: true
15+
cdh_install_cluster: true

roles/cm_agents/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22

33
- include: 36322.yml
4+
when: cdh_install_groups_users | default(False)
45

56
- name: Install Cloudera Manager Agents
67
yum: name={{ item }} state=installed

site.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,36 @@
1010
- name: Install rngd
1111
hosts: cdh_servers
1212
roles:
13-
- rngd
13+
- role: rngd
14+
when: cdh_install_rngd
1415
tags: rngd
1516

1617
- name: Install Java
1718
hosts: cdh_servers
1819
roles:
19-
- java
20+
- role: java
21+
when: cdh_install_java
2022
tags: java
2123

2224
- name: Install MariaDB and create databases
2325
hosts: db_server
2426
roles:
25-
- mariadb
27+
- role: mariadb
28+
when: cdh_install_mysql
2629
tags: mysql
2730

2831
- name: Install MySQL Connector
2932
hosts: utility_servers:master_servers
3033
roles:
31-
- mysql_connector
34+
- role: mysql_connector
35+
when: cdh_install_mysql
3236
tags: mysql
3337

3438
- name: Install MIT KDC Server
3539
hosts: krb5_server
3640
roles:
37-
- { role: krb5_server, when: krb5_kdc_type == 'mit' }
41+
- role: krb5_server
42+
when: krb5_kdc_type == 'mit'
3843
tags: krb5
3944

4045
- name: Configure EPEL Repository
@@ -53,11 +58,12 @@
5358
hosts: scm_server
5459
roles:
5560
- scm
56-
tags: cluster_template
61+
tags: cm_server,cluster_template
5762

5863
- name: Install CDH
5964
hosts: scm_server
6065
roles:
61-
- cdh
66+
- role: cdh
67+
when: cdh_install_cluster
6268
tags: cluster_template
6369

0 commit comments

Comments
 (0)