vagrant-skytap 0.1.11 → 0.2.0
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/.byebug_history +242 -19
- data/CHANGELOG.md +9 -0
- data/README.md +30 -8
- data/Vagrantfile.rej +83 -0
- data/_patches-20160112/0 +388 -0
- data/_patches-20160112/1 +82 -0
- data/_patches-20160112/2 +239 -0
- data/_patches-20160112/COMPLETED-ABOVE-THIS-LINE +4 -0
- data/_patches-20160112/COMPLETED-BELOW-THIS-LINE +4 -0
- data/_patches-20160112/CR-ABOVE-THIS-LINE +4 -0
- data/_patches-20160112/CR-BELOW-THIS-LINE +4 -0
- data/_patches-20160112/WIP-ABOVE-THIS-LINE +4 -0
- data/_patches-20160112/WIP-BELOW-THIS-LINE +4 -0
- data/_patches-20160112/acceptance-test-runner +29 -0
- data/_patches-20160112/ansible-1 +92 -0
- data/_patches-20160112/cache-api-client-in-up +40 -0
- data/_patches-20160112/dead-code-in-actions +44 -0
- data/_patches-20160112/debug-changes +42 -0
- data/_patches-20160112/demo-rails-app +1276 -0
- data/_patches-20160112/eng-10166-halt-spec +40 -0
- data/_patches-20160112/eng-10256 +527 -0
- data/_patches-20160112/eng-10256-2 +162 -0
- data/_patches-20160112/eng-10256-ubuntu-testing +88 -0
- data/_patches-20160112/eng-10269-test-stuff +87 -0
- data/_patches-20160112/eng-10269-wtf +119 -0
- data/_patches-20160112/eng-10369 +143 -0
- data/_patches-20160112/eng-10369-tmp +60 -0
- data/_patches-20160112/eng-10919 +56 -0
- data/_patches-20160112/eng-11177-fix-actions-requires +44 -0
- data/_patches-20160112/eng-11442 +4 -0
- data/_patches-20160112/eng-11616 +403 -0
- data/_patches-20160112/eng-11616-2 +67 -0
- data/_patches-20160112/eng-11616-actual +184 -0
- data/_patches-20160112/eng-11625a +4 -0
- data/_patches-20160112/eng-11711 +85 -0
- data/_patches-20160112/eng-12232-command-spec +236 -0
- data/_patches-20160112/eng-12235 +83 -0
- data/_patches-20160112/eng-12235-override-refactor +140 -0
- data/_patches-20160112/eng-12240 +103 -0
- data/_patches-20160112/eng-12249 +40 -0
- data/_patches-20160112/eng-12301 +50 -0
- data/_patches-20160112/eng-12843 +95 -0
- data/_patches-20160112/env-source +112 -0
- data/_patches-20160112/frickin-vagrant-spec +163 -0
- data/_patches-20160112/gem-pre-version +14 -0
- data/_patches-20160112/gems-old +9 -0
- data/_patches-20160112/googles-specs +713 -0
- data/_patches-20160112/local-configs-ignore +61 -0
- data/_patches-20160112/misc +79 -0
- data/_patches-20160112/network-unreachable +31 -0
- data/_patches-20160112/new-boxfile +288 -0
- data/_patches-20160112/parallelization-maybe +198 -0
- data/_patches-20160112/read-state +23 -0
- data/_patches-20160112/refactor-to-use-public_address-cap +25 -0
- data/_patches-20160112/series +60 -0
- data/_patches-20160112/status +12 -0
- data/_patches-20160112/test-move-env-data +231 -0
- data/_patches-20160112/test-vagrantfile-vm1 +167 -0
- data/_patches-20160112/the_version_in_0.1.13.pre1 +598 -0
- data/_patches-20160112/vagrant-spec-mock-api +137 -0
- data/_patches-20160112/vagrant-vmware-plugin +233 -0
- data/_patches-20160112/vagrantfile +403 -0
- data/_patches-20160112/vagrantfile-for-acceptance-tests +29 -0
- data/_patches-20160112/vagrantfile-for-nick +95 -0
- data/_patches-20160112/vagrantfiles-to-forget-what-they-are-for +134 -0
- data/_patches-20160112/vm-vanished +42 -0
- data/_patches-20160112a/01 +148 -0
- data/_patches-20160112a/2 +239 -0
- data/_patches-20160112a/COMPLETED-ABOVE-THIS-LINE +4 -0
- data/_patches-20160112a/COMPLETED-BELOW-THIS-LINE +4 -0
- data/_patches-20160112a/CR-ABOVE-THIS-LINE +4 -0
- data/_patches-20160112a/CR-BELOW-THIS-LINE +4 -0
- data/_patches-20160112a/WIP-ABOVE-THIS-LINE +4 -0
- data/_patches-20160112a/WIP-BELOW-THIS-LINE +4 -0
- data/_patches-20160112a/acceptance-test-runner +29 -0
- data/_patches-20160112a/ansible-1 +92 -0
- data/_patches-20160112a/cache-api-client-in-up +40 -0
- data/_patches-20160112a/dead-code-in-actions +44 -0
- data/_patches-20160112a/debug-changes +42 -0
- data/_patches-20160112a/demo-rails-app +1276 -0
- data/_patches-20160112a/eng-10166-halt-spec +40 -0
- data/_patches-20160112a/eng-10256-ubuntu-testing +88 -0
- data/_patches-20160112a/eng-10269-test-stuff +87 -0
- data/_patches-20160112a/eng-10269-wtf +119 -0
- data/_patches-20160112a/eng-10369 +143 -0
- data/_patches-20160112a/eng-10369-tmp +60 -0
- data/_patches-20160112a/eng-10919 +56 -0
- data/_patches-20160112a/eng-11177-fix-actions-requires +44 -0
- data/_patches-20160112a/eng-11442 +4 -0
- data/_patches-20160112a/eng-11616 +403 -0
- data/_patches-20160112a/eng-11616-2 +67 -0
- data/_patches-20160112a/eng-11616-actual +184 -0
- data/_patches-20160112a/eng-11625a +4 -0
- data/_patches-20160112a/eng-11711 +85 -0
- data/_patches-20160112a/eng-12232-command-spec +236 -0
- data/_patches-20160112a/eng-12235 +83 -0
- data/_patches-20160112a/eng-12235-override-refactor +140 -0
- data/_patches-20160112a/eng-12240 +103 -0
- data/_patches-20160112a/eng-12249 +40 -0
- data/_patches-20160112a/eng-12301 +50 -0
- data/_patches-20160112a/eng-12843 +95 -0
- data/_patches-20160112a/env-source +112 -0
- data/_patches-20160112a/frickin-vagrant-spec +163 -0
- data/_patches-20160112a/gem-pre-version +14 -0
- data/_patches-20160112a/gems-old +9 -0
- data/_patches-20160112a/googles-specs +713 -0
- data/_patches-20160112a/local-configs-ignore +61 -0
- data/_patches-20160112a/misc +79 -0
- data/_patches-20160112a/network-unreachable +31 -0
- data/_patches-20160112a/new-boxfile +288 -0
- data/_patches-20160112a/parallelization-maybe +198 -0
- data/_patches-20160112a/read-state +23 -0
- data/_patches-20160112a/refactor-to-use-public_address-cap +25 -0
- data/_patches-20160112a/series +58 -0
- data/_patches-20160112a/status +14 -0
- data/_patches-20160112a/test-move-env-data +231 -0
- data/_patches-20160112a/test-vagrantfile-vm1 +167 -0
- data/_patches-20160112a/the_version_in_0.1.13.pre1 +612 -0
- data/_patches-20160112a/then-copy-the-newer-files +632 -0
- data/_patches-20160112a/vagrant-spec-mock-api +137 -0
- data/_patches-20160112a/vagrant-vmware-plugin +233 -0
- data/_patches-20160112a/vagrantfile +403 -0
- data/_patches-20160112a/vagrantfile-for-acceptance-tests +29 -0
- data/_patches-20160112a/vagrantfile-for-nick +95 -0
- data/_patches-20160112a/vagrantfiles-to-forget-what-they-are-for +134 -0
- data/_patches-20160112a/vm-vanished +42 -0
- data/_patches-20160113/COMPLETED-ABOVE-THIS-LINE +4 -0
- data/_patches-20160113/COMPLETED-BELOW-THIS-LINE +4 -0
- data/_patches-20160113/CR-ABOVE-THIS-LINE +4 -0
- data/_patches-20160113/CR-BELOW-THIS-LINE +4 -0
- data/_patches-20160113/WIP-ABOVE-THIS-LINE +4 -0
- data/_patches-20160113/WIP-BELOW-THIS-LINE +4 -0
- data/_patches-20160113/acceptance-test-runner +29 -0
- data/_patches-20160113/ansible-1 +92 -0
- data/_patches-20160113/cache-api-client-in-up +40 -0
- data/_patches-20160113/dead-code-in-actions +44 -0
- data/_patches-20160113/debug-changes +55 -0
- data/_patches-20160113/demo-rails-app +1276 -0
- data/_patches-20160113/eng-10166-halt-spec +40 -0
- data/_patches-20160113/eng-10256 +543 -0
- data/_patches-20160113/eng-10256-ubuntu-testing +88 -0
- data/_patches-20160113/eng-10269-test-stuff +87 -0
- data/_patches-20160113/eng-10269-wtf +119 -0
- data/_patches-20160113/eng-10369 +143 -0
- data/_patches-20160113/eng-10369-tmp +60 -0
- data/_patches-20160113/eng-10919 +56 -0
- data/_patches-20160113/eng-11177-fix-actions-requires +44 -0
- data/_patches-20160113/eng-11442 +4 -0
- data/_patches-20160113/eng-11616 +403 -0
- data/_patches-20160113/eng-11616-2 +67 -0
- data/_patches-20160113/eng-11616-actual +184 -0
- data/_patches-20160113/eng-11625a +4 -0
- data/_patches-20160113/eng-11711 +85 -0
- data/_patches-20160113/eng-12232-command-spec +236 -0
- data/_patches-20160113/eng-12235 +83 -0
- data/_patches-20160113/eng-12235-override-refactor +140 -0
- data/_patches-20160113/eng-12240 +103 -0
- data/_patches-20160113/eng-12249 +40 -0
- data/_patches-20160113/eng-12301 +50 -0
- data/_patches-20160113/eng-12720 +47 -0
- data/_patches-20160113/eng-12843 +95 -0
- data/_patches-20160113/env-source +112 -0
- data/_patches-20160113/frickin-vagrant-spec +163 -0
- data/_patches-20160113/gem-pre-version +14 -0
- data/_patches-20160113/gems-old +9 -0
- data/_patches-20160113/googles-specs +713 -0
- data/_patches-20160113/local-configs-ignore +61 -0
- data/_patches-20160113/misc +79 -0
- data/_patches-20160113/network-unreachable +31 -0
- data/_patches-20160113/new-boxfile +288 -0
- data/_patches-20160113/parallelization-maybe +198 -0
- data/_patches-20160113/read-state +23 -0
- data/_patches-20160113/refactor-to-use-public_address-cap +25 -0
- data/_patches-20160113/series +56 -0
- data/_patches-20160113/status +14 -0
- data/_patches-20160113/test-move-env-data +231 -0
- data/_patches-20160113/test-vagrantfile-vm1 +167 -0
- data/_patches-20160113/vagrant-spec-mock-api +137 -0
- data/_patches-20160113/vagrant-vmware-plugin +233 -0
- data/_patches-20160113/vagrantfile +403 -0
- data/_patches-20160113/vagrantfile-for-acceptance-tests +29 -0
- data/_patches-20160113/vagrantfile-for-nick +95 -0
- data/_patches-20160113/vagrantfiles-to-forget-what-they-are-for +134 -0
- data/_patches-20160113/vm-vanished +42 -0
- data/_patches-20160118/COMPLETED-ABOVE-THIS-LINE +4 -0
- data/_patches-20160118/COMPLETED-BELOW-THIS-LINE +4 -0
- data/_patches-20160118/CR-ABOVE-THIS-LINE +4 -0
- data/_patches-20160118/CR-BELOW-THIS-LINE +4 -0
- data/_patches-20160118/WIP-ABOVE-THIS-LINE +4 -0
- data/_patches-20160118/WIP-BELOW-THIS-LINE +4 -0
- data/_patches-20160118/acceptance-test-runner +29 -0
- data/_patches-20160118/ansible-1 +92 -0
- data/_patches-20160118/cache-api-client-in-up +40 -0
- data/_patches-20160118/dead-code-in-actions +44 -0
- data/_patches-20160118/debug-changes +55 -0
- data/_patches-20160118/demo-rails-app +1276 -0
- data/_patches-20160118/eng-10166-halt-spec +40 -0
- data/_patches-20160118/eng-10256 +554 -0
- data/_patches-20160118/eng-10256-cr +314 -0
- data/_patches-20160118/eng-10256-ubuntu-testing +88 -0
- data/_patches-20160118/eng-10269-test-stuff +87 -0
- data/_patches-20160118/eng-10269-wtf +119 -0
- data/_patches-20160118/eng-10369 +143 -0
- data/_patches-20160118/eng-10369-tmp +60 -0
- data/_patches-20160118/eng-10919 +56 -0
- data/_patches-20160118/eng-11177-fix-actions-requires +44 -0
- data/_patches-20160118/eng-11442 +4 -0
- data/_patches-20160118/eng-11616 +403 -0
- data/_patches-20160118/eng-11616-2 +67 -0
- data/_patches-20160118/eng-11616-actual +184 -0
- data/_patches-20160118/eng-11625a +4 -0
- data/_patches-20160118/eng-11711 +85 -0
- data/_patches-20160118/eng-12232-command-spec +236 -0
- data/_patches-20160118/eng-12235 +83 -0
- data/_patches-20160118/eng-12235-override-refactor +140 -0
- data/_patches-20160118/eng-12240 +103 -0
- data/_patches-20160118/eng-12249 +40 -0
- data/_patches-20160118/eng-12301 +50 -0
- data/_patches-20160118/eng-12720 +74 -0
- data/_patches-20160118/eng-12843 +95 -0
- data/_patches-20160118/eng-13040 +291 -0
- data/_patches-20160118/env-source +112 -0
- data/_patches-20160118/frickin-vagrant-spec +163 -0
- data/_patches-20160118/gem-pre-version +14 -0
- data/_patches-20160118/gems-old +9 -0
- data/_patches-20160118/googles-specs +713 -0
- data/_patches-20160118/local-configs-ignore +61 -0
- data/_patches-20160118/misc +79 -0
- data/_patches-20160118/network-unreachable +31 -0
- data/_patches-20160118/new-boxfile +288 -0
- data/_patches-20160118/parallelization-maybe +198 -0
- data/_patches-20160118/port-forwarding-processes +87 -0
- data/_patches-20160118/read-state +23 -0
- data/_patches-20160118/refactor-to-use-public_address-cap +25 -0
- data/_patches-20160118/series +59 -0
- data/_patches-20160118/status +13 -0
- data/_patches-20160118/test-move-env-data +231 -0
- data/_patches-20160118/test-vagrantfile-vm1 +167 -0
- data/_patches-20160118/vagrant-spec-mock-api +137 -0
- data/_patches-20160118/vagrant-vmware-plugin +233 -0
- data/_patches-20160118/vagrantfile +403 -0
- data/_patches-20160118/vagrantfile-for-acceptance-tests +29 -0
- data/_patches-20160118/vagrantfile-for-nick +95 -0
- data/_patches-20160118/vagrantfiles-to-forget-what-they-are-for +134 -0
- data/_patches-20160118/vm-vanished +42 -0
- data/_patches-20160118a/COMPLETED-ABOVE-THIS-LINE +4 -0
- data/_patches-20160118a/COMPLETED-BELOW-THIS-LINE +4 -0
- data/_patches-20160118a/CR-ABOVE-THIS-LINE +4 -0
- data/_patches-20160118a/CR-BELOW-THIS-LINE +4 -0
- data/_patches-20160118a/WIP-ABOVE-THIS-LINE +4 -0
- data/_patches-20160118a/WIP-BELOW-THIS-LINE +4 -0
- data/_patches-20160118a/acceptance-test-runner +29 -0
- data/_patches-20160118a/ansible-1 +92 -0
- data/_patches-20160118a/bar +189 -0
- data/_patches-20160118a/cache-api-client-in-up +40 -0
- data/_patches-20160118a/dead-code-in-actions +44 -0
- data/_patches-20160118a/debug-changes +55 -0
- data/_patches-20160118a/demo-rails-app +1276 -0
- data/_patches-20160118a/eng-10166-halt-spec +40 -0
- data/_patches-20160118a/eng-10256 +554 -0
- data/_patches-20160118a/eng-10256-cr +314 -0
- data/_patches-20160118a/eng-10256-ubuntu-testing +88 -0
- data/_patches-20160118a/eng-10269-test-stuff +87 -0
- data/_patches-20160118a/eng-10269-wtf +119 -0
- data/_patches-20160118a/eng-10369 +143 -0
- data/_patches-20160118a/eng-10369-tmp +60 -0
- data/_patches-20160118a/eng-10919 +56 -0
- data/_patches-20160118a/eng-11177-fix-actions-requires +44 -0
- data/_patches-20160118a/eng-11442 +4 -0
- data/_patches-20160118a/eng-11616 +403 -0
- data/_patches-20160118a/eng-11616-2 +67 -0
- data/_patches-20160118a/eng-11616-actual +184 -0
- data/_patches-20160118a/eng-11625a +4 -0
- data/_patches-20160118a/eng-11711 +85 -0
- data/_patches-20160118a/eng-12232-command-spec +236 -0
- data/_patches-20160118a/eng-12235 +83 -0
- data/_patches-20160118a/eng-12235-override-refactor +140 -0
- data/_patches-20160118a/eng-12240 +103 -0
- data/_patches-20160118a/eng-12249 +40 -0
- data/_patches-20160118a/eng-12301 +50 -0
- data/_patches-20160118a/eng-12720 +74 -0
- data/_patches-20160118a/eng-12843 +95 -0
- data/_patches-20160118a/eng-13040 +291 -0
- data/_patches-20160118a/env-source +112 -0
- data/_patches-20160118a/foo +169 -0
- data/_patches-20160118a/frickin-vagrant-spec +163 -0
- data/_patches-20160118a/gem-pre-version +14 -0
- data/_patches-20160118a/gems-old +9 -0
- data/_patches-20160118a/googles-specs +713 -0
- data/_patches-20160118a/guestport-madness +59 -0
- data/_patches-20160118a/local-configs-ignore +61 -0
- data/_patches-20160118a/misc +79 -0
- data/_patches-20160118a/network-unreachable +31 -0
- data/_patches-20160118a/new-boxfile +288 -0
- data/_patches-20160118a/parallelization-maybe +198 -0
- data/_patches-20160118a/port-forwarding-processes +87 -0
- data/_patches-20160118a/read-state +23 -0
- data/_patches-20160118a/refactor-to-use-public_address-cap +25 -0
- data/_patches-20160118a/series +62 -0
- data/_patches-20160118a/status +14 -0
- data/_patches-20160118a/test-move-env-data +231 -0
- data/_patches-20160118a/test-vagrantfile-vm1 +167 -0
- data/_patches-20160118a/vagrant-spec-mock-api +137 -0
- data/_patches-20160118a/vagrant-vmware-plugin +233 -0
- data/_patches-20160118a/vagrantfile +403 -0
- data/_patches-20160118a/vagrantfile-for-acceptance-tests +29 -0
- data/_patches-20160118a/vagrantfile-for-nick +95 -0
- data/_patches-20160118a/vagrantfiles-to-forget-what-they-are-for +134 -0
- data/_patches-20160118a/vm-vanished +42 -0
- data/lib/vagrant-skytap/action/clear_forwarded_ports.rb +19 -0
- data/lib/vagrant-skytap/action/forward_ports.rb +42 -0
- data/lib/vagrant-skytap/action/prepare_forwarded_port_collision_params.rb +37 -0
- data/lib/vagrant-skytap/action.rb +18 -0
- data/lib/vagrant-skytap/api/environment.rb +19 -4
- data/lib/vagrant-skytap/api/vm.rb +10 -6
- data/lib/vagrant-skytap/command/up.rb +7 -1
- data/lib/vagrant-skytap/errors.rb +4 -0
- data/lib/vagrant-skytap/hosts/bsd/cap/ssh_tunnel.rb +15 -0
- data/lib/vagrant-skytap/hosts/common/cap/ssh_tunnel.rb +183 -0
- data/lib/vagrant-skytap/hosts/linux/cap/ssh_tunnel.rb +15 -0
- data/lib/vagrant-skytap/hosts/windows/cap/ssh_tunnel.rb +27 -0
- data/lib/vagrant-skytap/model/forwarded_port.rb +78 -0
- data/lib/vagrant-skytap/plugin.rb +15 -0
- data/lib/vagrant-skytap/util/compile_forwarded_ports.rb +35 -0
- data/lib/vagrant-skytap/version.rb +1 -1
- data/locales/en.yml +3 -0
- data/spec/unit/environment_spec.rb +14 -2
- data/spec/unit/forwarded_port_spec.rb +45 -0
- data/spec/unit/hosts/common/cap/ssh_tunnel_spec.rb +180 -0
- data/spec/unit/prepare_collision_params_spec.rb +57 -0
- data/spec/unit/support/forwarded_ports/machines/vm1/skytap/id +1 -0
- data/spec/unit/support/forwarded_ports/machines/vm1/skytap/private_key +4 -0
- data/spec/unit/support/forwarded_ports/machines/vm1/skytap/tcp9000_tcp_9000_80.pid +1 -0
- data/spec/unit/support/forwarded_ports/machines/vm1/skytap/tcp9001_tcp_9001_81.pid +1 -0
- data/spec/unit/support/forwarded_ports/machines/vm1/virtualbox/id +1 -0
- data/spec/unit/support/forwarded_ports/machines/vm2/skytap/id +1 -0
- data/spec/unit/support/forwarded_ports/machines/vm2/skytap/tcp8080_tcp_8080_80.pid +1 -0
- data/spec/unit/support/forwarded_ports/machines/vm3/virtualbox/id +1 -0
- data/spec/unit/support/forwarded_ports/machines/vm4/skytap/id +1 -0
- data/spec/unit/support/forwarded_ports/machines/vm4/skytap/tcp8888_tcp_8888_80.pid +1 -0
- metadata +330 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9803dcd4a9599d58a78653c2feffcd9748441012
|
|
4
|
+
data.tar.gz: 9e22383d99a894143de9a12db928b8af9211e175
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0266e176c96068c36c5133ab746c64cd4bada2febe1d9cfdd4241fa1888776a65d5013f82ab679e72b4d997123c3abacf609fecbfb4e5a0fc0847a44c58a9f7
|
|
7
|
+
data.tar.gz: 01ab3cedd7f84e7f6756d7f84d23ea714db1a48ee16cf8bea6c451a7ecf88c5786def1650a857d2364dc228516485a813db3477fa338cd84e9434267e795d986
|
data/.byebug_history
CHANGED
|
@@ -1,33 +1,256 @@
|
|
|
1
1
|
c
|
|
2
|
+
s
|
|
3
|
+
n
|
|
2
4
|
args
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
message
|
|
6
|
+
finish
|
|
7
|
+
object
|
|
8
|
+
s
|
|
5
9
|
args
|
|
6
|
-
|
|
10
|
+
self
|
|
11
|
+
@method_name
|
|
12
|
+
method_name
|
|
13
|
+
$!
|
|
14
|
+
s
|
|
15
|
+
machine
|
|
16
|
+
fp
|
|
17
|
+
c 58
|
|
18
|
+
c
|
|
19
|
+
expect(map.values.first).to be_a(Pathname)
|
|
20
|
+
c
|
|
21
|
+
map.values.first.is_a?(Pathname)
|
|
22
|
+
map.values.first.class
|
|
23
|
+
map.values.first
|
|
24
|
+
c
|
|
25
|
+
id
|
|
26
|
+
(guest_port == 22 && host_port == 2222)
|
|
27
|
+
self
|
|
28
|
+
c
|
|
29
|
+
self
|
|
30
|
+
c
|
|
31
|
+
id
|
|
32
|
+
(guest_port == 22 && host_port == 2222)
|
|
33
|
+
self
|
|
34
|
+
c
|
|
35
|
+
up
|
|
36
|
+
c
|
|
37
|
+
display options
|
|
38
|
+
c
|
|
39
|
+
up
|
|
40
|
+
c
|
|
41
|
+
up
|
|
42
|
+
options
|
|
43
|
+
c
|
|
44
|
+
display fp
|
|
7
45
|
c
|
|
8
|
-
n
|
|
9
46
|
fp
|
|
47
|
+
@env[:forwarded_ports].last
|
|
48
|
+
@env[:forwarded_ports]
|
|
49
|
+
fp.internal_ssh_port?
|
|
50
|
+
c
|
|
51
|
+
cc
|
|
52
|
+
c
|
|
53
|
+
display fp
|
|
54
|
+
c
|
|
55
|
+
env[:machine].config.vm.networks.first.class
|
|
56
|
+
env[:machine].config.vm.networks.first
|
|
57
|
+
ap env[:machine].config.vm.networks
|
|
58
|
+
c
|
|
59
|
+
ap env[:port_collision_extra_in_use]
|
|
60
|
+
env[:port_collision_extra_in_use]
|
|
61
|
+
ports
|
|
62
|
+
c
|
|
63
|
+
ports
|
|
64
|
+
c
|
|
65
|
+
ports
|
|
66
|
+
c
|
|
67
|
+
ports
|
|
68
|
+
env[:machine].ssh_info
|
|
69
|
+
env[:machine].name
|
|
70
|
+
c
|
|
71
|
+
puts env[:port_collision_extra_in_use]
|
|
72
|
+
env[:port_collision_extra_in_use]
|
|
73
|
+
n
|
|
74
|
+
c
|
|
75
|
+
env[:port_collision_extra_in_use]
|
|
76
|
+
c
|
|
77
|
+
env[:host].capability(:read_forwarded_ports, env[:machine])
|
|
78
|
+
c
|
|
79
|
+
b 21
|
|
10
80
|
n
|
|
11
|
-
|
|
12
|
-
|
|
81
|
+
c
|
|
82
|
+
get_fp_from_directory(search_paths.first)
|
|
83
|
+
search_paths
|
|
13
84
|
n
|
|
14
|
-
|
|
85
|
+
s
|
|
86
|
+
args
|
|
15
87
|
n
|
|
16
|
-
|
|
88
|
+
s
|
|
89
|
+
c
|
|
90
|
+
ap resp
|
|
91
|
+
resp.body
|
|
92
|
+
c
|
|
93
|
+
resp.body
|
|
94
|
+
c
|
|
95
|
+
ap resp
|
|
96
|
+
c
|
|
97
|
+
ap JSON.load(resp.body)
|
|
98
|
+
resp.body
|
|
99
|
+
ap resp
|
|
100
|
+
c
|
|
101
|
+
$!
|
|
17
102
|
n
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
103
|
+
c
|
|
104
|
+
up
|
|
105
|
+
$!
|
|
106
|
+
s
|
|
107
|
+
ap resp
|
|
108
|
+
args
|
|
109
|
+
up
|
|
110
|
+
url
|
|
111
|
+
c
|
|
112
|
+
ap body['vms']
|
|
113
|
+
ap body.keys
|
|
114
|
+
ap body
|
|
115
|
+
body=JSON.load(resp.body)
|
|
116
|
+
n
|
|
117
|
+
attrs
|
|
118
|
+
c
|
|
119
|
+
finish
|
|
120
|
+
n
|
|
121
|
+
c
|
|
122
|
+
new_vm_ids
|
|
123
|
+
new_vms_ids
|
|
26
124
|
n
|
|
27
125
|
finish
|
|
126
|
+
$!
|
|
127
|
+
n
|
|
28
128
|
s
|
|
129
|
+
args
|
|
130
|
+
ap vm.attrs
|
|
131
|
+
ap vm
|
|
132
|
+
args
|
|
133
|
+
n
|
|
134
|
+
vm_ids
|
|
135
|
+
n
|
|
136
|
+
finish
|
|
137
|
+
vm.region
|
|
138
|
+
finish
|
|
139
|
+
n
|
|
140
|
+
ap vm.attrs
|
|
141
|
+
finish
|
|
142
|
+
n
|
|
143
|
+
vm_url
|
|
144
|
+
finish
|
|
145
|
+
s
|
|
146
|
+
vm_url
|
|
29
147
|
c
|
|
30
|
-
|
|
148
|
+
get_api_attribute('configuration_url')
|
|
31
149
|
c
|
|
32
|
-
|
|
33
|
-
|
|
150
|
+
ap attrs
|
|
151
|
+
attrs
|
|
152
|
+
attributes
|
|
153
|
+
n
|
|
154
|
+
s
|
|
155
|
+
c
|
|
156
|
+
display pidfile
|
|
157
|
+
c
|
|
158
|
+
display pidfile
|
|
159
|
+
c
|
|
160
|
+
pidfile
|
|
161
|
+
c
|
|
162
|
+
$1
|
|
163
|
+
'w33' =~ /(\w+)/
|
|
164
|
+
'w33' =~ /(\w+/
|
|
165
|
+
$1
|
|
166
|
+
'w33' =~ /\w+/
|
|
167
|
+
$2
|
|
168
|
+
$1
|
|
169
|
+
/\w+/ =~ 'w33'
|
|
170
|
+
$2
|
|
171
|
+
$1
|
|
172
|
+
n
|
|
173
|
+
pidfile
|
|
174
|
+
c
|
|
175
|
+
machine
|
|
176
|
+
c
|
|
177
|
+
machine.data_dir
|
|
178
|
+
machine
|
|
179
|
+
c
|
|
180
|
+
env.host.capability
|
|
181
|
+
env.host
|
|
182
|
+
env
|
|
183
|
+
c
|
|
184
|
+
Object.const_get("VagrantPlugins::Skytap::HostDarwin::Cap::Processes")
|
|
185
|
+
Object.const_get("HostDarwin::Cap::Processes")
|
|
186
|
+
Object.const_get("HostDarwin")
|
|
187
|
+
Object.const_get("Foo")
|
|
188
|
+
c
|
|
189
|
+
result.to_s
|
|
190
|
+
result.exit_code == 0
|
|
191
|
+
result.exit_code
|
|
192
|
+
result = Vagrant::Util::Subprocess.execute("ps", "-p", pid.to_s, "-o", "comm")
|
|
193
|
+
c
|
|
194
|
+
n
|
|
195
|
+
finish
|
|
196
|
+
n
|
|
197
|
+
pid
|
|
198
|
+
c
|
|
199
|
+
$!
|
|
200
|
+
c
|
|
201
|
+
$!
|
|
202
|
+
c
|
|
203
|
+
n
|
|
204
|
+
finish
|
|
205
|
+
n
|
|
206
|
+
c
|
|
207
|
+
result
|
|
208
|
+
finish
|
|
209
|
+
$!
|
|
210
|
+
n
|
|
211
|
+
pid
|
|
212
|
+
c
|
|
213
|
+
s
|
|
214
|
+
pid
|
|
215
|
+
c
|
|
216
|
+
res
|
|
217
|
+
n
|
|
218
|
+
c
|
|
219
|
+
n
|
|
220
|
+
autossh_pid?(pid)
|
|
221
|
+
pid
|
|
222
|
+
n
|
|
223
|
+
machine.data_dir
|
|
224
|
+
n
|
|
225
|
+
c
|
|
226
|
+
puts $!.backtrace
|
|
227
|
+
puts $1.backtrace
|
|
228
|
+
$!
|
|
229
|
+
n
|
|
230
|
+
c
|
|
231
|
+
pidfile_path
|
|
232
|
+
File.read('foo')
|
|
233
|
+
finish
|
|
234
|
+
args
|
|
235
|
+
finish
|
|
236
|
+
$!
|
|
237
|
+
s
|
|
238
|
+
pidfile
|
|
239
|
+
n
|
|
240
|
+
c
|
|
241
|
+
Pathname.new('foo')
|
|
242
|
+
Pathname
|
|
243
|
+
Path
|
|
244
|
+
c
|
|
245
|
+
$!
|
|
246
|
+
n
|
|
247
|
+
c
|
|
248
|
+
VagrantPlugins::Skytap::Model::ForwardedPort
|
|
249
|
+
Skytap::Model::ForwardedPort
|
|
250
|
+
forwarded_port
|
|
251
|
+
c
|
|
252
|
+
VagrantPlugins::Skytap::Model::ForwardedPort
|
|
253
|
+
require 'vagrant-skytap/model/forwarded_port'
|
|
254
|
+
VagrantPlugins::Skytap::API
|
|
255
|
+
VagrantPlugins::Skytap::sdf
|
|
256
|
+
VagrantPlugins::Skytap
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# 0.2.0 (January 20, 2016)
|
|
2
|
+
|
|
3
|
+
* Add support for port forwarding on Linux and BSD hosts using AutoSSH
|
|
4
|
+
(TCP only).
|
|
5
|
+
|
|
6
|
+
* 0.1.12 (December 23, 2015)
|
|
7
|
+
|
|
8
|
+
* Backward-compatibility fix.
|
|
9
|
+
|
|
1
10
|
# 0.1.11 (December 22, 2015)
|
|
2
11
|
|
|
3
12
|
* Fix breakage caused by fix to --provision-with argument in Vagrant 1.8.0
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Skytap Provider for Vagrant (Beta)
|
|
3
3
|
The Skytap Vagrant provider is a [Vagrant](http://vagrantup.com) plugin for creating, provisioning, and controlling VMs on the [Skytap](http://www.skytap.com) cloud computing platform. It allows you to:
|
|
4
4
|
|
|
5
|
-
* Create multi-VM environments using source VMs from
|
|
5
|
+
* Create multi-VM environments using source VMs from Skytap environments and templates
|
|
6
6
|
* SSH into the instances
|
|
7
7
|
* Customize hardware settings via the Vagrantfile
|
|
8
8
|
* Sync folders between your local machine and Skytap VMs via NFS
|
|
@@ -14,8 +14,6 @@ The Skytap Vagrant provider is a [Vagrant](http://vagrantup.com) plugin for crea
|
|
|
14
14
|
|
|
15
15
|
Skytap [environments](http://help.skytap.com/#Getting_Started_with_Environments.html) map neatly onto Vagrant multi-machine environments. An environment contains one or more VMs, and may also contain networks for the VMs to connect to. Environments may be snapshotted as [templates](http://help.skytap.com/#Templates.html), which can then be used to create new environments. The Skytap [public template library](http://help.skytap.com/#Public_Templates.html) is a collection of templates containing a variety of pre-configured VMs.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
17
|
## Before You Begin
|
|
20
18
|
|
|
21
19
|
Before you begin, make sure you have:
|
|
@@ -101,6 +99,7 @@ For the most part these behave identically to the builtin Vagrant commands.
|
|
|
101
99
|
| `vagrant publish-url [action] [<vm_name>, ...]`| Share an environment via the Skytap UI. See below for specifics. |
|
|
102
100
|
| `vagrant reload [<vm_name>, <vm_name>]` | Shut down and then run an environment or VM(s); this is equivalent to `vagrant halt` followed by `vagrant up.`|
|
|
103
101
|
| `vagrant resume [<vm_name>, <vm_name>]` | Runs one or more suspended VM(s)|
|
|
102
|
+
| `vagrant share [<vm_name>]` | Shares a VM through HashiCorp Atlas.|
|
|
104
103
|
| `vagrant ssh [<vm_name>]` | Begin an SSH session with a VM|
|
|
105
104
|
| `vagrant ssh-config [<vm_name>, <vm_name>]` | Generate an OpenSSH configuration file based on the VM settings |
|
|
106
105
|
| `vagrant status [<vm_name>, <vm_name>]` | Show the runstate of one or more VM(s)|
|
|
@@ -117,7 +116,13 @@ Notes:
|
|
|
117
116
|
## Additional Supported Actions
|
|
118
117
|
|
|
119
118
|
### Sharing Environments via Published URLs
|
|
120
|
-
The Skytap Vagrant provider has basic support for [published URLs](http://help.skytap.com/#Published_URLs.html). Publishing an environment gives full anonymous access to the
|
|
119
|
+
The Skytap Vagrant provider has basic support for [published URLs](http://help.skytap.com/#Published_URLs.html). Publishing an environment gives full anonymous access to the Skytap environment to anyone with the URL (and optional password). This feature differs from [Vagrant Share](https://www.vagrantup.com/docs/share/index.html) in that the user will have browser-based access to a shared view of all VMs in the environment, including details at a glance, thumbnails, and desktop access using SmartClient.
|
|
120
|
+
|
|
121
|
+

|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
A password may be specified. Anonymous access may be revoked by deleting the published URL, using the `vagrant publish-url delete` subcommand. (Skytap users with appropriate
|
|
125
|
+
permissions may still access the environment through the UI if desired.)
|
|
121
126
|
|
|
122
127
|
| Vagrant Command and Subcommand | Skytap Action |
|
|
123
128
|
|:----------------------------------------------|----------------|
|
|
@@ -146,6 +151,22 @@ end
|
|
|
146
151
|
|
|
147
152
|
For more information, see [https://docs.vagrantup.com/v2/synced-folders](https://docs.vagrantup.com/v2/synced-folders).
|
|
148
153
|
|
|
154
|
+
### Port Forwarding
|
|
155
|
+
The Skytap Vagrant provider supports Vagrant's port forwarding feature using [AutoSSH](http://www.harding.motd.ca/autossh), an open-source utility for managing ssh tunnels. The `up` and `resume` commands will start a separate autossh process for each forwarded port. The `halt` and `suspend` commands will terminate the autossh processes, which will cause the ssh tunnels to be killed. `vagrant reload` kills the autossh processes and recreates them. (Only autossh processes created by Vagrant will be killed, and only for the VMs being halted, suspended, or reloaded.)
|
|
156
|
+
|
|
157
|
+
An example from the Vagrant documentation:
|
|
158
|
+
|
|
159
|
+
```ruby
|
|
160
|
+
Vagrant.configure("2") do |config|
|
|
161
|
+
config.vm.network "forwarded_port", guest: 80, host: 8080,
|
|
162
|
+
auto_correct: true
|
|
163
|
+
end
|
|
164
|
+
```
|
|
165
|
+
Note: This feature is currently not supported on Windows hosts.
|
|
166
|
+
|
|
167
|
+
For more information, see [https://www.vagrantup.com/docs/networking/forwarded_ports.html](https://www.vagrantup.com/docs/networking/forwarded_ports.html).
|
|
168
|
+
|
|
169
|
+
|
|
149
170
|
## Skytap-specific Vagrantfile Settings
|
|
150
171
|
|
|
151
172
|
|Setting |Required?|Description|
|
|
@@ -159,8 +180,8 @@ For more information, see [https://docs.vagrantup.com/v2/synced-folders](https:/
|
|
|
159
180
|
|
|
160
181
|
Notes:
|
|
161
182
|
|
|
162
|
-
* Source VMs
|
|
163
|
-
* Multi-machine environments may use source VMs from multiple templates, from your customer account and/or the public template library, as long as all are in the same region. Your user account must have permissions to see the
|
|
183
|
+
* Source VMs cannot be used unless they are in the powered off state.
|
|
184
|
+
* Multi-machine environments may use source VMs from multiple environments and templates, from your customer account and/or the public template library, as long as all are in the same region. Your user account must have permissions to see the source VMs.
|
|
164
185
|
* `cpus` must be evenly divisible by `cpuspersocket`. E.g., two quad-core processors have a total of 8 virtual cores, so the `cpus` value would be 8. (Most VMs in the public template library are single-core.)
|
|
165
186
|
* The `guestos` setting is distinct from from Vagrant's `config.vm.guest` setting.
|
|
166
187
|
* If you do not know the URL for the VPN you wish to use, contact your Skytap administrator.
|
|
@@ -181,7 +202,8 @@ To enable logging while troubleshooting, see [https://docs.vagrantup.com/v2/othe
|
|
|
181
202
|
* The source VM must have an SSH service configured to run on startup, or (for Windows VMs) be configured for WinRM access. For more information about WinRM configuration, see [https://docs.vagrantup.com/v2/boxes/base.html](https://docs.vagrantup.com/v2/boxes/base.html), under "Windows Boxes".
|
|
182
203
|
* At this time, WinRM credentials stored in Skytap VMs will be ignored. The username and password for WinRM connections must be stored in the Vagrantfile (`config.winrm.username` and `config.winrm.password`).
|
|
183
204
|
* Running, reloading, or destroying a Skytap VM can result in "stale NFS file handle" errors on other providers' VMs. This is a known issue when using multiple providers on the same host machine. The workaround is to use `vagrant reload` on the affected VM to refresh that VM's NFS mount(s).
|
|
184
|
-
*
|
|
185
|
-
*
|
|
205
|
+
* Public and private networks are not supported.
|
|
206
|
+
* Port forwarding is supported for TCP only.
|
|
207
|
+
* Port forwarding is currently unsupported on Windows.
|
|
186
208
|
* Although several Skytap public library VMs include credentials for the `root` login, its use is not recommended.
|
|
187
209
|
* Once a VM has been created, it is not possible to change its connection method (i.e., connect using a different VPN). This is the case whether the VPN is specified in the Vagrantfile with the `vpn_url` setting, or selected interactively.
|
data/Vagrantfile.rej
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
--- Vagrantfile
|
|
2
|
+
+++ Vagrantfile
|
|
3
|
+
@@ -85,6 +85,16 @@
|
|
4
|
+
environment_vm2: {
|
|
5
|
+
vm_url: "https://cloud.skytap.com/vms/8283794"
|
|
6
|
+
},
|
|
7
|
+
+ test_vagrant_customer_template_vm_1: {
|
|
8
|
+
+ vm_url: "https://test.skytap.com/vms/6863190",
|
|
9
|
+
+ username: "autoadmin",
|
|
10
|
+
+ password: "autoadmin",
|
|
11
|
+
+ },
|
|
12
|
+
+ test_vagrant_customer_env_vm_1: {
|
|
13
|
+
+ vm_url: "https://test.skytap.com/vms/7088324",
|
|
14
|
+
+ username: "autoadmin",
|
|
15
|
+
+ password: "autoadmin",
|
|
16
|
+
+ },
|
|
17
|
+
}.tap do |ret|
|
|
18
|
+
ret.each do |key, vm|
|
|
19
|
+
vm[:username] ||= "skytap"
|
|
20
|
+
@@ -97,7 +107,7 @@
|
|
21
|
+
settings_key = :etrue_prod
|
|
22
|
+
vm1_key = :golden
|
|
23
|
+
vm2_key = :windows_winrm_configured
|
|
24
|
+
-vm3_key = :ubuntu2
|
|
25
|
+
+vm3_key = :golden
|
|
26
|
+
#############################
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@@ -120,7 +130,7 @@
|
|
30
|
+
#end
|
|
31
|
+
|
|
32
|
+
config.vm.define "vm1" do |box|
|
|
33
|
+
- #box.vm.hostname = "vm1"
|
|
34
|
+
+ box.vm.hostname = "vm1"
|
|
35
|
+
box.vm.provider :skytap do |box|
|
|
36
|
+
box.vm_url = vms[vm1_key][:vm_url]
|
|
37
|
+
#box.cpus = 1
|
|
38
|
+
@@ -132,10 +142,10 @@
|
|
39
|
+
#box.vm.synced_folder ".", "/vagrant-skytap", type: :nfs, mount_options: ['actimeo=1']
|
|
40
|
+
#box.vm.provision "shell", path: "provisioning/trivial.sh"
|
|
41
|
+
box.vm.provision "shell", path: "provisioning/apache.sh"
|
|
42
|
+
- box.vm.provision "shell", path: "provisioning/vagrant.sh"
|
|
43
|
+
+ #box.vm.provision "shell", path: "provisioning/vagrant.sh"
|
|
44
|
+
|
|
45
|
+
- box.vm.network :forwarded_port, guest: 80, host: 9000
|
|
46
|
+
- #box.vm.network :forwarded_port, guest: 21, host: 9001
|
|
47
|
+
+ box.vm.network :forwarded_port, guest: 80, host: 9000, auto_correct: true
|
|
48
|
+
+ box.vm.network :forwarded_port, guest: 21, host: 9001, auto_correct: true
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# config.vm.define "vm2" do |box|
|
|
52
|
+
@@ -149,17 +159,20 @@
|
|
53
|
+
# box.vm.synced_folder "vm2", "/synced", type: :nfs
|
|
54
|
+
# end
|
|
55
|
+
#
|
|
56
|
+
-# config.vm.define "vm3" do |box|
|
|
57
|
+
-# box.vm.hostname = "vm3"
|
|
58
|
+
-# box.vm.provider :skytap do |box|
|
|
59
|
+
-# box.vm_url = vms[vm3_key][:vm_url]
|
|
60
|
+
-# end
|
|
61
|
+
-# box.ssh.username = vms[vm3_key][:username]
|
|
62
|
+
-# box.ssh.password = vms[vm3_key][:password]
|
|
63
|
+
-# box.vm.communicator = vms[vm3_key][:communicator]
|
|
64
|
+
-# box.vm.synced_folder "vm3", "/synced", type: :nfs
|
|
65
|
+
-# box.vm.provision "shell", path: "provisioning/trivial.sh"
|
|
66
|
+
-# end
|
|
67
|
+
+ config.vm.define "vm3" do |box|
|
|
68
|
+
+ #box.vm.hostname = "vm3"
|
|
69
|
+
+ box.vm.provider :skytap do |box|
|
|
70
|
+
+ box.vm_url = vms[vm3_key][:vm_url]
|
|
71
|
+
+ end
|
|
72
|
+
+ box.ssh.username = vms[vm3_key][:username]
|
|
73
|
+
+ box.ssh.password = vms[vm3_key][:password]
|
|
74
|
+
+ box.vm.communicator = vms[vm3_key][:communicator]
|
|
75
|
+
+ #box.vm.synced_folder "vm3", "/synced", type: :nfs
|
|
76
|
+
+ box.vm.provision "shell", path: "provisioning/apache.sh"
|
|
77
|
+
+
|
|
78
|
+
+ box.vm.network :forwarded_port, guest: 80, host: 9000, auto_correct: true
|
|
79
|
+
+ box.vm.network :forwarded_port, guest: 21, host: 9001, auto_correct: true
|
|
80
|
+
+ end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
#ubuntu.vm.synced_folder "vm1", "/home/skytap/app", type: :nfs, :mount_options => ['actimeo=1']
|