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
edx
configuration
Commits
b3f42957
Commit
b3f42957
authored
Aug 05, 2013
by
lapentab
Committed by
Jay Zoldak
Aug 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ansible scripts for the jenkins vagrant box
parent
18b3e053
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
95 additions
and
12 deletions
+95
-12
playbooks/jenkins.yml
+1
-1
playbooks/roles/edxlocal/tasks/main.yml
+61
-4
playbooks/roles/jenkins/tasks/browsers.yml
+31
-7
playbooks/roles/jenkins/tasks/main.yml
+2
-0
No files found.
playbooks/jenkins.yml
View file @
b3f42957
...
...
@@ -5,7 +5,7 @@
vars_files
:
-
"
{{
secure_dir
}}/vars/edxapp_ref_users.yml"
-
"
{{
secure_dir
}}/vars/edxapp_sandbox.yml"
-
"
vars/jenkins
.yml"
-
"
roles/jenkins/vars/main
.yml"
roles
:
-
common
-
edxlocal
...
...
playbooks/roles/edxlocal/tasks/main.yml
View file @
b3f42957
...
...
@@ -4,7 +4,7 @@
# - common/tasks/main.yml
# - nginx/tasks/main.yml
#
# This installs mysql-server-5.5 though
# This installs mysql-server-5.5 though
# in production we use mysql-5.1.62.
#
# We could install from source instead:
...
...
@@ -13,12 +13,12 @@
---
-
name
:
edxlocal | install python-pymongo (req for ansible)
pip
:
name=pymongo
-
name
:
edxlocal | install python-mysqldb (req for ansible)
apt
:
pkg=python-mysqldb state=present
-
name
:
edxlocal | install mysql server and recommends
apt
:
pkg=mysql-server-5.5 state=present install_recommends=yes
apt
:
pkg=mysql-server-5.5 state=present install_recommends=yes
-
name
:
edxlocal | create a database for edxapp
mysql_db
:
>
...
...
@@ -38,7 +38,7 @@
state=present
encoding=utf8
-
name
:
edxlocal | install mongo server and recommends
-
name
:
edxlocal | install mongo server and recommends
apt
:
pkg=mongodb-server state=present install_recommends=yes
-
name
:
edxlocal | stop mongo service
...
...
@@ -72,3 +72,60 @@
-
name
:
edxlocal | install memcached
apt
:
pkg=memcached state=present
-
name
:
Install Ruby-bundler
apt
:
pkg=ruby-bundler
-
name
:
Install rubygems
apt
:
pkg=rubygems
-
name
:
install rbenv
apt
:
pkg=rbenv state=present
-
name
:
Install npm
apt
:
pkg=npm
-
name
:
install libgraphviz-dev
apt
:
pkg=libgraphviz-dev
-
name
:
install gfortran
apt
:
pkg=gfortran
-
name
:
install libopenblas-dev
apt
:
pkg=libopenblas-dev
-
name
:
install liblapack-dev
apt
:
pkg=liblapack-dev
-
name
:
install libxml2-dev
apt
:
pkg=libxml2-dev
-
name
:
Install libgeos
apt
:
pkg=libgeos-dev
-
name
:
Install python-dev
apt
:
pkg=python-dev
-
name
:
Install libmysqlclient-dev
apt
:
pkg=libmysqlclient-dev
-
name
:
Install build-essential for gcli
apt
:
pkg=build-essential state=present
-
name
:
Git clone ruby-build
shell
:
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
-
name
:
install ruby-build
shell
:
sh install.sh chdir=~/.rbenv/plugins/ruby-build/
-
name
:
Install ruby version
shell
:
rbenv install 1.9.3-p362
-
name
:
Set rbenv version
shell
:
rbenv global 1.9.3-p362
-
name
:
Install gcli
shell
:
rbenv exec gem install github_cli
-
name
:
TEMPORARILY DISABLE gcli
shell
:
echo "#!/bin/bash\necho gcli" > /usr/local/bin/gcli
playbooks/roles/jenkins/tasks/browsers.yml
View file @
b3f42957
...
...
@@ -11,12 +11,30 @@
creates=/var/tmp/{{ phantomjs_folder }}
-
name
:
Install PhantomJS
command
:
mv /var/tmp/{{ phantomjs_folder }}
/bin/phantomjs
/usr/local/bin/phantomjs
command
:
mv /var/tmp/{{ phantomjs_folder }} /usr/local/bin/phantomjs
creates=/usr/local/bin/phantomjs
-
name
:
Set PhantomJS permissions
command
:
chmod go+rx /usr/local/bin/phantomjs
-
name
:
Install chrome dependencies
apt
:
pkg=libgconf2-4
-
name
:
Install chrome dependencies 2
apt
:
pkg=libxss1
-
name
:
Install chrome dependencies 3
apt
:
pkg=libnss3-1d
-
name
:
Install chrome dependencies 4
apt
:
pkg=libcurl3
-
name
:
Install chrome dependencies 5
apt
:
pkg=xdg-utils
-
name
:
Install unzip O_o
apt
:
pkg=unzip
-
name
:
Install Google Chrome
command
:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
chdir=/var/tmp
...
...
@@ -29,9 +47,14 @@
-
name
:
Install Google Chrome 3
command
:
apt-get -f -y install
#- name: Install ChromeDriver
# shell: wget --quiet http://chromedriver.googlecode.com/files/chromedriver2_linux64_0.8.zip \
# unzip chromedriver2_linux64_0.8.zip \
# mv chromedriver /usr/local/bin/chromedriver \
# chmod go+rx /usr/local/bin/chromedriver
# chdir=/var/tmp
-
name
:
Install ChromeDriver
shell
:
wget --quiet https://chromedriver.googlecode.com/files/chromedriver_linux64_2.1.zip
-
name
:
Install ChromeDriver 2
shell
:
unzip chromedriver_linux64_2.1.zip
-
name
:
Install ChromeDriver 3
shell
:
mv chromedriver /usr/local/bin/chromedriver
-
name
:
Install Chromedriver 4
shell
:
chmod go+rx /usr/local/bin/chromedriver
\ No newline at end of file
playbooks/roles/jenkins/tasks/main.yml
View file @
b3f42957
---
-
include
:
jenkins.yml
-
include
:
xvfb.yml
-
include
:
browsers.yml
\ No newline at end of file
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