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.
Files changed (342) hide show
  1. checksums.yaml +4 -4
  2. data/.byebug_history +242 -19
  3. data/CHANGELOG.md +9 -0
  4. data/README.md +30 -8
  5. data/Vagrantfile.rej +83 -0
  6. data/_patches-20160112/0 +388 -0
  7. data/_patches-20160112/1 +82 -0
  8. data/_patches-20160112/2 +239 -0
  9. data/_patches-20160112/COMPLETED-ABOVE-THIS-LINE +4 -0
  10. data/_patches-20160112/COMPLETED-BELOW-THIS-LINE +4 -0
  11. data/_patches-20160112/CR-ABOVE-THIS-LINE +4 -0
  12. data/_patches-20160112/CR-BELOW-THIS-LINE +4 -0
  13. data/_patches-20160112/WIP-ABOVE-THIS-LINE +4 -0
  14. data/_patches-20160112/WIP-BELOW-THIS-LINE +4 -0
  15. data/_patches-20160112/acceptance-test-runner +29 -0
  16. data/_patches-20160112/ansible-1 +92 -0
  17. data/_patches-20160112/cache-api-client-in-up +40 -0
  18. data/_patches-20160112/dead-code-in-actions +44 -0
  19. data/_patches-20160112/debug-changes +42 -0
  20. data/_patches-20160112/demo-rails-app +1276 -0
  21. data/_patches-20160112/eng-10166-halt-spec +40 -0
  22. data/_patches-20160112/eng-10256 +527 -0
  23. data/_patches-20160112/eng-10256-2 +162 -0
  24. data/_patches-20160112/eng-10256-ubuntu-testing +88 -0
  25. data/_patches-20160112/eng-10269-test-stuff +87 -0
  26. data/_patches-20160112/eng-10269-wtf +119 -0
  27. data/_patches-20160112/eng-10369 +143 -0
  28. data/_patches-20160112/eng-10369-tmp +60 -0
  29. data/_patches-20160112/eng-10919 +56 -0
  30. data/_patches-20160112/eng-11177-fix-actions-requires +44 -0
  31. data/_patches-20160112/eng-11442 +4 -0
  32. data/_patches-20160112/eng-11616 +403 -0
  33. data/_patches-20160112/eng-11616-2 +67 -0
  34. data/_patches-20160112/eng-11616-actual +184 -0
  35. data/_patches-20160112/eng-11625a +4 -0
  36. data/_patches-20160112/eng-11711 +85 -0
  37. data/_patches-20160112/eng-12232-command-spec +236 -0
  38. data/_patches-20160112/eng-12235 +83 -0
  39. data/_patches-20160112/eng-12235-override-refactor +140 -0
  40. data/_patches-20160112/eng-12240 +103 -0
  41. data/_patches-20160112/eng-12249 +40 -0
  42. data/_patches-20160112/eng-12301 +50 -0
  43. data/_patches-20160112/eng-12843 +95 -0
  44. data/_patches-20160112/env-source +112 -0
  45. data/_patches-20160112/frickin-vagrant-spec +163 -0
  46. data/_patches-20160112/gem-pre-version +14 -0
  47. data/_patches-20160112/gems-old +9 -0
  48. data/_patches-20160112/googles-specs +713 -0
  49. data/_patches-20160112/local-configs-ignore +61 -0
  50. data/_patches-20160112/misc +79 -0
  51. data/_patches-20160112/network-unreachable +31 -0
  52. data/_patches-20160112/new-boxfile +288 -0
  53. data/_patches-20160112/parallelization-maybe +198 -0
  54. data/_patches-20160112/read-state +23 -0
  55. data/_patches-20160112/refactor-to-use-public_address-cap +25 -0
  56. data/_patches-20160112/series +60 -0
  57. data/_patches-20160112/status +12 -0
  58. data/_patches-20160112/test-move-env-data +231 -0
  59. data/_patches-20160112/test-vagrantfile-vm1 +167 -0
  60. data/_patches-20160112/the_version_in_0.1.13.pre1 +598 -0
  61. data/_patches-20160112/vagrant-spec-mock-api +137 -0
  62. data/_patches-20160112/vagrant-vmware-plugin +233 -0
  63. data/_patches-20160112/vagrantfile +403 -0
  64. data/_patches-20160112/vagrantfile-for-acceptance-tests +29 -0
  65. data/_patches-20160112/vagrantfile-for-nick +95 -0
  66. data/_patches-20160112/vagrantfiles-to-forget-what-they-are-for +134 -0
  67. data/_patches-20160112/vm-vanished +42 -0
  68. data/_patches-20160112a/01 +148 -0
  69. data/_patches-20160112a/2 +239 -0
  70. data/_patches-20160112a/COMPLETED-ABOVE-THIS-LINE +4 -0
  71. data/_patches-20160112a/COMPLETED-BELOW-THIS-LINE +4 -0
  72. data/_patches-20160112a/CR-ABOVE-THIS-LINE +4 -0
  73. data/_patches-20160112a/CR-BELOW-THIS-LINE +4 -0
  74. data/_patches-20160112a/WIP-ABOVE-THIS-LINE +4 -0
  75. data/_patches-20160112a/WIP-BELOW-THIS-LINE +4 -0
  76. data/_patches-20160112a/acceptance-test-runner +29 -0
  77. data/_patches-20160112a/ansible-1 +92 -0
  78. data/_patches-20160112a/cache-api-client-in-up +40 -0
  79. data/_patches-20160112a/dead-code-in-actions +44 -0
  80. data/_patches-20160112a/debug-changes +42 -0
  81. data/_patches-20160112a/demo-rails-app +1276 -0
  82. data/_patches-20160112a/eng-10166-halt-spec +40 -0
  83. data/_patches-20160112a/eng-10256-ubuntu-testing +88 -0
  84. data/_patches-20160112a/eng-10269-test-stuff +87 -0
  85. data/_patches-20160112a/eng-10269-wtf +119 -0
  86. data/_patches-20160112a/eng-10369 +143 -0
  87. data/_patches-20160112a/eng-10369-tmp +60 -0
  88. data/_patches-20160112a/eng-10919 +56 -0
  89. data/_patches-20160112a/eng-11177-fix-actions-requires +44 -0
  90. data/_patches-20160112a/eng-11442 +4 -0
  91. data/_patches-20160112a/eng-11616 +403 -0
  92. data/_patches-20160112a/eng-11616-2 +67 -0
  93. data/_patches-20160112a/eng-11616-actual +184 -0
  94. data/_patches-20160112a/eng-11625a +4 -0
  95. data/_patches-20160112a/eng-11711 +85 -0
  96. data/_patches-20160112a/eng-12232-command-spec +236 -0
  97. data/_patches-20160112a/eng-12235 +83 -0
  98. data/_patches-20160112a/eng-12235-override-refactor +140 -0
  99. data/_patches-20160112a/eng-12240 +103 -0
  100. data/_patches-20160112a/eng-12249 +40 -0
  101. data/_patches-20160112a/eng-12301 +50 -0
  102. data/_patches-20160112a/eng-12843 +95 -0
  103. data/_patches-20160112a/env-source +112 -0
  104. data/_patches-20160112a/frickin-vagrant-spec +163 -0
  105. data/_patches-20160112a/gem-pre-version +14 -0
  106. data/_patches-20160112a/gems-old +9 -0
  107. data/_patches-20160112a/googles-specs +713 -0
  108. data/_patches-20160112a/local-configs-ignore +61 -0
  109. data/_patches-20160112a/misc +79 -0
  110. data/_patches-20160112a/network-unreachable +31 -0
  111. data/_patches-20160112a/new-boxfile +288 -0
  112. data/_patches-20160112a/parallelization-maybe +198 -0
  113. data/_patches-20160112a/read-state +23 -0
  114. data/_patches-20160112a/refactor-to-use-public_address-cap +25 -0
  115. data/_patches-20160112a/series +58 -0
  116. data/_patches-20160112a/status +14 -0
  117. data/_patches-20160112a/test-move-env-data +231 -0
  118. data/_patches-20160112a/test-vagrantfile-vm1 +167 -0
  119. data/_patches-20160112a/the_version_in_0.1.13.pre1 +612 -0
  120. data/_patches-20160112a/then-copy-the-newer-files +632 -0
  121. data/_patches-20160112a/vagrant-spec-mock-api +137 -0
  122. data/_patches-20160112a/vagrant-vmware-plugin +233 -0
  123. data/_patches-20160112a/vagrantfile +403 -0
  124. data/_patches-20160112a/vagrantfile-for-acceptance-tests +29 -0
  125. data/_patches-20160112a/vagrantfile-for-nick +95 -0
  126. data/_patches-20160112a/vagrantfiles-to-forget-what-they-are-for +134 -0
  127. data/_patches-20160112a/vm-vanished +42 -0
  128. data/_patches-20160113/COMPLETED-ABOVE-THIS-LINE +4 -0
  129. data/_patches-20160113/COMPLETED-BELOW-THIS-LINE +4 -0
  130. data/_patches-20160113/CR-ABOVE-THIS-LINE +4 -0
  131. data/_patches-20160113/CR-BELOW-THIS-LINE +4 -0
  132. data/_patches-20160113/WIP-ABOVE-THIS-LINE +4 -0
  133. data/_patches-20160113/WIP-BELOW-THIS-LINE +4 -0
  134. data/_patches-20160113/acceptance-test-runner +29 -0
  135. data/_patches-20160113/ansible-1 +92 -0
  136. data/_patches-20160113/cache-api-client-in-up +40 -0
  137. data/_patches-20160113/dead-code-in-actions +44 -0
  138. data/_patches-20160113/debug-changes +55 -0
  139. data/_patches-20160113/demo-rails-app +1276 -0
  140. data/_patches-20160113/eng-10166-halt-spec +40 -0
  141. data/_patches-20160113/eng-10256 +543 -0
  142. data/_patches-20160113/eng-10256-ubuntu-testing +88 -0
  143. data/_patches-20160113/eng-10269-test-stuff +87 -0
  144. data/_patches-20160113/eng-10269-wtf +119 -0
  145. data/_patches-20160113/eng-10369 +143 -0
  146. data/_patches-20160113/eng-10369-tmp +60 -0
  147. data/_patches-20160113/eng-10919 +56 -0
  148. data/_patches-20160113/eng-11177-fix-actions-requires +44 -0
  149. data/_patches-20160113/eng-11442 +4 -0
  150. data/_patches-20160113/eng-11616 +403 -0
  151. data/_patches-20160113/eng-11616-2 +67 -0
  152. data/_patches-20160113/eng-11616-actual +184 -0
  153. data/_patches-20160113/eng-11625a +4 -0
  154. data/_patches-20160113/eng-11711 +85 -0
  155. data/_patches-20160113/eng-12232-command-spec +236 -0
  156. data/_patches-20160113/eng-12235 +83 -0
  157. data/_patches-20160113/eng-12235-override-refactor +140 -0
  158. data/_patches-20160113/eng-12240 +103 -0
  159. data/_patches-20160113/eng-12249 +40 -0
  160. data/_patches-20160113/eng-12301 +50 -0
  161. data/_patches-20160113/eng-12720 +47 -0
  162. data/_patches-20160113/eng-12843 +95 -0
  163. data/_patches-20160113/env-source +112 -0
  164. data/_patches-20160113/frickin-vagrant-spec +163 -0
  165. data/_patches-20160113/gem-pre-version +14 -0
  166. data/_patches-20160113/gems-old +9 -0
  167. data/_patches-20160113/googles-specs +713 -0
  168. data/_patches-20160113/local-configs-ignore +61 -0
  169. data/_patches-20160113/misc +79 -0
  170. data/_patches-20160113/network-unreachable +31 -0
  171. data/_patches-20160113/new-boxfile +288 -0
  172. data/_patches-20160113/parallelization-maybe +198 -0
  173. data/_patches-20160113/read-state +23 -0
  174. data/_patches-20160113/refactor-to-use-public_address-cap +25 -0
  175. data/_patches-20160113/series +56 -0
  176. data/_patches-20160113/status +14 -0
  177. data/_patches-20160113/test-move-env-data +231 -0
  178. data/_patches-20160113/test-vagrantfile-vm1 +167 -0
  179. data/_patches-20160113/vagrant-spec-mock-api +137 -0
  180. data/_patches-20160113/vagrant-vmware-plugin +233 -0
  181. data/_patches-20160113/vagrantfile +403 -0
  182. data/_patches-20160113/vagrantfile-for-acceptance-tests +29 -0
  183. data/_patches-20160113/vagrantfile-for-nick +95 -0
  184. data/_patches-20160113/vagrantfiles-to-forget-what-they-are-for +134 -0
  185. data/_patches-20160113/vm-vanished +42 -0
  186. data/_patches-20160118/COMPLETED-ABOVE-THIS-LINE +4 -0
  187. data/_patches-20160118/COMPLETED-BELOW-THIS-LINE +4 -0
  188. data/_patches-20160118/CR-ABOVE-THIS-LINE +4 -0
  189. data/_patches-20160118/CR-BELOW-THIS-LINE +4 -0
  190. data/_patches-20160118/WIP-ABOVE-THIS-LINE +4 -0
  191. data/_patches-20160118/WIP-BELOW-THIS-LINE +4 -0
  192. data/_patches-20160118/acceptance-test-runner +29 -0
  193. data/_patches-20160118/ansible-1 +92 -0
  194. data/_patches-20160118/cache-api-client-in-up +40 -0
  195. data/_patches-20160118/dead-code-in-actions +44 -0
  196. data/_patches-20160118/debug-changes +55 -0
  197. data/_patches-20160118/demo-rails-app +1276 -0
  198. data/_patches-20160118/eng-10166-halt-spec +40 -0
  199. data/_patches-20160118/eng-10256 +554 -0
  200. data/_patches-20160118/eng-10256-cr +314 -0
  201. data/_patches-20160118/eng-10256-ubuntu-testing +88 -0
  202. data/_patches-20160118/eng-10269-test-stuff +87 -0
  203. data/_patches-20160118/eng-10269-wtf +119 -0
  204. data/_patches-20160118/eng-10369 +143 -0
  205. data/_patches-20160118/eng-10369-tmp +60 -0
  206. data/_patches-20160118/eng-10919 +56 -0
  207. data/_patches-20160118/eng-11177-fix-actions-requires +44 -0
  208. data/_patches-20160118/eng-11442 +4 -0
  209. data/_patches-20160118/eng-11616 +403 -0
  210. data/_patches-20160118/eng-11616-2 +67 -0
  211. data/_patches-20160118/eng-11616-actual +184 -0
  212. data/_patches-20160118/eng-11625a +4 -0
  213. data/_patches-20160118/eng-11711 +85 -0
  214. data/_patches-20160118/eng-12232-command-spec +236 -0
  215. data/_patches-20160118/eng-12235 +83 -0
  216. data/_patches-20160118/eng-12235-override-refactor +140 -0
  217. data/_patches-20160118/eng-12240 +103 -0
  218. data/_patches-20160118/eng-12249 +40 -0
  219. data/_patches-20160118/eng-12301 +50 -0
  220. data/_patches-20160118/eng-12720 +74 -0
  221. data/_patches-20160118/eng-12843 +95 -0
  222. data/_patches-20160118/eng-13040 +291 -0
  223. data/_patches-20160118/env-source +112 -0
  224. data/_patches-20160118/frickin-vagrant-spec +163 -0
  225. data/_patches-20160118/gem-pre-version +14 -0
  226. data/_patches-20160118/gems-old +9 -0
  227. data/_patches-20160118/googles-specs +713 -0
  228. data/_patches-20160118/local-configs-ignore +61 -0
  229. data/_patches-20160118/misc +79 -0
  230. data/_patches-20160118/network-unreachable +31 -0
  231. data/_patches-20160118/new-boxfile +288 -0
  232. data/_patches-20160118/parallelization-maybe +198 -0
  233. data/_patches-20160118/port-forwarding-processes +87 -0
  234. data/_patches-20160118/read-state +23 -0
  235. data/_patches-20160118/refactor-to-use-public_address-cap +25 -0
  236. data/_patches-20160118/series +59 -0
  237. data/_patches-20160118/status +13 -0
  238. data/_patches-20160118/test-move-env-data +231 -0
  239. data/_patches-20160118/test-vagrantfile-vm1 +167 -0
  240. data/_patches-20160118/vagrant-spec-mock-api +137 -0
  241. data/_patches-20160118/vagrant-vmware-plugin +233 -0
  242. data/_patches-20160118/vagrantfile +403 -0
  243. data/_patches-20160118/vagrantfile-for-acceptance-tests +29 -0
  244. data/_patches-20160118/vagrantfile-for-nick +95 -0
  245. data/_patches-20160118/vagrantfiles-to-forget-what-they-are-for +134 -0
  246. data/_patches-20160118/vm-vanished +42 -0
  247. data/_patches-20160118a/COMPLETED-ABOVE-THIS-LINE +4 -0
  248. data/_patches-20160118a/COMPLETED-BELOW-THIS-LINE +4 -0
  249. data/_patches-20160118a/CR-ABOVE-THIS-LINE +4 -0
  250. data/_patches-20160118a/CR-BELOW-THIS-LINE +4 -0
  251. data/_patches-20160118a/WIP-ABOVE-THIS-LINE +4 -0
  252. data/_patches-20160118a/WIP-BELOW-THIS-LINE +4 -0
  253. data/_patches-20160118a/acceptance-test-runner +29 -0
  254. data/_patches-20160118a/ansible-1 +92 -0
  255. data/_patches-20160118a/bar +189 -0
  256. data/_patches-20160118a/cache-api-client-in-up +40 -0
  257. data/_patches-20160118a/dead-code-in-actions +44 -0
  258. data/_patches-20160118a/debug-changes +55 -0
  259. data/_patches-20160118a/demo-rails-app +1276 -0
  260. data/_patches-20160118a/eng-10166-halt-spec +40 -0
  261. data/_patches-20160118a/eng-10256 +554 -0
  262. data/_patches-20160118a/eng-10256-cr +314 -0
  263. data/_patches-20160118a/eng-10256-ubuntu-testing +88 -0
  264. data/_patches-20160118a/eng-10269-test-stuff +87 -0
  265. data/_patches-20160118a/eng-10269-wtf +119 -0
  266. data/_patches-20160118a/eng-10369 +143 -0
  267. data/_patches-20160118a/eng-10369-tmp +60 -0
  268. data/_patches-20160118a/eng-10919 +56 -0
  269. data/_patches-20160118a/eng-11177-fix-actions-requires +44 -0
  270. data/_patches-20160118a/eng-11442 +4 -0
  271. data/_patches-20160118a/eng-11616 +403 -0
  272. data/_patches-20160118a/eng-11616-2 +67 -0
  273. data/_patches-20160118a/eng-11616-actual +184 -0
  274. data/_patches-20160118a/eng-11625a +4 -0
  275. data/_patches-20160118a/eng-11711 +85 -0
  276. data/_patches-20160118a/eng-12232-command-spec +236 -0
  277. data/_patches-20160118a/eng-12235 +83 -0
  278. data/_patches-20160118a/eng-12235-override-refactor +140 -0
  279. data/_patches-20160118a/eng-12240 +103 -0
  280. data/_patches-20160118a/eng-12249 +40 -0
  281. data/_patches-20160118a/eng-12301 +50 -0
  282. data/_patches-20160118a/eng-12720 +74 -0
  283. data/_patches-20160118a/eng-12843 +95 -0
  284. data/_patches-20160118a/eng-13040 +291 -0
  285. data/_patches-20160118a/env-source +112 -0
  286. data/_patches-20160118a/foo +169 -0
  287. data/_patches-20160118a/frickin-vagrant-spec +163 -0
  288. data/_patches-20160118a/gem-pre-version +14 -0
  289. data/_patches-20160118a/gems-old +9 -0
  290. data/_patches-20160118a/googles-specs +713 -0
  291. data/_patches-20160118a/guestport-madness +59 -0
  292. data/_patches-20160118a/local-configs-ignore +61 -0
  293. data/_patches-20160118a/misc +79 -0
  294. data/_patches-20160118a/network-unreachable +31 -0
  295. data/_patches-20160118a/new-boxfile +288 -0
  296. data/_patches-20160118a/parallelization-maybe +198 -0
  297. data/_patches-20160118a/port-forwarding-processes +87 -0
  298. data/_patches-20160118a/read-state +23 -0
  299. data/_patches-20160118a/refactor-to-use-public_address-cap +25 -0
  300. data/_patches-20160118a/series +62 -0
  301. data/_patches-20160118a/status +14 -0
  302. data/_patches-20160118a/test-move-env-data +231 -0
  303. data/_patches-20160118a/test-vagrantfile-vm1 +167 -0
  304. data/_patches-20160118a/vagrant-spec-mock-api +137 -0
  305. data/_patches-20160118a/vagrant-vmware-plugin +233 -0
  306. data/_patches-20160118a/vagrantfile +403 -0
  307. data/_patches-20160118a/vagrantfile-for-acceptance-tests +29 -0
  308. data/_patches-20160118a/vagrantfile-for-nick +95 -0
  309. data/_patches-20160118a/vagrantfiles-to-forget-what-they-are-for +134 -0
  310. data/_patches-20160118a/vm-vanished +42 -0
  311. data/lib/vagrant-skytap/action/clear_forwarded_ports.rb +19 -0
  312. data/lib/vagrant-skytap/action/forward_ports.rb +42 -0
  313. data/lib/vagrant-skytap/action/prepare_forwarded_port_collision_params.rb +37 -0
  314. data/lib/vagrant-skytap/action.rb +18 -0
  315. data/lib/vagrant-skytap/api/environment.rb +19 -4
  316. data/lib/vagrant-skytap/api/vm.rb +10 -6
  317. data/lib/vagrant-skytap/command/up.rb +7 -1
  318. data/lib/vagrant-skytap/errors.rb +4 -0
  319. data/lib/vagrant-skytap/hosts/bsd/cap/ssh_tunnel.rb +15 -0
  320. data/lib/vagrant-skytap/hosts/common/cap/ssh_tunnel.rb +183 -0
  321. data/lib/vagrant-skytap/hosts/linux/cap/ssh_tunnel.rb +15 -0
  322. data/lib/vagrant-skytap/hosts/windows/cap/ssh_tunnel.rb +27 -0
  323. data/lib/vagrant-skytap/model/forwarded_port.rb +78 -0
  324. data/lib/vagrant-skytap/plugin.rb +15 -0
  325. data/lib/vagrant-skytap/util/compile_forwarded_ports.rb +35 -0
  326. data/lib/vagrant-skytap/version.rb +1 -1
  327. data/locales/en.yml +3 -0
  328. data/spec/unit/environment_spec.rb +14 -2
  329. data/spec/unit/forwarded_port_spec.rb +45 -0
  330. data/spec/unit/hosts/common/cap/ssh_tunnel_spec.rb +180 -0
  331. data/spec/unit/prepare_collision_params_spec.rb +57 -0
  332. data/spec/unit/support/forwarded_ports/machines/vm1/skytap/id +1 -0
  333. data/spec/unit/support/forwarded_ports/machines/vm1/skytap/private_key +4 -0
  334. data/spec/unit/support/forwarded_ports/machines/vm1/skytap/tcp9000_tcp_9000_80.pid +1 -0
  335. data/spec/unit/support/forwarded_ports/machines/vm1/skytap/tcp9001_tcp_9001_81.pid +1 -0
  336. data/spec/unit/support/forwarded_ports/machines/vm1/virtualbox/id +1 -0
  337. data/spec/unit/support/forwarded_ports/machines/vm2/skytap/id +1 -0
  338. data/spec/unit/support/forwarded_ports/machines/vm2/skytap/tcp8080_tcp_8080_80.pid +1 -0
  339. data/spec/unit/support/forwarded_ports/machines/vm3/virtualbox/id +1 -0
  340. data/spec/unit/support/forwarded_ports/machines/vm4/skytap/id +1 -0
  341. data/spec/unit/support/forwarded_ports/machines/vm4/skytap/tcp8888_tcp_8888_80.pid +1 -0
  342. metadata +330 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6898194d6dcdf6ccc89dcba1e02a441e4262ba1a
