Commit c4b9baad authored by Rafael Monnerat's avatar Rafael Monnerat

Update cloudera setup.

parent c5456522
......@@ -4,5 +4,5 @@
roles:
- vm-bootstrap
- { role: package, package_name: ntp, package_state: present }
- ntp
- vm-cloudera-manager
......@@ -6,7 +6,7 @@
get_url: url=http://10.0.2.100/netconfig.sh dest=/etc/opt/netconfig.sh mode=755
- name: stat /etc/opt/netconfig.sh
stat: /etc/opt/netconfig.sh
stat: path=/etc/opt/netconfig.sh
register: netconfig_file
- name: replace /etc/rc.local
......@@ -14,5 +14,6 @@
when: netconfig_file.stat.exists == True
- name: call netconfig.sh
shell: /etc/opt/netconfig.sh
command: /etc/opt/netconfig.sh
when: netconfig_file.stat.exists == True
ignore_errors: True
---
- name: get CDH repository package
get_url: url=http://archive.cloudera.com/cdh5/one-click-install/wheezy/amd64/cdh5-repository_1.0_all.deb dest=~/cdh5-repository_1.0_all.deb
- name: Download Cloudera
get_url: url=http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin dest=/root/cloudera-manager-installer.bin mode=755
- name: Install CDH repository package
shell: dpkg -i ~/cdh5-repository_1.0_all.deb
- name: get ClouderaManager repo list
get_url: url=http://archive.cloudera.com/cm5/debian/wheezy/amd64/cm/cloudera.list dest=/etc/apt/sources.list.d/cloudera-manager.list
- name: update the repositories
shell: apt-get update
- name: update apt repositories
action: shell apt-get update ; true
- name: install python-apt
raw: "apt-get install -y python-apt"
- name: install sudo
apt: name=sudo state=latest
- name: install tree
apt: name=tree state=latest
- name: install curl
apt: name=curl state=latest
- name: install oracle-j2sdk1.6
apt: name=oracle-j2sdk1.7 state=latest
- name: managing hosts file
action: lineinfile dest=/etc/hosts regexp="^127.0.1.1" line=""
- name: install CM server
apt: name={{ item }} state=latest
with_items:
- cloudera-manager-daemons
- cloudera-manager-server-db
- cloudera-manager-server
- name: start cloudera-manager-server and -db
service: name={{ item }} state=started
with_items:
- cloudera-scm-server-db
- cloudera-scm-server
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment