tvd-vagrant 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.16
|
@@ -2,12 +2,22 @@ require "vagrant-aws"
|
|
2
2
|
|
3
3
|
Vagrant.configure("2") do |config|
|
4
4
|
config.vm.box = "<%= node[:vagrant][:box] %>"
|
5
|
-
<% if node[:vagrant][:provision] && node[:vagrant][:provision][:shell] %>
|
6
|
-
config.vm.provision :shell, :path => "<%= node[:vagrant][:provision][:shell][:path] %>"
|
7
|
-
<% end %>
|
8
5
|
|
6
|
+
<% if node[:vagrant][:ssh_username] %>
|
9
7
|
config.ssh.username = "<%= node[:vagrant][:ssh_username] %>"
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% if node[:vagrant][:ssh_private_key_path] %>
|
10
11
|
config.ssh.private_key_path = "<%= node[:vagrant][:ssh_private_key_path] %>"
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% if node[:vagrant][:provision] && node[:vagrant][:provision][:shell] %>
|
15
|
+
config.vm.provision :shell,
|
16
|
+
:path => "<%= node[:vagrant][:provision][:shell][:path] %>",
|
17
|
+
:args => "<%= node[:vagrant][:provision][:shell][:args] %>"
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
config.vm.synced_folder ".", "/vagrant", :id => "vagrant-root", :disabled => true
|
11
21
|
|
12
22
|
config.vm.provider :aws do |aws|
|
13
23
|
aws.keypair_name = "<%= node[:vagrant][:keypair_name] %>"
|
@@ -2,16 +2,26 @@ require "vagrant-shell"
|
|
2
2
|
|
3
3
|
Vagrant.configure("2") do |config|
|
4
4
|
config.vm.box = "<%= node[:vagrant][:box] %>"
|
5
|
+
|
6
|
+
<% if node[:vagrant][:ssh_username] %>
|
7
|
+
config.ssh.username = "<%= node[:vagrant][:ssh_username] %>"
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% if node[:vagrant][:ssh_private_key_path] %>
|
11
|
+
config.ssh.private_key_path = "<%= node[:vagrant][:ssh_private_key_path] %>"
|
12
|
+
<% end %>
|
13
|
+
|
5
14
|
<% if node[:vagrant][:provision] && node[:vagrant][:provision][:shell] %>
|
6
|
-
config.vm.provision :shell,
|
15
|
+
config.vm.provision :shell,
|
16
|
+
:path => "<%= node[:vagrant][:provision][:shell][:path] %>",
|
17
|
+
:args => "<%= node[:vagrant][:provision][:shell][:args] %>"
|
7
18
|
<% end %>
|
8
19
|
|
9
|
-
config.ssh.username = "<%= node[:vagrant][:ssh_username] %>"
|
10
20
|
config.vm.synced_folder ".", "/vagrant", :id => "vagrant-root", :disabled => true
|
11
21
|
|
12
22
|
config.vm.provider :shell do |shell|
|
13
|
-
shell.script =
|
14
|
-
shell.run_args =
|
23
|
+
shell.script = "<%= node[:vagrant][:shell_script] %>"
|
24
|
+
shell.run_args = "<%= node[:vagrant][:shell_args] %>"
|
15
25
|
end
|
16
26
|
end
|
17
27
|
|
@@ -1,11 +1,25 @@
|
|
1
1
|
Vagrant.configure("2") do |config|
|
2
2
|
config.vm.box = "<%= node[:vagrant][:box] %>"
|
3
|
-
|
3
|
+
|
4
|
+
<% if node[:vagrant][:ssh_username] %>
|
5
|
+
config.ssh.username = "<%= node[:vagrant][:ssh_username] %>"
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<% if node[:vagrant][:ssh_private_key_path] %>
|
9
|
+
config.ssh.private_key_path = "<%= node[:vagrant][:ssh_private_key_path] %>"
|
10
|
+
<% end %>
|
11
|
+
|
4
12
|
<% if node[:vagrant][:provision] && node[:vagrant][:provision][:shell] %>
|
5
13
|
config.vm.provision :shell,
|
6
14
|
:path => "<%= node[:vagrant][:provision][:shell][:path] %>",
|
7
15
|
:args => "<%= node[:vagrant][:provision][:shell][:args] %>"
|
8
16
|
<% end %>
|
17
|
+
|
18
|
+
config.vm.synced_folder ".", "/vagrant", :id => "vagrant-root", :disabled => true
|
19
|
+
|
20
|
+
config.vm.provider :virtualbox do |virtualbox, override|
|
21
|
+
override.vm.base_mac = "<%= node[:vagrant][:base_mac] %>"
|
22
|
+
end
|
9
23
|
end
|
10
24
|
|
11
25
|
# vi: set ft=ruby :
|