gogetit 0.13.4 → 0.13.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gogetit/config.rb +2 -1
- data/lib/gogetit/version.rb +1 -1
- data/lib/providers/libvirt.rb +9 -1
- data/lib/sample_conf/gogetit.yml +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecee5f77cdc8cbc7f05996c0bb1d3c6d5bb9ba2e
|
4
|
+
data.tar.gz: 85da378bfafe53b0103c6c612efad20c5a965fa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6824600ea5d8dbd167d66a16b8771310aa101734ed8e5fff3a14c8b32e37fe0864091e9d495171880f2eae61e568754eb303b0fd830dab828858bdac38a99506
|
7
|
+
data.tar.gz: ff0abfc9a125b83c658491ff711380ce65d6ca8ec4667aca13b0df626cbd37b5064f6c175a5c0357f81c979c8ec711096b9c57b4ab1bca18dd9e7ea256600214
|
data/lib/gogetit/config.rb
CHANGED
@@ -94,7 +94,7 @@ module Gogetit
|
|
94
94
|
end
|
95
95
|
|
96
96
|
else
|
97
|
-
abort('Please check if LXD is installed.')
|
97
|
+
abort('Please check if LXD is installed properly.')
|
98
98
|
end
|
99
99
|
|
100
100
|
config[:libvirt][:nodes].each do |node|
|
@@ -108,6 +108,7 @@ module Gogetit
|
|
108
108
|
" your workstation."
|
109
109
|
puts "scp -r ~/.ssh ubuntu@#{`hostname -f`.chop!}:~/"
|
110
110
|
abort("Unable to make connection with #{node[:url]}.")
|
111
|
+
require 'pry'; binding.pry
|
111
112
|
end
|
112
113
|
end
|
113
114
|
end
|
data/lib/gogetit/version.rb
CHANGED
data/lib/providers/libvirt.rb
CHANGED
@@ -12,7 +12,15 @@ module Gogetit
|
|
12
12
|
|
13
13
|
def initialize(conf, maas, logger)
|
14
14
|
@config = conf
|
15
|
-
|
15
|
+
|
16
|
+
begin
|
17
|
+
@conn = Libvirt::open(config[:libvirt][:nodes][0][:url])
|
18
|
+
rescue Exception => e
|
19
|
+
puts e
|
20
|
+
abort("Unable to establish connection with"\
|
21
|
+
" #{config[:libvirt][:nodes][0][:url]}")
|
22
|
+
end
|
23
|
+
|
16
24
|
@maas = maas
|
17
25
|
@logger = logger
|
18
26
|
end
|
data/lib/sample_conf/gogetit.yml
CHANGED
@@ -38,10 +38,10 @@ libvirt:
|
|
38
38
|
nodes:
|
39
39
|
-
|
40
40
|
name: kvm01
|
41
|
-
url: qemu+ssh
|
41
|
+
url: qemu+ssh://user@kvm01.example.com/system
|
42
42
|
-
|
43
43
|
name: kvm02
|
44
|
-
url: qemu+ssh
|
44
|
+
url: qemu+ssh://user@kvm02.example.com/system
|
45
45
|
specs:
|
46
46
|
default:
|
47
47
|
vcpu: 1
|