Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.playbook
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
slapos.playbook
Commits
c4b9baad
Commit
c4b9baad
authored
Apr 29, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cloudera setup.
parent
c5456522
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
5 deletions
+49
-5
playbook/imt-vm-cloudera-manager.yml
playbook/imt-vm-cloudera-manager.yml
+1
-1
playbook/roles/vm-bootstrap/tasks/main.yml
playbook/roles/vm-bootstrap/tasks/main.yml
+3
-2
playbook/roles/vm-cloudera-manager/tasks/main.yml
playbook/roles/vm-cloudera-manager/tasks/main.yml
+45
-2
No files found.
playbook/imt-vm-cloudera-manager.yml
View file @
c4b9baad
...
...
@@ -4,5 +4,5 @@
roles
:
-
vm-bootstrap
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
-
ntp
-
vm-cloudera-manager
playbook/roles/vm-bootstrap/tasks/main.yml
View file @
c4b9baad
...
...
@@ -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
playbook/roles/vm-cloudera-manager/tasks/main.yml
View file @
c4b9baad
---
-
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment