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
12bf9562
Commit
12bf9562
authored
May 01, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some minor ruby role changes
moved creation of /opt/www and www user into ruby role
parent
6789632b
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 @
12bf9562
---
-
name
:
Create 'www' user (replicating historical environment)
user
:
name=www state=present
sudo
:
True
-
name
:
Create 'edx' users group
group
:
name=edx state=present
sudo
:
True
...
...
playbooks/roles/ruby/tasks/main.yml
View file @
12bf9562
#
#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
sudo
:
True
file
:
path=$ruby_base state=directory owner=www group=www
...
...
@@ -73,9 +76,9 @@
sudo
:
true
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
sudo
:
true
-
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 @
12bf9562
export RBENV_ROOT="{{ rbenv_root }}"
export GEM_HOME="{{ gem_home }}"
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