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
5998c3f5
Commit
5998c3f5
authored
Jun 10, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update vagrant images to support vmware providers
parent
a429869a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
2 deletions
+50
-2
vagrant/base/devstack/Vagrantfile
+12
-1
vagrant/base/fullstack/Vagrantfile
+9
-0
vagrant/base/test_role/Vagrantfile
+10
-0
vagrant/release/devstack/Vagrantfile
+9
-0
vagrant/release/fullstack/Vagrantfile
+10
-1
No files found.
vagrant/base/devstack/Vagrantfile
View file @
5998c3f5
...
@@ -20,7 +20,7 @@ end
...
@@ -20,7 +20,7 @@ end
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
# Creates a devstack from a base Ubuntu 12.04 image
# Creates a devstack from a base Ubuntu 12.04 image
for virtualbox
config
.
vm
.
box
=
"precise64"
config
.
vm
.
box
=
"precise64"
config
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64.box"
config
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64.box"
...
@@ -51,6 +51,17 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
...
@@ -51,6 +51,17 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
end
end
[
"vmware_fusion"
,
"vmware_workstation"
].
each
do
|
vmware_provider
|
config
.
vm
.
provider
vmware_provider
do
|
v
,
override
|
# Override box url to get vmware one
override
.
vm
.
box
=
"precise64_vmware"
override
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64_vmware.box"
v
.
vmx
[
"memsize"
]
=
MEMORY
.
to_s
v
.
vmx
[
"numvcpus"
]
=
CPU_COUNT
.
to_s
end
end
# Make LC_ALL default to en_US.UTF-8 instead of en_US.
# Make LC_ALL default to en_US.UTF-8 instead of en_US.
# See: https://github.com/mitchellh/vagrant/issues/1188
# See: https://github.com/mitchellh/vagrant/issues/1188
config
.
vm
.
provision
"shell"
,
inline:
'echo \'LC_ALL="en_US.UTF-8"\' > /etc/default/locale'
config
.
vm
.
provision
"shell"
,
inline:
'echo \'LC_ALL="en_US.UTF-8"\' > /etc/default/locale'
...
...
vagrant/base/fullstack/Vagrantfile
View file @
5998c3f5
...
@@ -22,6 +22,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
...
@@ -22,6 +22,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client
# http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
end
end
[
"vmware_fusion"
,
"vmware_workstation"
].
each
do
|
vmware_provider
|
config
.
vm
.
provider
vmware_provider
do
|
v
,
override
|
override
.
vm
.
box
=
"precise64_vmware"
override
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64_vmware.box"
v
.
vmx
[
"memsize"
]
=
MEMORY
.
to_s
v
.
vmx
[
"numvcpus"
]
=
CPU_COUNT
.
to_s
end
end
# Make LC_ALL default to en_US.UTF-8 instead of en_US.
# Make LC_ALL default to en_US.UTF-8 instead of en_US.
# See: https://github.com/mitchellh/vagrant/issues/1188
# See: https://github.com/mitchellh/vagrant/issues/1188
...
...
vagrant/base/test_role/Vagrantfile
View file @
5998c3f5
...
@@ -2,6 +2,7 @@ MEMORY = 2048
...
@@ -2,6 +2,7 @@ MEMORY = 2048
CPU_COUNT
=
2
CPU_COUNT
=
2
Vagrant
.
configure
(
"2"
)
do
|
config
|
Vagrant
.
configure
(
"2"
)
do
|
config
|
config
.
vm
.
box
=
"precise64"
config
.
vm
.
box
=
"precise64"
config
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64.box"
config
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64.box"
...
@@ -19,6 +20,15 @@ Vagrant.configure("2") do |config|
...
@@ -19,6 +20,15 @@ Vagrant.configure("2") do |config|
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
end
end
[
"vmware_fusion"
,
"vmware_workstation"
].
each
do
|
vmware_provider
|
config
.
vm
.
provider
vmware_provider
do
|
v
,
override
|
override
.
vm
.
box
=
"precise64_vmware"
override
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64_vmware.box"
v
.
vmx
[
"memsize"
]
=
MEMORY
.
to_s
v
.
vmx
[
"numvcpus"
]
=
CPU_COUNT
.
to_s
end
end
config
.
vm
.
provision
:ansible
do
|
ansible
|
config
.
vm
.
provision
:ansible
do
|
ansible
|
# point Vagrant at the location of your playbook you want to run
# point Vagrant at the location of your playbook you want to run
ansible
.
playbook
=
"../../../playbooks/run_role.yml"
ansible
.
playbook
=
"../../../playbooks/run_role.yml"
...
...
vagrant/release/devstack/Vagrantfile
View file @
5998c3f5
...
@@ -74,6 +74,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
...
@@ -74,6 +74,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
end
end
[
"vmware_fusion"
,
"vmware_workstation"
].
each
do
|
vmware_provider
|
config
.
vm
.
provider
vmware_provider
do
|
v
,
override
|
override
.
vm
.
box
=
"injera-devstack-vmware"
override
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/20140418-injera-devstack-vmware.box"
v
.
vmx
[
"memsize"
]
=
MEMORY
.
to_s
v
.
vmx
[
"numvcpus"
]
=
CPU_COUNT
.
to_s
end
end
# Use vagrant-vbguest plugin to make sure Guest Additions are in sync
# Use vagrant-vbguest plugin to make sure Guest Additions are in sync
config
.
vbguest
.
auto_reboot
=
true
config
.
vbguest
.
auto_reboot
=
true
config
.
vbguest
.
auto_update
=
true
config
.
vbguest
.
auto_update
=
true
...
...
vagrant/release/fullstack/Vagrantfile
View file @
5998c3f5
...
@@ -10,6 +10,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
...
@@ -10,6 +10,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Creates an edX fullstack VM from an official release
# Creates an edX fullstack VM from an official release
config
.
vm
.
box
=
"injera-fullstack"
config
.
vm
.
box
=
"injera-fullstack"
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/20140418-injera-fullstack.box"
config
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/20140418-injera-fullstack.box"
config
.
vm
.
synced_folder
"."
,
"/vagrant"
,
disabled:
true
config
.
vm
.
synced_folder
"."
,
"/vagrant"
,
disabled:
true
config
.
ssh
.
insert_key
=
true
config
.
ssh
.
insert_key
=
true
...
@@ -24,5 +25,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
...
@@ -24,5 +25,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client
# http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
end
end
[
"vmware_fusion"
,
"vmware_workstation"
].
each
do
|
vmware_provider
|
config
.
vm
.
provider
vmware_provider
do
|
v
,
override
|
override
.
vm
.
box
=
"injera-fullstack-vmware"
override
.
vm
.
box_url
=
"http://files.edx.org/vagrant-images/20140418-injera-fullstack-vmware.box"
v
.
vmx
[
"memsize"
]
=
MEMORY
.
to_s
v
.
vmx
[
"numvcpus"
]
=
CPU_COUNT
.
to_s
end
end
end
end
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