libvirtinator 0.1.3 → 0.1.4
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/lib/libvirtinator/vm.rb +3 -3
- metadata +2 -3
data/lib/libvirtinator/vm.rb
CHANGED
|
@@ -15,7 +15,7 @@ task :status => 'libvirtinator:load_settings' do
|
|
|
15
15
|
else
|
|
16
16
|
info "VM #{fetch(:node_name)} is undefined on #{host}"
|
|
17
17
|
end
|
|
18
|
-
if system "bash -c \"ping -c
|
|
18
|
+
if system "bash -c \"ping -c 5 #{fetch(:ip)} &> /dev/null\""
|
|
19
19
|
begin
|
|
20
20
|
Timeout::timeout(5) do
|
|
21
21
|
(TCPSocket.open(fetch(:ip),22) rescue nil)
|
|
@@ -105,7 +105,7 @@ end
|
|
|
105
105
|
task :ensure_ip_no_ping => 'libvirtinator:load_settings' do
|
|
106
106
|
run_locally do
|
|
107
107
|
info "Attempting to ping #{fetch(:ip)}"
|
|
108
|
-
if system "bash -c \"ping -c
|
|
108
|
+
if system "bash -c \"ping -c 5 #{fetch(:ip)} &> /dev/null\""
|
|
109
109
|
fatal "The IP #{fetch(:ip)} is already pingable!"
|
|
110
110
|
exit
|
|
111
111
|
else
|
|
@@ -348,7 +348,7 @@ task :wait_for_ping => 'libvirtinator:load_settings' do
|
|
|
348
348
|
info "Waiting for VM to respond to ping.."
|
|
349
349
|
begin
|
|
350
350
|
Timeout::timeout(30) do
|
|
351
|
-
until system "bash -c \"ping -c
|
|
351
|
+
until system "bash -c \"ping -c 5 #{fetch(:ip)} &> /dev/null\"" do
|
|
352
352
|
print ' ...'
|
|
353
353
|
end
|
|
354
354
|
info "Ping alive!"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libvirtinator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
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: 2016-02-
|
|
12
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|
|
@@ -78,4 +78,3 @@ signing_key:
|
|
|
78
78
|
specification_version: 3
|
|
79
79
|
summary: Deploy libvirt VMs
|
|
80
80
|
test_files: []
|
|
81
|
-
has_rdoc:
|