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
dd9ddf77
Commit
dd9ddf77
authored
Sep 17, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved data to /mnt/ for more disk space; added to .bashrc to ensure env
variables set correctly
parent
a600c111
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
2 deletions
+31
-2
playbooks/roles/jenkins_worker/tasks/jscover.yml
+6
-0
playbooks/roles/jenkins_worker/tasks/system.yml
+18
-1
playbooks/roles/jenkins_worker/tasks/xvfb.yml
+6
-0
playbooks/roles/jenkins_worker/vars/main.yml
+1
-1
No files found.
playbooks/roles/jenkins_worker/tasks/jscover.yml
View file @
dd9ddf77
...
...
@@ -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'
playbooks/roles/jenkins_worker/tasks/system.yml
View file @
dd9ddf77
---
-
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
playbooks/roles/jenkins_worker/tasks/xvfb.yml
View file @
dd9ddf77
...
...
@@ -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
...
...
playbooks/roles/jenkins_worker/vars/main.yml
View file @
dd9ddf77
---
jenkins_workspace
:
/
op
t/jenkins
jenkins_workspace
:
/
mn
t/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
...
...
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