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 +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/vagrant-qubes/action.rb +2 -2
- data/lib/vagrant-qubes/command.rb +34 -0
- data/lib/vagrant-qubes/plugin.rb +6 -0
- data/lib/vagrant-qubes/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4f8b3794a78bbcc35388eefcc7f1e7af69737de628c0aa5ff9ac03dfa271375
|
|
4
|
+
data.tar.gz: 575522c25536785be40e3e8ea8341e3e6ad2929e43f7fcef135b09f1c315dbe2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f84c358952fa1676d20e4299043cb746ea78335e836977d26c5baa78fb42910875760e757ce5eaf66011ccf050b2cf7708ff3ccb6148d57beb6fe4ae51951e7
|
|
7
|
+
data.tar.gz: 5ac37ed90b7f02b4e42f76fb142a880fd27e9d01528ccd8890b8c0bcdea79acf91159e3add8ca6e864f81b67ece95ae8fc9b0ce506b92f27ee521b4406e781fc
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Vagrant.configure("2") do |config|
|
|
|
37
37
|
end
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
|
|
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
|
|
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
|
|
data/lib/vagrant-qubes/action.rb
CHANGED
|
@@ -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
|
data/lib/vagrant-qubes/plugin.rb
CHANGED
|
@@ -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'
|
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.
|
|
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
|