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
71570e08
Commit
71570e08
authored
8 years ago
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fullstack is now a native install, in Vagrant
parent
5bc47e50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
17 deletions
+39
-17
vagrant/base/fullstack/Vagrantfile
+19
-9
vagrant/release/fullstack/Vagrantfile
+20
-8
No files found.
vagrant/base/fullstack/Vagrantfile
View file @
71570e08
Vagrant
.
require_version
">= 1.
5.3
"
Vagrant
.
require_version
">= 1.
8.7
"
VAGRANTFILE_API_VERSION
=
"2"
MEMORY
=
4096
CPU_COUNT
=
2
vm_guest_ip
=
"192.168.33.10"
if
ENV
[
"VAGRANT_GUEST_IP"
]
vm_guest_ip
=
ENV
[
"VAGRANT_GUEST_IP"
]
end
# These are versioning variables in the roles. Each can be overridden, first
# with OPENEDX_RELEASE, and then with a specific environment variable of the
# same name but upper-cased.
...
...
@@ -15,19 +20,24 @@ VERSION_VARS = [
'forum_version'
,
'xqueue_version'
,
'demo_version'
,
'NOTIFIER_VERSION'
,
'ECOMMERCE_VERSION'
,
'ECOMMERCE_WORKER_VERSION'
,
'PROGRAMS_VERSION'
,
]
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
config
.
vm
.
box
=
"precise64"
config
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64.box"
# Creates a machine from a base Ubuntu 16.04 image for virtualbox
config
.
vm
.
box
=
"boxcutter/ubuntu1604"
config
.
vm
.
network
:private_network
,
ip:
vm_guest_ip
,
nic_type:
"virtio"
config
.
ssh
.
insert_key
=
true
config
.
vm
.
synced_folder
"."
,
"/vagrant"
,
disabled:
true
config
.
vm
.
network
:private_network
,
ip:
"192.168.33.10"
config
.
vm
.
synced_folder
"."
,
"/vagrant"
,
disabled:
true
config
.
vm
.
provider
:virtualbox
do
|
vb
|
vb
.
customize
[
"modifyvm"
,
:id
,
"--memory"
,
MEMORY
.
to_s
]
# You can adjust this to the amount of CPUs your system has available
vb
.
customize
[
"modifyvm"
,
:id
,
"--cpus"
,
CPU_COUNT
.
to_s
]
# Allow DNS to work for Ubuntu 12.10 host
...
...
@@ -41,8 +51,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config
.
vm
.
provision
:ansible
do
|
ansible
|
# point Vagrant at the location of your playbook you want to run
ansible
.
playbook
=
"../../../playbooks/
vagrant-fullstack
.yml"
ansible
.
verbose
=
"vv
v
"
ansible
.
playbook
=
"../../../playbooks/
edx_sandbox
.yml"
ansible
.
verbose
=
"vv"
# Set extra-vars here instead of in the vagrant play so that
# they are written out to /edx/etc/server-vars.yml which can
...
...
This diff is collapsed.
Click to expand it.
vagrant/release/fullstack/Vagrantfile
View file @
71570e08
Vagrant
.
require_version
">= 1.
5.3
"
Vagrant
.
require_version
">= 1.
8.7
"
VAGRANTFILE_API_VERSION
=
"2"
...
...
@@ -41,15 +41,21 @@ openedx_releases = {
openedx_releases
.
default
=
"eucalyptus-fullstack-2016-09-01"
openedx_release
=
ENV
[
'OPENEDX_RELEASE'
]
boxname
=
ENV
[
'OPENEDX_BOXNAME'
]
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
reldata
=
openedx_releases
[
openedx_release
]
if
Hash
==
reldata
.
class
boxname
=
openedx_releases
[
openedx_release
][
:name
]
boxfile
=
openedx_releases
[
openedx_release
].
fetch
(
:file
,
"
#{
boxname
}
.box"
)
else
boxname
=
reldata
boxfile
=
""
if
not
boxname
reldata
=
openedx_releases
[
openedx_release
]
if
Hash
==
reldata
.
class
boxname
=
openedx_releases
[
openedx_release
][
:name
]
boxfile
=
openedx_releases
[
openedx_release
].
fetch
(
:file
,
""
)
else
boxname
=
reldata
end
end
if
boxfile
==
""
boxfile
=
"
#{
boxname
}
.box"
end
...
...
@@ -58,10 +64,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/
#{
boxfile
}
"
config
.
vm
.
box_check_update
=
false
config
.
vm
.
network
:private_network
,
ip:
"192.168.33.10"
config
.
vm
.
synced_folder
"."
,
"/vagrant"
,
disabled:
true
config
.
ssh
.
insert_key
=
true
config
.
vm
.
network
:private_network
,
ip:
"192.168.33.10"
config
.
hostsupdater
.
aliases
=
[
"preview.localhost"
]
config
.
vm
.
provider
:virtualbox
do
|
vb
|
...
...
@@ -71,5 +77,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Allow DNS to work for Ubuntu 12.10 host
# http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
# Virtio is faster, but the box needs to have support for it. We didn't
# have support in the boxes before Ficus.
if
!
(
boxname
.
include?
(
"dogwood"
)
||
boxname
.
include?
(
"eucalyptus"
))
vb
.
customize
[
'modifyvm'
,
:id
,
'--nictype1'
,
'virtio'
]
end
end
end
This diff is collapsed.
Click to expand it.
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