4
- data.tar.gz: b7f877591cc2d209443f9e0ef4c06fff265515bd
3
+ metadata.gz: 9803dcd4a9599d58a78653c2feffcd9748441012
4
+ data.tar.gz: 9e22383d99a894143de9a12db928b8af9211e175
5
5
  SHA512:
6
- metadata.gz: 2ef67a6a2c5bbdfcf088a0b9d2ff80966df2018b08c7e90bde42139a902a3de7ccc1fd5b22c8eaae76abe5b6a1b3a4e1f867ebda6961f2ac245a41c7da3e5376
7
- data.tar.gz: beb9539902e8e1651f90a61e10659710ef40154e066a8b7acb712d1ed3dd1eed778c448b6bfd50009f17b39d5199e7fa5c8ff70237165dd89743e11104603b46
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
- args.last[:env].merge!("AUTOSSH_LOGFILE" => "/Users/bubbbbbba/autossh.log")
4
- args.last[:env]
5
+ message
6
+ finish
7
+ object
8
+ s
5
9
  args
6
- args[:env]
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
- process.pid
12
- io_data
81
+ c
82
+ get_fp_from_directory(search_paths.first)
83
+ search_paths
13
84
  n
14
- process.stdout.read
85
+ s
86
+ args
15
87
  n
16
- process.exit_code
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
- @options
19
- @options.delete(nil)
20
- @options[nil]
21
- @options
22
- @options[:env].merge!("AUTOSSH_LOGFILE" => "/blah")
23
- @options
24
- @options[:env["AUTOSSH_LOGFILE"]] = "/blah"
25
- @options
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
- config.vm.networks.count
148
+ get_api_attribute('configuration_url')
31
149
  c
32
- @env[:machine].name
33
- @env[:forwarded_ports]
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 one or more Skytap templates
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 environment through the Skytap UI to anyone with the URL. A password may be specified. Access may be revoked by deleting the published URL with the `vagrant publish-url delete` subcommand. (Skytap users with appropriate permissions may still access the environment through the UI if desired.)
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
+ ![Shared environment view](//help.skytap.com/Content/Resources/Images/PublishedURLView.png)
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 must come from a template, not an environment, and they must be saved in the powered off state.
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 templates containing the source VMs.
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
- * At this time, `vagrant share` is not supported.
185
- * High-level networking features (including port forwarding and private networks) are currently unsupported.
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']