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
91357764
Commit
91357764
authored
May 01, 2013
by
jarv
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27 from edx/features/jbau/ruby-playbook
Some minor ruby role changes
parents
c98149ed
12bf9562
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
playbooks/roles/common/tasks/create_users.yml
+0
-3
playbooks/roles/ruby/tasks/main.yml
+5
-2
playbooks/roles/ruby/templates/rbenv.sh.j2
+1
-0
No files found.
playbooks/roles/common/tasks/create_users.yml
View file @
91357764
---
---
-
name
:
Create 'www' user (replicating historical environment)
user
:
name=www state=present
sudo
:
True
-
name
:
Create 'edx' users group
-
name
:
Create 'edx' users group
group
:
name=edx state=present
group
:
name=edx state=present
sudo
:
True
sudo
:
True
...
...
playbooks/roles/ruby/tasks/main.yml
View file @
91357764
#
#
#cribbed from https://github.com/mmoya/ansible-playbooks/blob/master/rbenv/main.yml
#cribbed from https://github.com/mmoya/ansible-playbooks/blob/master/rbenv/main.yml
-
name
:
Create 'www' user (replicating historical environment)
user
:
name=www state=present
sudo
:
True
-
name
:
Create ruby base
-
name
:
Create ruby base
sudo
:
True
sudo
:
True
file
:
path=$ruby_base state=directory owner=www group=www
file
:
path=$ruby_base state=directory owner=www group=www
...
@@ -73,9 +76,9 @@
...
@@ -73,9 +76,9 @@
sudo
:
true
sudo
:
true
when_failed
:
$ruby_installed
when_failed
:
$ruby_installed
-
name
:
gem | gem install bundle
-
name
:
gem | gem install bundle
r
shell
:
RBENV_ROOT=${rbenv_root} GEM_HOME=${gem_home} ${rbenv_root}/shims/gem install bundle chdir=${app_base_dir}/mitx
shell
:
RBENV_ROOT=${rbenv_root} GEM_HOME=${gem_home} ${rbenv_root}/shims/gem install bundle chdir=${app_base_dir}/mitx
sudo
:
true
sudo
:
true
-
name
:
bundle | bundle install
-
name
:
bundle | bundle install
shell
:
RBENV_ROOT=${rbenv_root} GEM_HOME=${gem_home} ${gem_home}/bin/bundle install chdir=${app_base_dir}/mitx
shell
:
RBENV_ROOT=${rbenv_root} GEM_HOME=${gem_home} ${gem_home}/bin/bundle install
--deployment --binstubs
chdir=${app_base_dir}/mitx
playbooks/roles/ruby/templates/rbenv.sh.j2
View file @
91357764
export RBENV_ROOT="{{ rbenv_root }}"
export RBENV_ROOT="{{ rbenv_root }}"
export GEM_HOME="{{ gem_home }}"
eval "$(rbenv init -)"
eval "$(rbenv init -)"
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