Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
904e07ae
Commit
904e07ae
authored
Jul 08, 2013
by
Will Daly
Committed by
Jay Zoldak
Aug 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented Java Runtime installation
parent
cee17cb2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
3 deletions
+37
-3
playbooks/roles/jenkins/tasks/java.yml
+29
-0
playbooks/roles/jenkins/tasks/main.yml
+2
-0
playbooks/roles/jenkins/tasks/xvfb.yml
+0
-3
playbooks/vars/jenkins.yml
+6
-0
No files found.
playbooks/roles/jenkins/tasks/java.yml
0 → 100644
View file @
904e07ae
---
-
name
:
Install httplib2
pip
:
name=httplib2
-
name
:
Create JDK dir
command
:
mkdir -p {{ jdk_root }}
-
name
:
Download Java
uri
:
url={{ jdk_download_url }}
creates=/var/tmp/{{ jdk_archive }}
dest=/var/tmp
HEADER_Cookie={{ jdk_cookie_header }}
-
name
:
Unpack Java
command
:
tar zxvf /var/tmp/{{ jdk_archive }} -C {{jdk_root}}
creates={{ jdk_root }}/{{ jdk_folder }}
register
:
jdk_installed
-
name
:
Install java command
command
:
update-alternatives --install
/usr/bin/java java
{{ jdk_root }}/{{ jdk_folder }}/bin/java 1
only_if
:
${jdk_installed.changed}
-
name
:
Install jar command
command
:
update-alternatives --install
/usr/bin/jar jar
{{ jdk_root }}/{{ jdk_folder }}/bin/jar 1
only_if
:
${jdk_installed.changed}
playbooks/roles/jenkins/tasks/main.yml
View file @
904e07ae
---
-
-
include
:
java.yml
-
include
:
xvfb.yml
playbooks/roles/jenkins/tasks/xvfb.yml
View file @
904e07ae
---
-
name
:
install xvfb
sudo
:
True
apt
:
pkg=xvfb state=present
-
name
:
configure display
sudo
:
True
template
:
src=xvfb.sh.j2 dest=/etc/profile.d/xvfb.sh owner=root group=root mode=0755
-
name
:
create xvfb upstart script
sudo
:
True
template
:
src=xvfb.conf.j2 dest=/etc/init/xvfb.conf owner=root group=root
notify
:
-
start xvfb
playbooks/vars/jenkins.yml
0 → 100644
View file @
904e07ae
---
jdk_root
:
/usr/local/jdk
jdk_cookie_header
:
"
gpw_e24=http%3A%2F%2Fwww.oracle.com"
jdk_download_url
:
http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.tar.gz
jdk_archive
:
jdk-7u25-linux-x64.tar.gz
jdk_folder
:
jdk1.7.0_25
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