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

29 lines
1.3 KiB
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: Comment the CsrfRefererInterceptor because it blocks the reverse proxy
lineinfile:
path: '/usr/share/cmf/webapp/WEB-INF/spring/mvc-config.xml'
state: absent # not required. choices: absent;present. Whether the line should be there or not.
regexp: '<bean class="com.cloudera.server.web.cmf.csrf.CsrfRefererInterceptor" />'
- 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
- name: Start and enable the scm agent
service: name=cloudera-scm-agent state=started enabled=yes
tags: [ 'cdh', 'hadoop' ]