Commit 0c98f08b by lapentab

Use rbenv role, move items from edxlocal to jenkins that are jenkins specific

parent b67bf1a8
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- role: rbenv
rbenv_user: jenkins
rbenv_user_home: /home/jenkins
rbenv_ruby_version: 1.9.3-p374
- common - common
- edxlocal - edxlocal
- jenkins - jenkins
...@@ -71,24 +71,4 @@ ...@@ -71,24 +71,4 @@
state=present state=present
- name: edxlocal | install edxlocal specific system packages - name: edxlocal | install edxlocal specific system packages
apt: pkg={{','.join(edxlocal_debian_pkgs)}} state=present apt: pkg={{','.join(edxlocal_debian_pkgs)}} state=present
\ No newline at end of file
- 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
...@@ -2,6 +2,14 @@ ...@@ -2,6 +2,14 @@
- name: Add the jenkins user to the edx group - name: Add the jenkins user to the edx group
user: name=jenkins append=yes groups="edx" 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 - name: 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 -
......
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