vagrant-skytap 0.1.11 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,87 @@
1
+ # HG changeset patch
2
+ # Parent fe283b200076d7f296364e54d4426e3a9b643743
3
+ processes host cap -- more harm than good?
4
+
5
+ diff -r fe283b200076 -r ba1629d34236 lib/vagrant-skytap/hosts/common/cap/processes.rb
6
+ --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7
+ +++ b/lib/vagrant-skytap/hosts/common/cap/processes.rb Mon Jan 18 13:38:12 2016 -0800
8
+ @@ -0,0 +1,24 @@
9
+ +require 'log4r'
10
+ +
11
+ +module VagrantPlugins
12
+ + module Skytap
13
+ + module HostCommon
14
+ + module Cap
15
+ + class Processes
16
+ + class << self
17
+ + def create_logger
18
+ + raise NotImplementedError
19
+ + end
20
+ +
21
+ + # Gets the name of the executable for the given pid.
22
+ + #
23
+ + # @return [String]
24
+ + def get_comm_for_pid(pid)
25
+ + raise NotImplementedException
26
+ + end
27
+ + end
28
+ + end
29
+ + end
30
+ + end
31
+ + end
32
+ +end
33
+ diff -r fe283b200076 -r ba1629d34236 lib/vagrant-skytap/hosts/darwin/cap/processes.rb
34
+ --- /dev/null Thu Jan 01 00:00:00 1970 +0000
35
+ +++ b/lib/vagrant-skytap/hosts/darwin/cap/processes.rb Mon Jan 18 13:38:12 2016 -0800
36
+ @@ -0,0 +1,32 @@
37
+ +require "vagrant-skytap/hosts/common/cap/processes"
38
+ +require "vagrant/util/subprocess"
39
+ +
40
+ +module VagrantPlugins
41
+ + module Skytap
42
+ + module HostDarwin
43
+ + module Cap
44
+ + class Processes < VagrantPlugins::Skytap::HostCommon::Cap::Processes
45
+ + class << self
46
+ + def create_logger
47
+ + Log4r::Logger.new("vagrant::hosts::darwin")
48
+ + end
49
+ +
50
+ + # Gets the name of the executable for the given pid.
51
+ + #
52
+ + # @return [String]
53
+ + def get_comm_for_pid(env, pid)
54
+ + logger = create_logger
55
+ + result = Vagrant::Util::Subprocess.execute("ps", "-p", pid.to_s, "-o", "comm")
56
+ + if result.exit_code == 0
57
+ + result.stdout.split("\n").last
58
+ + else
59
+ + logger.debug(result.inspect)
60
+ + ''
61
+ + end
62
+ + end
63
+ + end
64
+ + end
65
+ + end
66
+ + end
67
+ + end
68
+ +end
69
+ diff -r fe283b200076 -r ba1629d34236 lib/vagrant-skytap/plugin.rb
70
+ --- a/lib/vagrant-skytap/plugin.rb Mon Jan 18 13:37:48 2016 -0800
71
+ +++ b/lib/vagrant-skytap/plugin.rb Mon Jan 18 13:38:12 2016 -0800
72
+ @@ -49,6 +49,15 @@
73
+ Cap::PublicAddress
74
+ end
75
+
76
+ + %w[get_comm_for_pid].each do |cap|
77
+ + # We're only registering this cap for OSes that
78
+ + # we know return the correct result.
79
+ + host_capability("darwin", cap) do
80
+ + require_relative "hosts/darwin/cap/processes"
81
+ + HostDarwin::Cap::Processes
82
+ + end
83
+ + end
84
+ +
85
+ %w[start_ssh_tunnel kill_ssh_tunnel kill_forwarded_ports].each do |cap|
86
+ host_capability("bsd", cap) do
87
+ require_relative "hosts/bsd/cap/ssh_tunnel"
@@ -0,0 +1,23 @@
1
+ # HG changeset patch
2
+ # Parent 8bcd0f98359d1e6e85b806f457755cbcc85255e4
3
+ diff -r 8bcd0f98359d -r 22788fec55a7 lib/vagrant-skytap/action/read_state.rb
4
+ --- a/lib/vagrant-skytap/action/read_state.rb Thu Nov 19 11:24:44 2015 -0800
5
+ +++ b/lib/vagrant-skytap/action/read_state.rb Thu Nov 19 11:24:49 2015 -0800
6
+ @@ -22,14 +22,10 @@
7
+ @app.call(env)
8
+ end
9
+
10
+ + # Assumes FetchEnvironment was called to populate env[:environment].
11
+ def read_state(machine)
12
+ - if VmProperties.read(machine.data_dir)
13
+ - if environment = env[:environment]
14
+ - environment.reload
15
+ - elsif props = API::Environment.properties(env)
16
+ - @logger.info("env[:environment] was not set!")
17
+ - end
18
+ -
19
+ + if environment = env[:environment]
20
+ + environment.reload
21
+ if vm = environment.try(:current_vm)
22
+ return vm.runstate.to_sym
23
+ end
@@ -0,0 +1,25 @@
1
+ # HG changeset patch
2
+ # Parent 37bcd8389c3f5d6e1d618b020c7decf7949a2f25
3
+ diff -r 37bcd8389c3f -r febe6d83e803 lib/vagrant-skytap/action/prepare_nfs_settings.rb
4
+ --- a/lib/vagrant-skytap/action/prepare_nfs_settings.rb Wed Dec 02 17:37:41 2015 -0800
5
+ +++ b/lib/vagrant-skytap/action/prepare_nfs_settings.rb Wed Dec 02 17:37:46 2015 -0800
6
+ @@ -15,7 +15,7 @@
7
+
8
+ if using_nfs?
9
+ env[:nfs_host_ip] = read_host_ip
10
+ - env[:nfs_machine_ip] = read_machine_ip
11
+ + env[:nfs_machine_ip] = machine.provider.capability(:public_address)
12
+ end
13
+
14
+ @app.call(env)
15
+ @@ -35,10 +35,6 @@
16
+ @logger.debug "read_host_ip returning #{ret}"
17
+ end
18
+ end
19
+ -
20
+ - def read_machine_ip
21
+ - machine.ssh_info[:host]
22
+ - end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,59 @@
1
+ gem-pre-version
2
+ local-configs-ignore
3
+ debug-changes
4
+ acceptance-test-runner
5
+ gems-old
6
+ vagrantfile
7
+ vagrantfile-for-acceptance-tests
8
+ CR-ABOVE-THIS-LINE
9
+ CR-BELOW-THIS-LINE
10
+ COMPLETED-ABOVE-THIS-LINE
11
+ COMPLETED-BELOW-THIS-LINE
12
+ WIP-ABOVE-THIS-LINE
13
+ eng-10256
14
+ eng-10256-cr
15
+ port-forwarding-processes
16
+ eng-13040
17
+ eng-12720
18
+ eng-10256-ubuntu-testing
19
+ eng-12843
20
+ test-vagrantfile-vm1
21
+ eng-12235-override-refactor
22
+ eng-12232-command-spec
23
+ eng-12235
24
+ frickin-vagrant-spec
25
+ eng-12249
26
+ cache-api-client-in-up
27
+ eng-12301
28
+ vagrantfiles-to-forget-what-they-are-for
29
+ eng-12240
30
+ vagrantfile-for-nick
31
+ refactor-to-use-public_address-cap
32
+ eng-10269-test-stuff
33
+ demo-rails-app
34
+ read-state
35
+ eng-11616
36
+ eng-11616-2
37
+ eng-11616-actual
38
+ eng-10269-wtf
39
+ parallelization-maybe
40
+ eng-10369
41
+ vm-vanished
42
+ eng-10369-tmp
43
+ eng-11625a
44
+ eng-11711
45
+ network-unreachable
46
+ eng-11442
47
+ WIP-BELOW-THIS-LINE
48
+ new-boxfile
49
+ ansible-1
50
+ misc
51
+ vagrant-spec-mock-api
52
+ eng-10919
53
+ env-source
54
+ eng-11177-fix-actions-requires
55
+ dead-code-in-actions
56
+ eng-10166-halt-spec
57
+ vagrant-vmware-plugin
58
+ test-move-env-data
59
+ googles-specs
@@ -0,0 +1,13 @@
1
+ 813456f18a2d7810c0785efa925e2516a7fa5729:gem-pre-version
2
+ 7f14d802de4291b2efdc17b40fd0fe9c189e274d:local-configs-ignore
3
+ f58d23763657d7390d29235fd709fc61ecc76490:debug-changes
4
+ 17a12e519015a5986884ee2bbeead0f7b3135ae7:acceptance-test-runner
5
+ d1cb8fab445ff9d4913417f6cec1f399c8edda79:gems-old
6
+ 44e88c2d194ecc78aa8efdb55bea28d90bcc9147:vagrantfile
7
+ 6e203277c01d9617c0e124da8d2641f5ed0bfec2:vagrantfile-for-acceptance-tests
8
+ 5e5eb3471fc9f6c38f24b4f813a981063543f221:CR-ABOVE-THIS-LINE
9
+ 0237e8774c138da308c648254f00e3e1b69c3367:CR-BELOW-THIS-LINE
10
+ ad1ff25e401370c9d1d974aac2d5795df27ca24f:COMPLETED-ABOVE-THIS-LINE
11
+ 40be46504011dabcf4bd458d9ecad34c48dcc8e0:COMPLETED-BELOW-THIS-LINE
12
+ b669f28f24c6872c9a436d1673eea9be62f1f6b4:WIP-ABOVE-THIS-LINE
13
+ c4f5983e2c63e1e0ca7b515308b5683f8d4c0967:eng-10256
@@ -0,0 +1,231 @@
1
+ # HG changeset patch
2
+ # Parent b53e5fb4613bca1379e20e6d91ee14addfca153a
3
+ tests for separating environment data
4
+
5
+ diff --git a/lib/vagrant-skytap/action/create_environment.rb b/lib/vagrant-skytap/action/create_environment.rb
6
+ --- a/lib/vagrant-skytap/action/create_environment.rb
7
+ +++ b/lib/vagrant-skytap/action/create_environment.rb
8
+ @@ -28,7 +28,8 @@
9
+ def call(env)
10
+ environment = API::Environment.create!(env, template_url)
11
+ env[:environment] = environment
12
+ - environment.global_properties.write('url' => environment.url)
13
+ + write_environment_url(environment.url)
14
+ + #environment.global_properties.write('url' => environment.url)
15
+ environment.wait_until_ready
16
+
17
+ #TODO:NLA What's the right way to get this set? And where? Does it need to be set at all?
18
+ @@ -42,6 +43,10 @@
19
+ def template_url
20
+ env[:machine].provider_config.template_url
21
+ end
22
+ +
23
+ + def write_environment_url(url)
24
+ + env[:environment].global_properties.write('url' => url)
25
+ + end
26
+ end
27
+ end
28
+ end
29
+ diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
30
+ --- a/spec/spec_helper.rb
31
+ +++ b/spec/spec_helper.rb
32
+ @@ -1,1 +1,7 @@
33
+ -
34
+ +require "unit/support/dummy_communicator"
35
+ +require "unit/support/dummy_provider"
36
+ +require "unit/support/shared/base_context"
37
+ +require "unit/support/shared/action_synced_folders_context"
38
+ +require "unit/support/shared/capability_helpers_context"
39
+ +require "unit/support/shared/plugin_command_context"
40
+ +require "unit/support/shared/virtualbox_context"
41
+ diff --git a/spec/support/isolated_environment.rb b/spec/support/isolated_environment.rb
42
+ new file mode 100644
43
+ --- /dev/null
44
+ +++ b/spec/support/isolated_environment.rb
45
+ @@ -0,0 +1,45 @@
46
+ +require "fileutils"
47
+ +require "pathname"
48
+ +require "tmpdir"
49
+ +
50
+ +require "log4r"
51
+ +
52
+ +# This class manages an isolated environment for Vagrant to
53
+ +# run in. It creates a temporary directory to act as the
54
+ +# working directory as well as sets a custom home directory.
55
+ +#
56
+ +# This class also provides various helpers to create Vagrantfiles,
57
+ +# boxes, etc.
58
+ +class IsolatedEnvironment
59
+ + attr_reader :homedir
60
+ + attr_reader :workdir
61
+ +
62
+ + # Initializes an isolated environment. You can pass in some
63
+ + # options here to configure runing custom applications in place
64
+ + # of others as well as specifying environmental variables.
65
+ + #
66
+ + # @param [Hash] apps A mapping of application name (such as "vagrant")
67
+ + # to an alternate full path to the binary to run.
68
+ + # @param [Hash] env Additional environmental variables to inject
69
+ + # into the execution environments.
70
+ + def initialize
71
+ + @logger = Log4r::Logger.new("test::isolated_environment")
72
+ +
73
+ + # Create a temporary directory for our work
74
+ + @tempdir = Dir.mktmpdir("vagrant")
75
+ + @logger.info("Initialize isolated environment: #{@tempdir}")
76
+ +
77
+ + # Setup the home and working directories
78
+ + @homedir = Pathname.new(File.join(@tempdir, "home"))
79
+ + @workdir = Pathname.new(File.join(@tempdir, "work"))
80
+ +
81
+ + @homedir.mkdir
82
+ + @workdir.mkdir
83
+ + end
84
+ +
85
+ + # This closes the environment by cleaning it up.
86
+ + def close
87
+ + @logger.info("Removing isolated environment: #{@tempdir}")
88
+ + FileUtils.rm_rf(@tempdir)
89
+ + end
90
+ +end
91
+ diff --git a/spec/vagrant-skytap/config_spec.rb b/spec/unit/config_spec.rb
92
+ rename from spec/vagrant-skytap/config_spec.rb
93
+ rename to spec/unit/config_spec.rb
94
+ diff --git a/spec/unit/create_environment_spec.rb b/spec/unit/create_environment_spec.rb
95
+ new file mode 100644
96
+ --- /dev/null
97
+ +++ b/spec/unit/create_environment_spec.rb
98
+ @@ -0,0 +1,81 @@
99
+ +require 'spec_helper'
100
+ +require 'vagrant-skytap/action/create_environment'
101
+ +
102
+ +describe VagrantPlugins::Skytap::Action::CreateEnvironment do
103
+ + include_context "unit"
104
+ +
105
+ + let(:iso_env) do
106
+ + # We have to create a Vagrantfile so there is a root path
107
+ + env = isolated_environment
108
+ + env.vagrantfile("")
109
+ + env.create_vagrant_env
110
+ + end
111
+ +
112
+ + #let(:machine) { iso_env.machine(iso_env.machine_names[0], :dummy) }
113
+ + let(:machine) do
114
+ + iso_env.machine(iso_env.machine_names[0], :dummy).tap do |m|
115
+ + m.provider.stub(driver: driver)
116
+ + end
117
+ + end
118
+ +
119
+ + # let(:app) { nil }
120
+ + # let(:env) { {} }
121
+ + # subject(:action) { described_class.new(app, env) }
122
+ + let(:env) {{ machine: machine }}
123
+ + let(:app) { lambda { |*args| }}
124
+ + let(:driver) { double("driver") }
125
+ + let(:host) { double("host") }
126
+ +
127
+ + subject { described_class.new(app, env) }
128
+ +
129
+ + before do
130
+ + env[:test] = true
131
+ + allow(machine.env).to receive(:host) { host }
132
+ + allow(host).to receive(:capability).with(:nfs_installed) { true }
133
+ + end
134
+ +
135
+ +
136
+ + it "calls the next action in the chain" do
137
+ + driver.stub(read_network_interfaces: {2 => {type: :hostonly, hostonly: "vmnet2"}})
138
+ + driver.stub(read_host_only_interfaces: [{name: "vmnet2", ip: "1.2.3.4"}])
139
+ + allow(driver).to receive(:read_guest_ip).with(1).and_return("2.3.4.5")
140
+ +
141
+ + called = false
142
+ + app = lambda { |*args| called = true }
143
+ +
144
+ + action = described_class.new(app, env)
145
+ + action.call(env)
146
+ +
147
+ + expect(called).to eq(true)
148
+ + end
149
+ +
150
+ + # describe '#template_url' do
151
+ + # subject(:args) { action.template_url }
152
+ + #
153
+ + # context 'with no ssh options' do
154
+ + # let(:options) { [] }
155
+ + #
156
+ + # it { should eql [] }
157
+ + # end
158
+ + #
159
+ + # context 'with one option' do
160
+ + # let(:options) { ['StrictHostKeyChecking=no'] }
161
+ + # it { should eql ["-o 'StrictHostKeyChecking=no'"] }
162
+ + # end
163
+ + #
164
+ + # context 'with multiple options' do
165
+ + # let(:options) { ['SHKC=no', 'Port=222'] }
166
+ + # it { should eql ["-o 'SHKC=no'", "-o 'Port=222'"] }
167
+ + # end
168
+ + # end
169
+ +
170
+ + describe '#write_environment_url' do
171
+ + subject(:args) { 'http://foo/bar' }
172
+ +
173
+ + context 'whatever' do
174
+ + #let(:options) { [] }
175
+ +
176
+ + it { should eql 'http://foo/bar' }
177
+ + end
178
+ + end
179
+ +end
180
+ diff --git a/spec/unit/environment_spec.rb b/spec/unit/environment_spec.rb
181
+ new file mode 100644
182
+ --- /dev/null
183
+ +++ b/spec/unit/environment_spec.rb
184
+ @@ -0,0 +1,23 @@
185
+ +require 'vagrant-skytap/api/environment'
186
+ +
187
+ +describe VagrantPlugins::Skytap::API::Environment do
188
+ + let(:attrs) { {} }
189
+ + let(:env) { {} }
190
+ + let(:instance) { described_class.new(attrs, env) }
191
+ +
192
+ + describe "#busy?" do
193
+ + context "it is busy" do
194
+ + let(:runstate) { 'busy' }
195
+ +
196
+ + #instance.busy?.should be_true
197
+ + end
198
+ +
199
+ +
200
+ +# context "it is stopped" do
201
+ +# let(:runstate) { 'stopped' }
202
+ +#
203
+ +# instance.busy?.should be_false
204
+ +# end
205
+ +
206
+ + end
207
+ +end
208
+ diff --git a/spec/vagrant-skytap/unit/support/dummy_communicator.rb b/spec/unit/support/dummy_communicator.rb
209
+ rename from spec/vagrant-skytap/unit/support/dummy_communicator.rb
210
+ rename to spec/unit/support/dummy_communicator.rb
211
+ diff --git a/spec/vagrant-skytap/unit/support/dummy_provider.rb b/spec/unit/support/dummy_provider.rb
212
+ rename from spec/vagrant-skytap/unit/support/dummy_provider.rb
213
+ rename to spec/unit/support/dummy_provider.rb
214
+ diff --git a/spec/vagrant-skytap/unit/support/isolated_environment.rb b/spec/unit/support/isolated_environment.rb
215
+ rename from spec/vagrant-skytap/unit/support/isolated_environment.rb
216
+ rename to spec/unit/support/isolated_environment.rb
217
+ diff --git a/spec/vagrant-skytap/unit/support/shared/action_synced_folders_context.rb b/spec/unit/support/shared/action_synced_folders_context.rb
218
+ rename from spec/vagrant-skytap/unit/support/shared/action_synced_folders_context.rb
219
+ rename to spec/unit/support/shared/action_synced_folders_context.rb
220
+ diff --git a/spec/vagrant-skytap/unit/support/shared/base_context.rb b/spec/unit/support/shared/base_context.rb
221
+ rename from spec/vagrant-skytap/unit/support/shared/base_context.rb
222
+ rename to spec/unit/support/shared/base_context.rb
223
+ diff --git a/spec/vagrant-skytap/unit/support/shared/capability_helpers_context.rb b/spec/unit/support/shared/capability_helpers_context.rb
224
+ rename from spec/vagrant-skytap/unit/support/shared/capability_helpers_context.rb
225
+ rename to spec/unit/support/shared/capability_helpers_context.rb
226
+ diff --git a/spec/vagrant-skytap/unit/support/shared/plugin_command_context.rb b/spec/unit/support/shared/plugin_command_context.rb
227
+ rename from spec/vagrant-skytap/unit/support/shared/plugin_command_context.rb
228
+ rename to spec/unit/support/shared/plugin_command_context.rb
229
+ diff --git a/spec/vagrant-skytap/unit/support/shared/virtualbox_context.rb b/spec/unit/support/shared/virtualbox_context.rb
230
+ rename from spec/vagrant-skytap/unit/support/shared/virtualbox_context.rb
231
+ rename to spec/unit/support/shared/virtualbox_context.rb
@@ -0,0 +1,167 @@
1
+ # HG changeset patch
2
+ # Parent 0c6dac6a7f7675f19b0be8bd06286ac74627356c
3
+ diff -r 0c6dac6a7f76 -r a12a5438b54d vm1/Vagrantfile
4
+ --- a/vm1/Vagrantfile Wed Dec 23 17:24:01 2015 -0800
5
+ +++ b/vm1/Vagrantfile Wed Dec 23 17:24:39 2015 -0800
6
+ @@ -1,148 +1,26 @@
7
+ -vpns = {
8
+ - etrue_prod: "/vpns/vpn-711360",
9
+ - etrue_test: "/vpns/vpn-286952",
10
+ - vagrant_provider_test: "/vpns/vpn-3195669",
11
+ - jsmith_dev: "/vpns/vpn-8797011425",
12
+ -}
13
+ -
14
+ -base_urls = {
15
+ - prod: "https://cloud.skytap.com/",
16
+ - test: "https://test.skytap.com/",
17
+ - integ: "https://integ.skytap.com/",
18
+ - dev: "https://cloud.skytap.dev/",
19
+ -}
20
+ -
21
+ -settings = {
22
+ - etrue_prod: {
23
+ - username: "etrue",
24
+ - api_token: "fcb2620b72efddbc8239e25db9d812f510c7e166",
25
+ - base_url: base_urls[:prod],
26
+ - vpn_url: vpns[:etrue_prod],
27
+ - },
28
+ - etrue_test: {
29
+ - username: "etrue",
30
+ - api_token: "d41e7b2f98b63844512c0d62d0e5496949d35f57",
31
+ - base_url: base_urls[:test],
32
+ - vpn_url: vpns[:etrue_test],
33
+ - },
34
+ - vagrant_provider_admin: {
35
+ - username: "vagrant_provider_admin",
36
+ - api_token: "7c5718531a32eb90e92c804ce1f73da98be22cdf",
37
+ - base_url: base_urls[:test],
38
+ - vpn_url: vpns[:vagrant_provider_test],
39
+ - },
40
+ - jsmith_dev: {
41
+ - username: "jsmith",
42
+ - api_token: "754be5220955f35840498340606b4dfa89f7eb61",
43
+ - base_url: base_urls[:dev],
44
+ - vpn_url: vpns[:jsmith_dev],
45
+ - },
46
+ -}
47
+ -
48
+ -vms = {
49
+ - golden: {
50
+ - vm_url: "https://cloud.skytap.com/vms/6869434"
51
+ - },
52
+ - nick_for_bootcamp: {
53
+ - vm_url: "https://cloud.skytap.com/vms/7878190",
54
+ - },
55
+ - take1: {
56
+ - vm_url: "https://test.skytap.com/vms/6984688",
57
+ - username: "autoadmin",
58
+ - password: "autoadmin",
59
+ - },
60
+ - ubuntu1: {
61
+ - vm_url: "https://cloud.skytap.com/vms/7285844"
62
+ - },
63
+ - ubuntu2: {
64
+ - vm_url: "https://cloud.skytap.com/vms/7285846",
65
+ - username: "skytap",
66
+ - password: "CarpYe$$$"
67
+ - },
68
+ - ubuntu_with_vagrant: {vm_url: "https://cloud.skytap.com/vms/7397734"},
69
+ - us_east: {vm_url: "https://cloud.skytap.com/vms/6232386"},
70
+ - emea: {vm_url: "https://cloud.skytap.com/vms/4153172"},
71
+ - eng11490: {vm_url: "https://cloud.skytap.com/templates/696065"},
72
+ - no_disk: {vm_url: "https://cloud.skytap.com/vms/7500356"},
73
+ - public_template_no_sudoers: {
74
+ - vm_url: "https://cloud.skytap.com/vms/3157858",
75
+ - },
76
+ - windows_winrm_configured: {
77
+ - vm_url: "https://cloud.skytap.com/vms/7242468",
78
+ - username: "Administrator",
79
+ - password: "admin",
80
+ - communicator: :winrm,
81
+ - },
82
+ - vm_on_dev: {
83
+ - vm_url:"https://cloud.skytap.dev/vms/372"
84
+ - },
85
+ -}.tap do |ret|
86
+ - ret.each do |key, vm|
87
+ - vm[:username] ||= "skytap"
88
+ - vm[:password] ||= "ChangeMe!"
89
+ - vm[:communicator] ||= :ssh
90
+ - end
91
+ -end
92
+ -
93
+ -##################################
94
+ -settings_key = :etrue_prod
95
+ -vm1_key = :golden
96
+ -vm2_key = :windows_winrm_configured
97
+ -vm3_key = :ubuntu2
98
+ -#############################
99
+ -
100
+ +$script = <<SCRIPT
101
+ + sudo apt-get update
102
+ + sudo apt-get install -y apache2 lynx-cur
103
+ + #sudo update-rc.d apache2 enable
104
+ +SCRIPT
105
+
106
+ Vagrant.configure(2) do |config|
107
+ config.vm.box = "skytap/empty"
108
+ config.vm.synced_folder ".", "/vagrant", disabled: true
109
+
110
+ config.vm.provider :skytap do |skytap, override|
111
+ - skytap.username = settings[settings_key][:username]
112
+ - skytap.api_token = settings[settings_key][:api_token]
113
+ - skytap.base_url = settings[settings_key][:base_url]
114
+ - skytap.vpn_url = settings[settings_key][:vpn_url]
115
+ + skytap.username = "foo"
116
+ + skytap.api_token = "bar"
117
+ + skytap.vpn_url = "/vpns/vpn-711360"
118
+ end
119
+
120
+ config.vm.define "vm1" do |box|
121
+ - #box.vm.hostname = "vm1"
122
+ box.vm.provider :skytap do |box|
123
+ - box.vm_url = vms[vm1_key][:vm_url]
124
+ - #box.cpus = 1
125
+ + box.vm_url = "/vms/6869434"
126
+ end
127
+ - box.ssh.username = vms[vm1_key][:username]
128
+ - box.ssh.password = vms[vm1_key][:password]
129
+ - box.vm.communicator = vms[vm1_key][:communicator]
130
+ - box.vm.synced_folder "vm1", "/synced", type: :nfs
131
+ - #box.vm.provision "shell", path: "provisioning/trivial.sh"
132
+ - box.vm.provision "shell", path: "provisioning/vagrant.sh"
133
+ -
134
+ - #box.vm.network :forwarded_port, guest: 80, host: 9000
135
+ - #box.vm.network :forwarded_port, guest: 21, host: 9001
136
+ + box.ssh.username = "skytap"
137
+ + box.ssh.password = "ChangeMe!"
138
+ + box.vm.provision "shell", inline: $script
139
+ + box.vm.network :forwarded_port, guest: 80, host: 8080
140
+ end
141
+ -
142
+ -# config.vm.define "vm2" do |box|
143
+ -# box.vm.hostname = "vm2"
144
+ -# box.vm.provider :skytap do |box|
145
+ -# box.vm_url = vms[vm2_key][:vm_url]
146
+ -# end
147
+ -# box.ssh.username = vms[vm2_key][:username]
148
+ -# box.ssh.password = vms[vm2_key][:password]
149
+ -# box.vm.communicator = vms[vm2_key][:communicator]
150
+ -# box.vm.synced_folder "vm2", "/synced", type: :nfs
151
+ -# end
152
+ -#
153
+ -# config.vm.define "vm3" do |box|
154
+ -# box.vm.hostname = "vm3"
155
+ -# box.vm.provider :skytap do |box|
156
+ -# box.vm_url = vms[vm3_key][:vm_url]
157
+ -# end
158
+ -# box.ssh.username = vms[vm3_key][:username]
159
+ -# box.ssh.password = vms[vm3_key][:password]
160
+ -# box.vm.communicator = vms[vm3_key][:communicator]
161
+ -# box.vm.synced_folder "vm3", "/synced", type: :nfs
162
+ -# box.vm.provision "shell", path: "provisioning/trivial.sh"
163
+ -# end
164
+ end
165
+ -
166
+ -#ubuntu.vm.synced_folder "vm1", "/home/skytap/app", type: :nfs, :mount_options => ['actimeo=1']
167
+ -