Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ cluster_version_cdh_minor: "{{ cluster_version_cdh.split('.')[1] }}"
cluster_version_cm_major: "{{ cluster_version_cm.split('.')[0] }}"
cluster_version_cm_minor: "{{ cluster_version_cm.split('.')[1] }}"

# Helper variables to control parts of the playbook
cluster_install_java: true
cluster_install_krb5_server: true
cluster_install_mysql: true
cluster_install_rngd: true
cluster_install_groups_users: true
cluster_install_cdh: true


cloudera_archive: https://archive.cloudera.com

configs_by_version:
Expand Down
1 change: 1 addition & 0 deletions roles/cm_agents/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- name: Apply temporary workaround for Cloudera Manager issue OPSAPS-36322
include: 36322.yml
when: cluster_install_groups_users | default(false)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw @dbeech is this 'temporary' workaround still needed in the playbook (maybe for older CDH 5.x versions ?).
During my initial tests with CDH 6.2, I had this part ignored, and the deployment worked (at least upto the CM install + configuration)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I don't think this is required any more. The bug listed is 3 years old and wasn't even commonly encountered -- I think the original root cause was that selinux was enabled and this messed up the user creation through CM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, then I propose to get that whole logic out in a future PR
( but keep my addition in for now, assuming you are OK with the rest)


- name: Install Cloudera Manager Agents
yum:
Expand Down
36 changes: 23 additions & 13 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,70 +4,80 @@
- name: Configure Cloudera Manager Repository
hosts: cdh_servers
roles:
- cm_repo
- role: cm_repo
tags: cm_repo

- name: Install rngd
hosts: cdh_servers
roles:
- rngd
- role: rngd
when: cluster_install_rngd
tags: rngd

- name: Install Java
hosts: cdh_servers
roles:
- java
- role: java
when: cluster_install_java
tags: java

- name: Install MariaDB and create databases
hosts: db_server
roles:
- mariadb
- role: mariadb
when: cluster_install_mysql
tags:
- mysql
- mysql_server

- name: Install MySQL Connector
hosts: cdh_servers
roles:
- mysql_connector
- role: mysql_connector
when: cluster_install_mysql
tags:
- mysql
- mysql_client

- name: Install MIT KDC Server
hosts: krb5_server
roles:
- krb5/server
- role: krb5/server
when: cluster_install_krb5_server
tags: krb5

- name: Install MIT KDC Client
hosts: all
roles:
- { role: krb5/client, when: (krb5_kdc_type is defined) and (krb5_kdc_type != 'none') }
- role: krb5/client
when: (krb5_kdc_type is defined) and (krb5_kdc_type != 'none')
tags: krb5

- name: Configure EPEL Repository
hosts: scm_server
roles:
- epel
- role: epel
tags: epel

- name: Install Cloudera Manager Agents
hosts: cdh_servers
roles:
- cm_agents
- role: cm_agents
tags: cm_agents

- name: Install Cloudera Manager Server
hosts: scm_server
roles:
- scm
tags: cluster_template
- role: scm
tags:
- cm_server
- cluster_template

- name: Install CDH
hosts: scm_server
roles:
- role: cdh
when: cluster_install_cdh
tags:
- cdh
tags: cluster_template

- cluster_template