Commit dd9ddf77 by Will Daly

Moved data to /mnt/ for more disk space; added to .bashrc to ensure env

variables set correctly
parent a600c111
......@@ -20,3 +20,9 @@
- name: JSCover | Configure environment variables
template: src=jscover.sh.j2 dest=/etc/profile.d/jscover.sh
owner=root group=root mode=0755
- name: JSCover | Configure bash to load env variables
lineinfile:
dest="{{ jenkins_user_home }}/.bashrc"
regexp='. /etc/profile.d/jscover.sh'
line='. /etc/profile.d/jscover.sh'
---
- name: common | Create jenkins group
- name: jenkins | Create jenkins group
group: name={{ jenkins_group }} state=present
- name: jenkins | Add the jenkins user to the group
user: name={{ jenkins_user }} append=yes group={{ jenkins_group }}
- name: jenkins | ensure .bashrc exists
shell: touch {{ jenkins_user_home }}/.bashrc
sudo_user: "{{ jenkins_user }}"
- name: jenkins | Create .ssh directory
file: path={{ jenkins_user_home }}/.ssh state=directory
owner={{ jenkins_user }} group={{ jenkins_group }}
......@@ -44,3 +48,16 @@
- pkg-config
- unzip
- xml-twig-tools
# Move MongoDB data to /mnt/mongodb to avoid running out of disk space
- name: jenkins | Stop mongo service
service: name=mongodb state=stopped
- name: jenkins | Move mongodb to /mnt
command: mv /var/lib/mongodb /mnt/. creates=/mnt/mongodb
- name: jenkins | Create mongodb symlink
file: src=/mnt/mongodb dest=/var/lib/mongodb state=link
- name: jenkins | Start mongo service
service: name=mongodb state=started
......@@ -5,6 +5,12 @@
- name: xvfb | configure display
template: src=xvfb.sh.j2 dest=/etc/profile.d/xvfb.sh owner=root group=root mode=0755
- name: xvfb | Configure bash to load env variables
lineinfile:
dest="{{ jenkins_user_home }}/.bashrc"
regexp='. /etc/profile.d/xvfb.sh'
line='. /etc/profile.d/xvfb.sh'
- name: xvfb | create xvfb upstart script
template: src=xvfb.conf.j2 dest=/etc/init/xvfb.conf owner=root group=root
......
---
jenkins_workspace: /opt/jenkins
jenkins_workspace: /mnt/jenkins
jenkins_phantomjs_url: https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2
jenkins_phantomjs_archive: phantomjs-1.9.1-linux-x86_64.tar.bz2
jenkins_phantomjs_folder: phantomjs-1.9.1-linux-x86_64
......
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