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
5f0f88bd
Commit
5f0f88bd
authored
Nov 01, 2016
by
Ned Batchelder
Committed by
GitHub
Nov 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3379 from edx/ned/simpler-box-names
Simplify the data table we need to change with each release
parents
d42d8384
df75e0c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
64 deletions
+55
-64
vagrant/release/analyticstack/Vagrantfile
+14
-9
vagrant/release/devstack/Vagrantfile
+22
-32
vagrant/release/fullstack/Vagrantfile
+19
-23
No files found.
vagrant/release/analyticstack/Vagrantfile
View file @
5f0f88bd
...
...
@@ -70,12 +70,8 @@ end
# to a name and a file path, which are used for retrieving
# a Vagrant box from the internet.
openedx_releases
=
{
"open-release/eucalyptus"
=>
{
:name
=>
"eucalyptus-analyticstack-2016-09-04"
,
:file
=>
"eucalyptus-analyticstack-2016-09-04.box"
,
},
"open-release/eucalyptus.2"
=>
{
:name
=>
"eucalyptus-analyticstack-2016-09-04"
,
:file
=>
"eucalyptus-analyticstack-2016-09-04.box"
,
},
"open-release/eucalyptus"
=>
"eucalyptus-analyticstack-2016-09-04"
,
"open-release/eucalyptus.2"
=>
"eucalyptus-analyticstack-2016-09-04"
,
"named-release/dogwood.3"
=>
{
:name
=>
"analyticstack"
,
:file
=>
"dogwood-analyticstack-2016-03-15.box"
,
},
...
...
@@ -90,9 +86,18 @@ rel = ENV['OPENEDX_RELEASE']
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
# Creates an edX analyticstack VM from an official release
config
.
vm
.
box
=
openedx_releases
[
rel
][
:name
]
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/
#{
openedx_releases
[
rel
][
:file
]
}
"
reldata
=
openedx_releases
[
rel
]
if
Hash
==
reldata
.
class
boxname
=
openedx_releases
[
rel
][
:name
]
boxfile
=
openedx_releases
[
rel
].
fetch
(
:file
,
"
#{
boxname
}
.box"
)
else
boxname
=
reldata
boxfile
=
"
#{
boxname
}
.box"
end
# Creates an edX devstack VM from an official release
config
.
vm
.
box
=
boxname
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/
#{
boxfile
}
"
config
.
vm
.
network
:private_network
,
ip:
"192.168.33.10"
...
...
vagrant/release/devstack/Vagrantfile
View file @
5f0f88bd
...
...
@@ -60,54 +60,44 @@ end
# to a name and a file path, which are used for retrieving
# a Vagrant box from the internet.
openedx_releases
=
{
"open-release/eucalyptus.master"
=>
{
:name
=>
"eucalyptus-devstack-2016-09-01"
,
:file
=>
"eucalyptus-devstack-2016-09-01.box"
,
},
"open-release/eucalyptus.1rc2"
=>
{
:name
=>
"eucalyptus-devstack-2016-08-19"
,
:file
=>
"eucalyptus-devstack-2016-08-19.box"
,
},
"open-release/eucalyptus.1"
=>
{
:name
=>
"eucalyptus-devstack-2016-08-19"
,
:file
=>
"eucalyptus-devstack-2016-08-19.box"
,
},
"open-release/eucalyptus.2"
=>
{
:name
=>
"eucalyptus-devstack-2016-09-01"
,
:file
=>
"eucalyptus-devstack-2016-09-01.box"
,
},
# Note: the devstack and fullstack boxes differ, because devstack had an issue
# that needed fixing, but it didn't affect fullstack.
"named-release/dogwood.rc"
=>
{
:name
=>
"dogwood-devstack-2016-03-09"
,
:file
=>
"dogwood-devstack-2016-03-09.box"
,
},
"named-release/dogwood.1"
=>
{
:name
=>
"dogwood-devstack-2016-03-09"
,
:file
=>
"dogwood-devstack-2016-03-09.box"
,
},
"named-release/dogwood.2"
=>
{
:name
=>
"dogwood-devstack-2016-03-09"
,
:file
=>
"dogwood-devstack-2016-03-09.box"
,
},
"named-release/dogwood.3"
=>
{
:name
=>
"dogwood-devstack-2016-03-09"
,
:file
=>
"dogwood-devstack-2016-03-09.box"
,
},
"open-release/eucalyptus.master"
=>
"eucalyptus-devstack-2016-09-01"
,
"open-release/eucalyptus.1rc2"
=>
"eucalyptus-devstack-2016-08-19"
,
"open-release/eucalyptus.1"
=>
"eucalyptus-devstack-2016-08-19"
,
"open-release/eucalyptus.2"
=>
"eucalyptus-devstack-2016-09-01"
,
"named-release/dogwood.rc"
=>
"dogwood-devstack-2016-03-09"
,
"named-release/dogwood.1"
=>
"dogwood-devstack-2016-03-09"
,
"named-release/dogwood.2"
=>
"dogwood-devstack-2016-03-09"
,
"named-release/dogwood.3"
=>
"dogwood-devstack-2016-03-09"
,
"named-release/dogwood"
=>
{
:name
=>
"dogwood-devstack-rc2"
,
:file
=>
"20151221-dogwood-devstack-rc2.box"
,
},
# Cypress is deprecated and unsupported
# "named-release/cypress" => {
# :name => "cypress-devstack",
:file => "cypress-devstack.box",
# :name => "cypress-devstack",
# },
# Birch is deprecated and unsupported
# "named-release/birch.2" => {
# :name => "birch-devstack-2", :file => "birch-2-devstack.box",
# },
}
openedx_releases
.
default
=
{
:name
=>
"eucalyptus-devstack-2016-09-01"
,
:file
=>
"eucalyptus-devstack-2016-09-01.box"
,
}
openedx_releases
.
default
=
"eucalyptus-devstack-2016-09-01"
rel
=
ENV
[
'OPENEDX_RELEASE'
]
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
reldata
=
openedx_releases
[
rel
]
if
Hash
==
reldata
.
class
boxname
=
openedx_releases
[
rel
][
:name
]
boxfile
=
openedx_releases
[
rel
].
fetch
(
:file
,
"
#{
boxname
}
.box"
)
else
boxname
=
reldata
boxfile
=
"
#{
boxname
}
.box"
end
# Creates an edX devstack VM from an official release
config
.
vm
.
box
=
openedx_releases
[
rel
][
:name
]
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/
#{
openedx_releases
[
rel
][
:file
]
}
"
config
.
vm
.
box
=
boxname
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/
#{
boxfile
}
"
config
.
vm
.
network
:private_network
,
ip:
"192.168.33.10"
...
...
vagrant/release/fullstack/Vagrantfile
View file @
5f0f88bd
...
...
@@ -9,23 +9,11 @@ CPU_COUNT = 2
# to a name and a file path, which are used for retrieving
# a Vagrant box from the internet.
openedx_releases
=
{
"open-release/eucalyptus.master"
=>
{
:name
=>
"eucalyptus-fullstack-2016-09-01"
,
:file
=>
"eucalyptus-fullstack-2016-09-01.box"
,
},
"open-release/eucalyptus/1rc1"
=>
{
:name
=>
"eucalyptus-fullstack-1rc1"
,
:file
=>
"eucalyptus-fullstack-2016-08-19.box"
,
},
"open-release/eucalyptus.1rc2"
=>
{
:name
=>
"eucalyptus-fullstack-2016-08-19"
,
:file
=>
"eucalyptus-fullstack-2016-08-19.box"
,
},
"open-release/eucalyptus.1"
=>
{
:name
=>
"eucalyptus-fullstack-2016-08-25"
,
:file
=>
"eucalyptus-fullstack-2016-08-25.box"
,
},
"open-release/eucalyptus.2"
=>
{
:name
=>
"eucalyptus-fullstack-2016-09-01"
,
:file
=>
"eucalyptus-fullstack-2016-09-01.box"
,
},
# Note: the devstack and fullstack boxes differ, because devstack had an issue
# that needed fixing, but it didn't affect fullstack.
"open-release/eucalyptus.master"
=>
"eucalyptus-fullstack-2016-09-01"
,
"open-release/eucalyptus/1rc1"
=>
"eucalyptus-fullstack-1rc1"
,
"open-release/eucalyptus.1rc2"
=>
"eucalyptus-fullstack-2016-08-19"
,
"open-release/eucalyptus.1"
=>
"eucalyptus-fullstack-2016-08-25"
,
"open-release/eucalyptus.2"
=>
"eucalyptus-fullstack-2016-09-01"
,
"named-release/dogwood"
=>
{
:name
=>
"dogwood-fullstack-rc2"
,
:file
=>
"20151221-dogwood-fullstack-rc2.box"
,
},
...
...
@@ -43,23 +31,31 @@ openedx_releases = {
},
# Cypress is deprecated and unsupported
# "named-release/cypress" => {
# :name => "cypress-fullstack",
:file => "cypress-fullstack.box",
# :name => "cypress-fullstack",
# },
# Birch is deprecated and unsupported
# "named-release/birch.2" => {
# :name => "birch-fullstack-2", :file => "birch-2-fullstack.box",
# },
}
openedx_releases
.
default
=
{
:name
=>
"eucalyptus-fullstack-2016-09-01"
,
:file
=>
"eucalyptus-fullstack-2016-09-01.box"
,
}
openedx_releases
.
default
=
"eucalyptus-fullstack-2016-09-01"
rel
=
ENV
[
'OPENEDX_RELEASE'
]
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
reldata
=
openedx_releases
[
rel
]
if
Hash
==
reldata
.
class
boxname
=
openedx_releases
[
rel
][
:name
]
boxfile
=
openedx_releases
[
rel
].
fetch
(
:file
,
"
#{
boxname
}
.box"
)
else
boxname
=
reldata
boxfile
=
"
#{
boxname
}
.box"
end
# Creates an edX fullstack VM from an official release
config
.
vm
.
box
=
openedx_releases
[
rel
][
:name
]
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/
#{
openedx_releases
[
rel
][
:file
]
}
"
config
.
vm
.
box
=
boxname
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/
#{
boxfile
}
"
config
.
vm
.
synced_folder
"."
,
"/vagrant"
,
disabled:
true
config
.
ssh
.
insert_key
=
true
...
...
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