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
b53aeee4
Commit
b53aeee4
authored
Jul 18, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #167 from edx/feanil/vagrant_updates
Feanil/vagrant updates
parents
65dd9699
4cc20739
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
17 deletions
+15
-17
.gitignore
+1
-0
Vagrantfile
+1
-1
playbooks/edx_jenkins_tests.yml
+1
-1
playbooks/edx_provision_test.yml
+1
-1
playbooks/edx_sandbox.yml
+1
-1
playbooks/group_vars/all
+0
-4
playbooks/roles/common/tasks/create_users.yml
+2
-2
playbooks/roles/edxapp/tasks/deploy.yml
+5
-4
playbooks/vagrant.yml
+2
-2
playbooks/vagrant/inventory.ini
+1
-1
No files found.
.gitignore
View file @
b53aeee4
*.swp
*.pyc
.idea/
.vagrant
Vagrantfile
View file @
b53aeee4
...
...
@@ -5,7 +5,7 @@ Vagrant.configure("2") do |config|
config
.
vm
.
box
=
"precise64"
config
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64.box"
config
.
vm
.
network
:private_network
,
ip:
"192.168.
111.222
"
config
.
vm
.
network
:private_network
,
ip:
"192.168.
33.10
"
config
.
vm
.
provider
:virtualbox
do
|
vb
|
vb
.
customize
[
"modifyvm"
,
:id
,
"--memory"
,
MEMORY
.
to_s
]
...
...
playbooks/edx_jenkins_tests.yml
View file @
b53aeee4
...
...
@@ -4,7 +4,7 @@
gather_facts
:
True
vars
:
migrate_db
:
True
mysql5
_workaround
:
True
openid
_workaround
:
True
ansible_ssh_private_key_file
:
/var/lib/jenkins/continuous-integration.pem
vars_files
:
-
"
{{
secure_dir
}}/vars/edxapp_ref_users.yml"
...
...
playbooks/edx_provision_test.yml
View file @
b53aeee4
...
...
@@ -18,7 +18,7 @@
gather_facts
:
True
vars
:
migrate_db
:
True
mysql5
_workaround
:
True
openid
_workaround
:
True
ansible_ssh_private_key_file
:
/var/lib/jenkins/continuous-integration.pem
vars_files
:
-
"
{{
secure_dir
}}/vars/edxapp_ref_users.yml"
...
...
playbooks/edx_sandbox.yml
View file @
b53aeee4
...
...
@@ -20,7 +20,7 @@
gather_facts
:
True
vars
:
migrate_db
:
True
mysql5
_workaround
:
True
openid
_workaround
:
True
roles
:
-
common
-
nginx
...
...
playbooks/group_vars/all
View file @
b53aeee4
...
...
@@ -14,6 +14,3 @@ secure_dir: 'secure_example'
# this indicates the path to site-specific (with precedence)
# things like nginx template files
local_dir: '../../ansible_local'
# default is not to migrate_db
migrate_db: false
\ No newline at end of file
playbooks/roles/common/tasks/create_users.yml
View file @
b53aeee4
...
...
@@ -26,7 +26,7 @@
-
update
-
name
:
Copying ssh keys for admin users
authorized_key
:
user={{ item.user }} key="{{
lookup('file', item.path)
}}"
authorized_key
:
user={{ item.user }} key="{{
item.path
}}"
with_items
:
admin_keys
when
:
admin_keys is defined
tags
:
...
...
@@ -43,7 +43,7 @@
-
update
-
name
:
Copying ssh keys for env users
authorized_key
:
user={{ item.user }} key="{{
lookup('file', item.path)
}}"
authorized_key
:
user={{ item.user }} key="{{
item.path
}}"
with_items
:
env_keys
when
:
env_keys is defined
tags
:
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
b53aeee4
...
...
@@ -180,15 +180,16 @@
when
:
celery_worker is not defined
# https://code.launchpad.net/~wligtenberg/django-openid-auth/mysql_fix/+merge/22726
# This is necessary for the local mysql5.5, not sure if this fix will ever get merged
# This is necessary for when syncdb is run and the django_openid_auth module is installed,
# not sure if this fix will ever get merged
# We should never do this in production
-
name
:
mysql5.5
workaround - NOT FOR PRODUCTION
-
name
:
openid
workaround - NOT FOR PRODUCTION
shell
:
sed -i -e 's/claimed_id = models.TextField(max_length=2047, unique=True/claimed_id = models.TextField(max_length=2047/' /opt/edx/lib/python2.7/site-packages/django_openid_auth/models.py
when
:
mysql5
_workaround is defined
when
:
openid
_workaround is defined
-
name
:
syncdb and migrate
shell
:
sudo -u www-data SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath=/opt/wwc/edx-platform
when
:
migrate_db
when
:
migrate_db
is defined
tags
:
-
deploy
-
lms
...
...
playbooks/vagrant.yml
View file @
b53aeee4
...
...
@@ -4,12 +4,12 @@
gather_facts
:
True
vars
:
migrate_db
:
True
openid_workaround
:
True
vars_files
:
-
"
group_vars/all"
-
"
{{
secure_dir
}}/vars/edxapp_ref_users.yml"
-
"
{{
secure_dir
}}/vars/edxapp_sandbox.yml"
roles
:
-
common
-
nginx
-
edxlocal
-
edxapp
-
{
role
:
'
edxapp'
,
lms_nginx_port
:
18030
,
lms_xml_nginx_port
:
80
}
playbooks/vagrant/inventory.ini
View file @
b53aeee4
[vagrant]
192.168.
111.222
192.168.
33.10
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