vagrant-qubes 0.0.3 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c705377c5a04ced31e884fb0e70dd403b28ec8533808eef7c554b4455768d4a2
4
- data.tar.gz: 62c911e38e6c2d74b895dcae2587b0a87d7038f821b24a50354a5cf9c89f36a0
3
+ metadata.gz: b4f8b3794a78bbcc35388eefcc7f1e7af69737de628c0aa5ff9ac03dfa271375
4
+ data.tar.gz: 575522c25536785be40e3e8ea8341e3e6ad2929e43f7fcef135b09f1c315dbe2
5
5
  SHA512:
6
- metadata.gz: '09261b413e0971e92dd441e96579a50dbe124f3743c637a434d213a7a854e67664ad2efb5afc6ceb47cfb380f48a0563749ea10bdce39be3b66892e59bb2a749'
7
- data.tar.gz: 6e4accb9bf2e3aec656f9e1c9b976b227417b08b69841085c3535aa0e00e8582341067c4963e7d42e0eb01081a7b9301fec8f5763882908707ce2919766a0f07
6
+ metadata.gz: 3f84c358952fa1676d20e4299043cb746ea78335e836977d26c5baa78fb42910875760e757ce5eaf66011ccf050b2cf7708ff3ccb6148d57beb6fe4ae51951e7
7
+ data.tar.gz: 5ac37ed90b7f02b4e42f76fb142a880fd27e9d01528ccd8890b8c0bcdea79acf91159e3add8ca6e864f81b67ece95ae8fc9b0ce506b92f27ee521b4406e781fc
data/.gitignore CHANGED
@@ -7,4 +7,5 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /Vagrantfile
10
- /.vagrant/
10
+ /.vagrant/
11
+ /sync/
data/Gemfile.lock CHANGED
@@ -28,7 +28,7 @@ GIT
28
28
  PATH
29
29
  remote: .
30
30
  specs:
31
- vagrant-qubes (0.0.3)
31
+ vagrant-qubes (0.0.4)
32
32
  i18n (~> 1.0)
33
33
  log4r (~> 1.1)
34
34
 
data/README.md CHANGED
@@ -37,7 +37,7 @@ Vagrant.configure("2") do |config|
37
37
  end
38
38
  ```
39
39
 
40
- Provision etc. does not yet work due to networking configuration needed to enable that.
40
+ Currently, the plugin will insert a firewall rule allowing the NetVM to communicate with the vagrant created machine... this eanbles provision and "vagrant ssh <name>" etc. to work.
41
41
 
42
42
  This is not fully thought through or fully secured, use it at your own risk!
43
43
 
@@ -53,7 +53,7 @@ vagrant plugin install vagrant-qubes
53
53
 
54
54
  There is a lot to do, in no particular order:
55
55
  - Extend to support Standalone VMs/HVMs
56
- - Sort out networking, and therefore provisioning
56
+ - Sort out networking (possibly by an option) so that Vagrant's children can talk to each other
57
57
 
58
58
  ## Contributing
59
59
 
@@ -68,8 +68,8 @@ module VagrantPlugins
68
68
  if env1[:result] == 'True'
69
69
  b1.use ReadState
70
70
  b1.use Provision
71
- #b1.use SyncedFolderCleanup
72
- #b1.use SyncedFolders
71
+ b1.use SyncedFolderCleanup
72
+ b1.use SyncedFolders
73
73
  #b1.use SetHostname
74
74
  end
75
75
  end
@@ -0,0 +1,34 @@
1
+ require 'optparse'
2
+
3
+ module VagrantPlugins
4
+ module Qubes
5
+ class CapAddress < Vagrant.plugin(2, :command)
6
+ def self.synopsis
7
+ "outputs the IP address of a guest."
8
+ end
9
+ def execute
10
+ opts = OptionParser.new do |o|
11
+ o.banner = "Usage: vagrant address [name]"
12
+ end
13
+
14
+ argv = parse_options(opts)
15
+
16
+ # Count total number of vms to print the IP
17
+ totalvms = 0
18
+ with_target_vms(argv) do
19
+ totalvms += 1
20
+ end
21
+
22
+ if argv.length == 1 or totalvms == 1
23
+ with_target_vms(argv, {:single_target=>true}) do |machine|
24
+ machine.action(:address)
25
+ end
26
+ else
27
+ with_target_vms(argv) do |machine|
28
+ machine.action(:address_multi)
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -20,6 +20,12 @@ module VagrantPlugins
20
20
  Provider
21
21
  end
22
22
 
23
+ # Prints the IP address of the guest
24
+ command('address') do
25
+ require_relative 'command'
26
+ CapAddress
27
+ end
28
+
23
29
  # This initializes the internationalization strings.
24
30
  def self.setup_i18n
25
31
  require 'pathname'
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  module Qubes
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  $vagrant_qubes_version = VERSION
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-qubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Pentland
@@ -79,6 +79,7 @@ files:
79
79
  - lib/vagrant-qubes/action/read_ssh_info.rb
80
80
  - lib/vagrant-qubes/action/read_state.rb
81
81
  - lib/vagrant-qubes/action/wait_for_state.rb
82
+ - lib/vagrant-qubes/command.rb
82
83
  - lib/vagrant-qubes/config.rb
83
84
  - lib/vagrant-qubes/errors.rb
84
85
  - lib/vagrant-qubes/plugin.rb