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
590a5be6
Commit
590a5be6
authored
Nov 29, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the fullstack Vagrantfiles like the devstack
parent
1f4c8404
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
14 deletions
+29
-14
vagrant/base/fullstack/Vagrantfile
+25
-10
vagrant/release/fullstack/Vagrantfile
+4
-4
No files found.
vagrant/base/fullstack/Vagrantfile
View file @
590a5be6
...
...
@@ -5,6 +5,18 @@ VAGRANTFILE_API_VERSION = "2"
MEMORY
=
4096
CPU_COUNT
=
2
# 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.
VERSION_VARS
=
[
'edx_platform_version'
,
'configuration_version'
,
'certs_version'
,
'forum_version'
,
'xqueue_version'
,
'demo_version'
,
]
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
config
.
vm
.
box
=
"precise64"
config
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64.box"
...
...
@@ -31,17 +43,20 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# point Vagrant at the location of your playbook you want to run
ansible
.
playbook
=
"../../../playbooks/vagrant-fullstack.yml"
ansible
.
verbose
=
"vvv"
# set extra-vars here instead of in the vagrant play so that
# Set extra-vars here instead of in the vagrant play so that
# they are written out to /edx/etc/server-vars.yml which can
# be used later when running ansible locally
if
ENV
[
'OPENEDX_RELEASE'
]
ansible
.
extra_vars
=
{
edx_platform_version:
ENV
[
'OPENEDX_RELEASE'
],
certs_version:
ENV
[
'OPENEDX_RELEASE'
],
forum_version:
ENV
[
'OPENEDX_RELEASE'
],
xqueue_version:
ENV
[
'OPENEDX_RELEASE'
],
demo_version:
ENV
[
'OPENEDX_RELEASE'
],
}
# be used later when running ansible locally.
ansible
.
extra_vars
=
{}
VERSION_VARS
.
each
do
|
var
|
if
ENV
[
'OPENEDX_RELEASE'
]
ansible
.
extra_vars
[
var
]
=
ENV
[
'OPENEDX_RELEASE'
]
end
env_var
=
var
.
upcase
if
ENV
[
env_var
]
ansible
.
extra_vars
[
var
]
=
ENV
[
env_var
]
end
end
end
end
vagrant/release/fullstack/Vagrantfile
View file @
590a5be6
...
...
@@ -40,14 +40,14 @@ openedx_releases = {
}
openedx_releases
.
default
=
"eucalyptus-fullstack-2016-09-01"
rel
=
ENV
[
'OPENEDX_RELEASE'
]
openedx_release
=
ENV
[
'OPENEDX_RELEASE'
]
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
reldata
=
openedx_releases
[
rel
]
reldata
=
openedx_releases
[
openedx_release
]
if
Hash
==
reldata
.
class
boxname
=
openedx_releases
[
rel
][
:name
]
boxfile
=
openedx_releases
[
rel
].
fetch
(
:file
,
"
#{
boxname
}
.box"
)
boxname
=
openedx_releases
[
openedx_release
][
:name
]
boxfile
=
openedx_releases
[
openedx_release
].
fetch
(
:file
,
"
#{
boxname
}
.box"
)
else
boxname
=
reldata
boxfile
=
"
#{
boxname
}
.box"
...
...
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