42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
---
|
|
- block:
|
|
- name: apt key for the Cloudera Manager repository
|
|
apt_key: url='{{ cdh_ubuntu_repo_key }}' state=present
|
|
|
|
- name: Disable the signature check, because the signature is too old
|
|
copy: src=apt-99cloudera dest=/etc/apt/apt.conf.d/99cloudera owner=root mode='0644'
|
|
when: cdh_major_version <= 5
|
|
|
|
- name: Install the Cloudera CDH packages repository
|
|
apt_repository: repo='{{ cdh_ubuntu_packages_repo }}' update_cache=yes
|
|
|
|
- name: Install the CDH Manager server
|
|
apt: pkg=cloudera-manager-server state=present update_cache=yes cache_valid_time=1800
|
|
|
|
- name: Install the CDH Manager daemons
|
|
apt: pkg=cloudera-manager-daemons state=present update_cache=yes cache_valid_time=1800
|
|
|
|
- name: Install the Cloudera Manager DB configuration
|
|
template: src=db.properties.j2 dest=/etc/cloudera-scm-server/db.properties mode=0640 owner=cloudera-scm group=cloudera-scm
|
|
tags: [ 'cdh', 'hadoop', 'cdh_m_conf' ]
|
|
|
|
- name: Ensure that the cloudera manager daemon is running and enabled
|
|
service: name=cloudera-scm-server state=restarted enabled=yes
|
|
|
|
when:
|
|
- cdh_manager_install
|
|
- ansible_distribution_file_variety == "Debian"
|
|
tags: [ 'cdh', 'hadoop' ]
|
|
|
|
- block:
|
|
- name: Install the Postgresql client
|
|
apt: pkg=postgresql-client state=latest update_cache=yes cache_valid_time=1800
|
|
when: ansible_distribution_file_variety == "Debian"
|
|
|
|
- name: Download the jdbc driver
|
|
get_url: url=https://jdbc.postgresql.org/download/postgresql-{{ postgresql_jdbc_driver_version }}.jar dest=/srv/postgresql.jar
|
|
|
|
when:
|
|
- cdh_manager_install
|
|
tags: [ 'cdh', 'hadoop', 'cdh_manager', 'cdh_pg' ]
|
|
|