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
3f03533e
Commit
3f03533e
authored
Apr 30, 2017
by
UmanShahzad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automate required plugin installation.
parent
a8d2c5a5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
13 deletions
+41
-13
vagrant/.vagrantplugins.rb
+33
-0
vagrant/base/analyticstack/Vagrantfile
+2
-3
vagrant/base/cluster/Vagrantfile
+0
-1
vagrant/base/devstack/Vagrantfile
+2
-3
vagrant/release/analyticstack/Vagrantfile
+2
-3
vagrant/release/devstack/Vagrantfile
+2
-3
No files found.
vagrant/.vagrantplugins.rb
0 → 100644
View file @
3f03533e
# -*- mode: ruby -*-
# vi: set ft=ruby :
def
install_plugins
(
plugins
)
not_installed
=
[]
plugins
.
each
do
|
plugin
|
unless
Vagrant
.
has_plugin?
(
plugin
)
not_installed
<<
plugin
end
end
if
not_installed
.
any?
puts
"The following required plugins must be installed:"
puts
"'
#{
not_installed
.
join
(
"', '"
)
}
'"
print
"Install? [y]/n: "
unless
STDIN
.
gets
.
chomp
==
"n"
not_installed
.
each
{
|
plugin
|
install_plugin
(
plugin
)
}
else
exit
end
$?
?
continue
:
raise
(
'Plugin installation failed, see errors above.'
)
end
end
def
install_plugin
(
plugin
)
system
"vagrant plugin install
#{
plugin
}
"
end
# If plugins successfully installed, restart vagrant to detect changes.
def
continue
exec
"vagrant
#{
ARGV
[
0
]
}
"
end
vagrant/base/analyticstack/Vagrantfile
View file @
3f03533e
Vagrant
.
require_version
">= 1.8.7"
unless
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
raise
"Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
require_relative
'.vagrantplugins'
install_plugins
([
'vagrant-vbguest'
])
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/base/cluster/Vagrantfile
View file @
3f03533e
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/base/devstack/Vagrantfile
View file @
3f03533e
Vagrant
.
require_version
">= 1.8.7"
unless
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
raise
"Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
require_relative
'.vagrantplugins'
install_plugins
([
'vagrant-vbguest'
])
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/release/analyticstack/Vagrantfile
View file @
3f03533e
Vagrant
.
require_version
">= 1.8.7"
unless
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
raise
"Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
require_relative
'.vagrantplugins'
install_plugins
([
'vagrant-vbguest'
])
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/release/devstack/Vagrantfile
View file @
3f03533e
Vagrant
.
require_version
">= 1.8.7"
unless
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
raise
"Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
require_relative
'.vagrantplugins'
install_plugins
([
'vagrant-vbguest'
])
VAGRANTFILE_API_VERSION
=
"2"
...
...
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