vagrant-xenserver 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 863a12a0d4f0def43d9e81dc02d35aa71d2c2992
4
- data.tar.gz: 72bb9e377c24be9a249c3d23cbe827d9be1c47a4
3
+ metadata.gz: 9ccddd2df09b0bf274e51c62dc9acaa73e8b1388
4
+ data.tar.gz: 97e32f1c89949c5f34221da90720265bfec38d7b
5
5
  SHA512:
6
- metadata.gz: 24a88789435fd29b0f6a9c43bc31275bb4a260a444ccc1c9fd4e6f54c8d4f60d7ef99864aab262feebd229ca77dbf1b631875354c34cd7977869b74ebfe8eaf1
7
- data.tar.gz: aa8d34e7b64708274df83a175c396fc49f44ac2e3e57daabb59e5b839225284362454e62b96074577bc4c92fc48d0408a6f218bbcb6cbde85209a14bc681919c
6
+ metadata.gz: 0f183b2649147ae4f29a34d2da8452338f4f40b27626bd4ead0f4be2305b2448a8c67b0bdf3089e494ca2e240e76f1d04789c05cc32a08531dbd4ff14aa1d174
7
+ data.tar.gz: c79c60e7e0c2d375209b3e5a11d32366386f30d277ab97ce571141a751140453f6101b73bb3d2fa720e55e569efb3ae89247a2f7b732fe1b0a3807e770390305
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.0.14 (27 July 2017)
2
+ * Fix use of snapshots
3
+ * Better error when when the host doesn't have the required PIF
4
+ * No longer require netcat on the target host
5
+
1
6
  # 0.0.8 (8 September 2014)
2
7
 
3
8
  * Correct typos
data/README.md CHANGED
@@ -141,15 +141,8 @@ plugin supports using the 'host internal management network' (HIMN),
141
141
  which is an internal-only network on which a DHCP server runs. Use of
142
142
  this requires additional setup of dom0:
143
143
 
144
- N.B. Currently this will only work on XenServer 6.5 and later:
145
- ```shell
146
- # Install netcat (XenServer 7.0 onwards)
147
- yum install --enablerepo=base,extras -y nc
148
- # Install netcat (XenServer 6.5)
149
- yum install --enablerepo=base,extras --disablerepo=citrix -y nc
150
- ```
151
-
152
- You will also need to copy your ssh key to the Xenserver host:
144
+ N.B. Currently this will only work on XenServer 6.5 and later.
145
+ You will need to copy your ssh key to the Xenserver host:
153
146
 
154
147
  ssh-copy-id root@xenserver
155
148
 
@@ -61,6 +61,10 @@ module VagrantPlugins
61
61
 
62
62
  netrefrec = networks.find { |ref,net| net['bridge']==bridge }
63
63
  (net_ref,net_rec) = netrefrec
64
+ if net_ref.nil? then
65
+ @logger.error("Error finding bridge #{bridge} on host")
66
+ raise Errors::NoHostsAvailable
67
+ end
64
68
 
65
69
  vif_res = create_vif(env, vm_ref, net_ref, mac)
66
70
 
@@ -30,7 +30,7 @@ module VagrantPlugins
30
30
  template = nil
31
31
 
32
32
  Action.getlock.synchronize do
33
- templates = env[:xc].VM.get_all_records_where("field \"is_a_template\"=\"true\"")
33
+ templates = env[:xc].VM.get_all_records_where("field \"is_a_template\"=\"true\" and field \"is_a_snapshot\"=\"false\"")
34
34
  template = templates.detect { |vm,vmr|
35
35
  vmr["other_config"]["box_name"] == box_name &&
36
36
  vmr["other_config"]["box_version"] == box_version
@@ -50,7 +50,7 @@ module VagrantPlugins
50
50
  :forward_x11 => machine.config.ssh.forward_x11,
51
51
  }
52
52
 
53
- ssh_info[:proxy_command] = "ssh '#{machine.provider_config.xs_host}' -l '#{machine.provider_config.xs_username}' nc %h %p"
53
+ ssh_info[:proxy_command] = "ssh '#{machine.provider_config.xs_host}' -l '#{machine.provider_config.xs_username}' -W %h:%p"
54
54
 
55
55
  if not ssh_info[:username]
56
56
  ssh_info[:username] = machine.config.ssh.default.username
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  module XenServer
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-xenserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Ludlam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-26 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake