ansible-role-hadoop-cdh/tasks/cdm.yml

20 lines
902 B
YAML

---
- block:
- name: Download the jdbc driver
get_url: url=https://jdbc.postgresql.org/download/postgresql-{{ postgresql_jdbc_driver_version }}.jar dest='{{ cdh_cmf_jdbc_pg_driver }}'
- 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
notify: Restart cloudera-scm-server
tags: [ 'cdh', 'hadoop', 'cdh_m_conf' ]
- name: Install the Cloudera Manager defaults
template: src=cloudera-scm-server.default.j2 dest=/etc/default/cloudera-scm-server owner=root group=root mode='0444'
notify: Restart cloudera-scm-server
tags: [ 'cdh', 'hadoop', 'cdh_conf' ]
- name: Ensure that the cloudera manager daemon is running and enabled
service: name=cloudera-scm-server state=started enabled=yes
tags: [ 'cdh', 'hadoop' ]