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
0c98f08b
Commit
0c98f08b
authored
Aug 16, 2013
by
lapentab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use rbenv role, move items from edxlocal to jenkins that are jenkins specific
parent
b67bf1a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
21 deletions
+14
-21
playbooks/jenkins.yml
+4
-0
playbooks/roles/edxlocal/tasks/main.yml
+2
-21
playbooks/roles/jenkins/tasks/jenkins.yml
+8
-0
No files found.
playbooks/jenkins.yml
View file @
0c98f08b
...
...
@@ -3,6 +3,10 @@
sudo
:
True
gather_facts
:
True
roles
:
-
role
:
rbenv
rbenv_user
:
jenkins
rbenv_user_home
:
/home/jenkins
rbenv_ruby_version
:
1.9.3-p374
-
common
-
edxlocal
-
jenkins
playbooks/roles/edxlocal/tasks/main.yml
View file @
0c98f08b
...
...
@@ -71,24 +71,4 @@
state=present
-
name
:
edxlocal | install edxlocal specific system packages
apt
:
pkg={{','.join(edxlocal_debian_pkgs)}} state=present
-
name
:
Git clone ruby-build
shell
:
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build creates=~/.rbenv/plugins/ruby-build
-
name
:
install ruby-build
shell
:
sh install.sh chdir=~/.rbenv/plugins/ruby-build/
-
name
:
Install ruby version
shell
:
yes n|rbenv install {{ ruby_version }}
ignore_errors
:
yes
-
name
:
Set rbenv version
shell
:
rbenv global {{ ruby_version }}
-
name
:
Install gcli
shell
:
rbenv exec gem install github_cli
# This is done so that it will not report back to github while testing
-
name
:
TEMPORARILY DISABLE gcli
shell
:
echo "#!/bin/bash\necho gcli" > /usr/local/bin/gcli
apt
:
pkg={{','.join(edxlocal_debian_pkgs)}} state=present
\ No newline at end of file
playbooks/roles/jenkins/tasks/jenkins.yml
View file @
0c98f08b
...
...
@@ -2,6 +2,14 @@
-
name
:
Add the jenkins user to the edx group
user
:
name=jenkins append=yes groups="edx"
-
name
:
Install gcli
sudo_user
:
jenkins
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
-
name
:
TEMPORARILY DISABLE gcli
shell
:
echo "#!/bin/bash\necho gcli" > /usr/local/bin/gcli
-
name
:
Install Jenkins
shell
:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
...
...
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