Commit ad6b3c91 by lapentab

Fix naming conventions

parent 4f26c25b
--- ---
- name: Install Firefox - name: browsers | Install Firefox
apt: pkg=firefox apt: pkg=firefox
- name: Download PhantomJS - name: browsers | Download PhantomJS
get_url: url={{ jenkins_phantomjs_url }} get_url: url={{ jenkins_phantomjs_url }}
dest=/var/tmp/{{ jenkins_phantomjs_archive }} dest=/var/tmp/{{ jenkins_phantomjs_archive }}
- name: Untar PhantomJS - name: browsers | Untar PhantomJS
command: tar -xjf /var/tmp/{{ jenkins_phantomjs_archive }} -C /var/tmp/ command: tar -xjf /var/tmp/{{ jenkins_phantomjs_archive }} -C /var/tmp/
creates=/var/tmp/{{ jenkins_phantomjs_folder }} creates=/var/tmp/{{ jenkins_phantomjs_folder }}
- name: Install PhantomJS - name: browsers | Install PhantomJS
command: mv /var/tmp/{{ jenkins_phantomjs_folder }} /usr/local/bin/phantomjs command: mv /var/tmp/{{ jenkins_phantomjs_folder }} /usr/local/bin/phantomjs
creates=/usr/local/bin/phantomjs creates=/usr/local/bin/phantomjs
- name: Set PhantomJS permissions - name: browsers | Set PhantomJS permissions
file: path=/usr/local/bin/phantomjs mode=0755 state=directory file: path=/usr/local/bin/phantomjs mode=0755 state=directory
- name: Install chrome dependencies - name: browsers | Install chrome dependencies
apt: pkg=libgconf2-4,libxss1,libnss3-1d,libcurl3,xdg-utils apt: pkg=libgconf2-4,libxss1,libnss3-1d,libcurl3,xdg-utils
- name: Install unzip O_o - name: browsers | Install unzip O_o
apt: pkg=unzip apt: pkg=unzip
- name: Install Google Chrome - name: browsers | Install Google Chrome
get_url: url=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb dest=/var/tmp/google-chrome-stable_current_amd64.deb get_url: url=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb dest=/var/tmp/google-chrome-stable_current_amd64.deb
- name: Install Google Chrome 2 - name: browsers | Install Google Chrome 2
command: dpkg -i google-chrome-stable_current_amd64.deb command: dpkg -i google-chrome-stable_current_amd64.deb
chdir=/var/tmp chdir=/var/tmp
ignore_errors: True ignore_errors: True
- name: Install ChromeDriver - name: browsers | Install ChromeDriver
get_url: url=https://chromedriver.googlecode.com/files/chromedriver_linux64_2.1.zip dest=/var/tmp/chromedriver_linux64_2.1.zip get_url: url=https://chromedriver.googlecode.com/files/chromedriver_linux64_2.1.zip dest=/var/tmp/chromedriver_linux64_2.1.zip
- name: Install ChromeDriver 2 - name: browsers | Install ChromeDriver 2
shell: unzip /var/tmp/chromedriver_linux64_2.1.zip shell: unzip /var/tmp/chromedriver_linux64_2.1.zip
chdir=/var/tmp chdir=/var/tmp
- name: Install ChromeDriver 3 - name: browsers | Install ChromeDriver 3
shell: mv /var/tmp/chromedriver /usr/local/bin/chromedriver shell: mv /var/tmp/chromedriver /usr/local/bin/chromedriver
- name: Install Chromedriver 4 - name: browsers | Install Chromedriver 4
file: path=/usr/local/bin/chromedriver mode=0755 file: path=/usr/local/bin/chromedriver mode=0755
--- ---
- name: Add the jenkins user to the edx group - name: jenkins | Add the jenkins user to the edx group
user: name=jenkins append=yes groups="edx" user: name=jenkins append=yes groups="edx"
- name: edxlocal | install jenkins specific system packages - name: jenkins | install jenkins specific system packages
apt: pkg={{','.join(jenkins_debian_pkgs)}} state=present apt: pkg={{','.join(jenkins_debian_pkgs)}} state=present
- name: Install gcli - name: jenkins | Install gcli
sudo_user: jenkins sudo_user: jenkins
shell: /home/jenkins/.rbenv/bin/rbenv exec gem install github_cli shell: /home/jenkins/.rbenv/bin/rbenv exec gem install github_cli
# This is done so that it will not report back to github while testing # This is done so that it will not report back to github while testing
- name: TEMPORARILY DISABLE gcli - name: jenkins | TEMPORARILY DISABLE gcli
shell: echo "#!/bin/bash\necho gcli" > /usr/local/bin/gcli shell: echo "#!/bin/bash\necho gcli" > /usr/local/bin/gcli
- name: Install Jenkins - name: jenkins | Install Jenkins
shell: wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - shell: wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
- name: Install Jenkins 2 - name: jenkins | Install Jenkins 2
shell: sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' shell: sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
- name: Install Jenkins 3 - name: jenkins | Install Jenkins 3
shell: apt-get update shell: apt-get update
- name: install jenkins 4 - name: jenkins | install jenkins 4
apt: pkg=jenkins state=present apt: pkg=jenkins state=present
- name: Make plugins directory - name: jenkins | Make plugins directory
sudo_user: jenkins sudo_user: jenkins
shell: mkdir -p {{ jenkins_home }}/plugins shell: mkdir -p {{ jenkins_home }}/plugins
- name: Make virtualenv directory - name: jenkins | Make virtualenv directory
shell: mkdir -p /mnt/virtualenvs shell: mkdir -p /mnt/virtualenvs
- name: Chown virtualenv directory - name: jenkins | Chown virtualenv directory
file: path=/mnt/virtualenvs/ state=directory owner=jenkins recurse=yes file: path=/mnt/virtualenvs/ state=directory owner=jenkins recurse=yes
- name: Make pip-cache directory - name: jenkins | Make pip-cache directory
shell: mkdir -p /mnt/pip-cache shell: mkdir -p /mnt/pip-cache
- name: Chown pip-cache directory - name: jenkins | Chown pip-cache directory
file: path=/mnt/pip-cache/ state=directory owner=jenkins recurse=yes file: path=/mnt/pip-cache/ state=directory owner=jenkins recurse=yes
- name: Allow /usr/local/bin to be executable - name: jenkins | Allow /usr/local/bin to be executable
shell: chmod -R go+x /usr/local/bin shell: chmod -R go+x /usr/local/bin
- name: Install Jenkins plugins - name: jenkins | Install Jenkins plugins
sudo_user: jenkins sudo_user: jenkins
get_url: url=http://updates.jenkins-ci.org/latest/${item} get_url: url=http://updates.jenkins-ci.org/latest/${item}
dest={{ jenkins_home }}/plugins/${item} dest={{ jenkins_home }}/plugins/${item}
......
--- ---
- name: Symbolic link site packages - name: python packages | Symbolic link site packages
file: src=/usr/local/lib/python2.7/site-packages dest=/usr/local/lib/python2.7/dist-packages state=link file: src=/usr/local/lib/python2.7/site-packages dest=/usr/local/lib/python2.7/dist-packages state=link
ignore_errors: yes ignore_errors: yes
- name: install numpy - name: python packages | install numpy
shell: pip install numpy==1.6.2 shell: pip install numpy==1.6.2
- name: install scipy - name: python packages | install scipy
shell: pip install scipy==0.11.0 shell: pip install scipy==0.11.0
--- ---
- name: install xvfb - name: xvfb | install xvfb
apt: pkg=xvfb state=present apt: pkg=xvfb state=present
- name: configure display - name: xvfb | configure display
template: src=xvfb.sh.j2 dest=/etc/profile.d/xvfb.sh owner=root group=root mode=0755 template: src=xvfb.sh.j2 dest=/etc/profile.d/xvfb.sh owner=root group=root mode=0755
- name: create xvfb upstart script - name: xvfb | create xvfb upstart script
template: src=xvfb.conf.j2 dest=/etc/init/xvfb.conf owner=root group=root template: src=xvfb.conf.j2 dest=/etc/init/xvfb.conf owner=root group=root
- name: start xvfb - name: xvfb | start xvfb
shell: start xvfb shell: start xvfb
ignore_errors: yes ignore_errors: yes
\ 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