knife-vagrant 0.0.1 → 0.0.2
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.
- data/README.md +4 -2
- data/lib/chef/knife/vagrant_test.rb +2 -4
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
knife-vagrant
|
2
2
|
========
|
3
|
-
First pass at knife-vagrant, a knife plugin that will create a Vagrant box, then run a set of Chef recipes in it.
|
3
|
+
First pass at knife-vagrant, a knife plugin that will create a Vagrant box, then run a set of Chef recipes in it.
|
4
4
|
|
5
5
|
Requirements
|
6
6
|
-------------------
|
@@ -15,7 +15,9 @@ Installation
|
|
15
15
|
Copy https://github.com/garrettux/knife-vagrant/blob/master/lib/chef/knife/vagrant_test.rb to your .chef/plugins/knife directory.
|
16
16
|
|
17
17
|
#### Gem Install
|
18
|
-
|
18
|
+
knife-vagrant is available on rubygems.org.
|
19
|
+
|
20
|
+
gem install knife-vagrant
|
19
21
|
|
20
22
|
Usage
|
21
23
|
-------------------
|
@@ -78,10 +78,8 @@ module KnifePlugins
|
|
78
78
|
config.vm.forward_port(22, 2222)
|
79
79
|
config.vm.box = "#{config[:box]}"
|
80
80
|
config.vm.host_name = "#{config[:hostname]}"
|
81
|
-
config.vm.customize
|
82
|
-
|
83
|
-
vm.name = "#{config[:box]}"
|
84
|
-
end
|
81
|
+
config.vm.customize [ "modifyvm", :id, "--memory", #{config[:memsize]} ]
|
82
|
+
config.vm.customize [ "modifyvm", :id, "--name", "#{config[:box]}" ]
|
85
83
|
config.vm.box_url = "#{config[:box_url]}"
|
86
84
|
config.vm.provision :chef_client do |chef|
|
87
85
|
chef.chef_server_url = "#{Chef::Config[:chef_server_url]}"
|