Commit b3f42957 by lapentab Committed by Jay Zoldak

Update ansible scripts for the jenkins vagrant box

parent 18b3e053
......@@ -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
......
......@@ -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
......@@ -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
---
- include: jenkins.yml
- include: xvfb.yml
- include: browsers.yml
\ No newline at end of file
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