nise-bosh-vagrant 0.2 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,6 +24,7 @@ EOS
|
|
|
24
24
|
opt :nise, "Path to nise-bosh if you don't wish to pull HEAD of master from GitHub", :type => :string
|
|
25
25
|
opt :install, "Run install script after preparing the VM"
|
|
26
26
|
opt :start, "Start all jobs after installing them (implies --install)"
|
|
27
|
+
opt :memory, "Amount of memory to allocate to the VM in MB", :type => :integer, :default => 512
|
|
27
28
|
end
|
|
28
29
|
|
|
29
30
|
Trollop::die :manifest, "must provide a manifest file" if opts[:manifest].nil?
|
|
@@ -6,7 +6,8 @@ require 'fileutils'
|
|
|
6
6
|
module NiseBOSHVagrant
|
|
7
7
|
class Runner
|
|
8
8
|
|
|
9
|
-
attr_reader :release_path, :nise_path, :scripts_path, :vagrantfile_path, :manifest_file, :manifest_copy_path, :install_script_path,
|
|
9
|
+
attr_reader :release_path, :nise_path, :scripts_path, :vagrantfile_path, :manifest_file, :manifest_copy_path, :install_script_path,
|
|
10
|
+
:manifest_copy_name, :install_script_copy_name, :memory
|
|
10
11
|
|
|
11
12
|
def initialize(opts)
|
|
12
13
|
opts[:nise].nil? ? @nise_path = nil : @nise_path = opts[:nise]
|
|
@@ -14,6 +15,7 @@ module NiseBOSHVagrant
|
|
|
14
15
|
@vagrantfile_path = File.join(@release_path, "Vagrantfile")
|
|
15
16
|
@scripts_path = File.join(File.dirname(File.expand_path(__FILE__)), "../../scripts")
|
|
16
17
|
@manifest_file = opts[:manifest]
|
|
18
|
+
@memory = opts[:memory]
|
|
17
19
|
|
|
18
20
|
@manifest_copy_name = '.nise-bosh-manifest.yml'
|
|
19
21
|
@install_script_copy_name = '.nise-bosh-install.sh'
|
data/resources/Vagrantfile.erb
CHANGED
|
@@ -5,6 +5,10 @@ Vagrant.configure("2") do |config|
|
|
|
5
5
|
config.vm.box = "lucid64"
|
|
6
6
|
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
|
|
7
7
|
|
|
8
|
+
config.vm.provider :virtualbox do |v, override|
|
|
9
|
+
v.customize ["modifyvm", :id, "--memory", "<%= @memory %>"]
|
|
10
|
+
end
|
|
11
|
+
|
|
8
12
|
config.vm.network :private_network, ip: "192.168.10.10"
|
|
9
13
|
|
|
10
14
|
<% if not @nise_path.nil? %>config.vm.synced_folder "<%= @nise_path %>", "/home/vagrant/nise_bosh"<% end %>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nise-bosh-vagrant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.3'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-05-
|
|
12
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: trollop
|
|
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
65
65
|
version: '0'
|
|
66
66
|
segments:
|
|
67
67
|
- 0
|
|
68
|
-
hash:
|
|
68
|
+
hash: -1866514652364241547
|
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
none: false
|
|
71
71
|
requirements:
|