vagrant-clone 0.0.1 → 0.0.3

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 (306) hide show
  1. checksums.yaml +4 -4
  2. data/.idea/.rakeTasks +7 -0
  3. data/.idea/inspectionProfiles/Project_Default.xml +6 -0
  4. data/.idea/misc.xml +4 -0
  5. data/.idea/modules.xml +8 -0
  6. data/.idea/runConfigurations/clone.xml +21 -0
  7. data/.idea/runConfigurations/libvirt.xml +21 -0
  8. data/.idea/vagrant-clone.iml +114 -0
  9. data/.idea/vcs.xml +6 -0
  10. data/.idea/workspace.xml +948 -0
  11. data/Gemfile +9 -3
  12. data/Gemfile.lock +123 -37
  13. data/Rakefile +2 -1
  14. data/Vagrantfile +9 -0
  15. data/cookbooks/apt/CHANGELOG.md +321 -0
  16. data/cookbooks/apt/CONTRIBUTING.md +2 -0
  17. data/cookbooks/apt/MAINTAINERS.md +15 -0
  18. data/cookbooks/apt/README.md +250 -0
  19. data/cookbooks/apt/attributes/default.rb +57 -0
  20. data/cookbooks/apt/files/15update-stamp +1 -0
  21. data/cookbooks/apt/files/apt-proxy-v2.conf +50 -0
  22. data/cookbooks/apt/libraries/helpers.rb +49 -0
  23. data/cookbooks/apt/libraries/matchers.rb +16 -0
  24. data/cookbooks/apt/metadata.json +1 -0
  25. data/cookbooks/apt/recipes/cacher-client.rb +52 -0
  26. data/cookbooks/apt/recipes/cacher-ng.rb +39 -0
  27. data/cookbooks/apt/recipes/default.rb +93 -0
  28. data/cookbooks/apt/recipes/unattended-upgrades.rb +47 -0
  29. data/cookbooks/apt/resources/preference.rb +90 -0
  30. data/cookbooks/apt/templates/01proxy.erb +11 -0
  31. data/cookbooks/apt/templates/10dpkg-options.erb +8 -0
  32. data/cookbooks/apt/templates/10recommends.erb +3 -0
  33. data/cookbooks/apt/templates/20auto-upgrades.erb +5 -0
  34. data/cookbooks/apt/templates/50unattended-upgrades.erb +75 -0
  35. data/cookbooks/apt/templates/acng.conf.erb +275 -0
  36. data/cookbooks/apt/templates/unattended-upgrades.seed.erb +1 -0
  37. data/cookbooks/build-essential/.foodcritic +1 -0
  38. data/cookbooks/build-essential/CHANGELOG.md +257 -0
  39. data/cookbooks/build-essential/CONTRIBUTING.md +2 -0
  40. data/cookbooks/build-essential/MAINTAINERS.md +15 -0
  41. data/cookbooks/build-essential/README.md +134 -0
  42. data/cookbooks/build-essential/attributes/default.rb +21 -0
  43. data/cookbooks/build-essential/libraries/matchers.rb +9 -0
  44. data/cookbooks/build-essential/metadata.json +1 -0
  45. data/cookbooks/build-essential/recipes/_windows.rb +53 -0
  46. data/cookbooks/build-essential/recipes/default.rb +24 -0
  47. data/cookbooks/build-essential/resources/build_essential.rb +106 -0
  48. data/cookbooks/build-essential/resources/xcode_command_line_tools.rb +61 -0
  49. data/cookbooks/compat_resource/CHANGELOG.md +53 -0
  50. data/cookbooks/compat_resource/CONTRIBUTING.md +2 -0
  51. data/cookbooks/compat_resource/MAINTAINERS.md +16 -0
  52. data/cookbooks/compat_resource/README.md +60 -0
  53. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/constants.rb +47 -0
  54. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/delayed_evaluator.rb +40 -0
  55. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/core.rb +73 -0
  56. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/declare_resource.rb +315 -0
  57. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/platform_introspection.rb +292 -0
  58. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/recipe.rb +37 -0
  59. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/universal.rb +70 -0
  60. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/lazy_module_include.rb +98 -0
  61. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/notifying_block.rb +74 -0
  62. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/params_validate.rb +510 -0
  63. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/powershell_out.rb +117 -0
  64. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/properties.rb +328 -0
  65. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/property.rb +713 -0
  66. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/apt_repository.rb +269 -0
  67. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/apt_update.rb +105 -0
  68. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/noop.rb +56 -0
  69. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/support/yum_repo.erb +132 -0
  70. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/systemd_unit.rb +253 -0
  71. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/yum_repository.rb +136 -0
  72. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb +164 -0
  73. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/action_class.rb +114 -0
  74. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/apt_repository.rb +65 -0
  75. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/apt_update.rb +52 -0
  76. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/systemd_unit.rb +81 -0
  77. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/yum_repository.rb +97 -0
  78. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource.rb +214 -0
  79. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource_builder.rb +174 -0
  80. data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef.rb +29 -0
  81. data/cookbooks/compat_resource/files/lib/chef_compat/mixin/properties.rb +8 -0
  82. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/exceptions.rb +10 -0
  83. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/log.rb +30 -0
  84. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/mixin/params_validate.rb +17 -0
  85. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/node.rb +9 -0
  86. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/property.rb +15 -0
  87. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/provider.rb +65 -0
  88. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/recipe.rb +118 -0
  89. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/recipe_hook.rb +20 -0
  90. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource/lwrp_base.rb +60 -0
  91. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource.rb +156 -0
  92. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_builder.rb +167 -0
  93. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_list.rb +49 -0
  94. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_set.rb +49 -0
  95. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection.rb +103 -0
  96. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/run_context.rb +691 -0
  97. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb +153 -0
  98. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef.rb +33 -0
  99. data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches.rb +41 -0
  100. data/cookbooks/compat_resource/files/lib/chef_compat/property.rb +6 -0
  101. data/cookbooks/compat_resource/files/lib/chef_compat/recipe.rb +8 -0
  102. data/cookbooks/compat_resource/files/lib/chef_compat/resource/lwrp_base.rb +44 -0
  103. data/cookbooks/compat_resource/files/lib/chef_compat/resource.rb +56 -0
  104. data/cookbooks/compat_resource/files/lib/chef_upstream_version.rb +3 -0
  105. data/cookbooks/compat_resource/files/lib/compat_resource.rb +35 -0
  106. data/cookbooks/compat_resource/libraries/autoload.rb +31 -0
  107. data/cookbooks/compat_resource/metadata.json +1 -0
  108. data/cookbooks/inifile_chef_gem/CHANGELOG.md +11 -0
  109. data/cookbooks/inifile_chef_gem/README.md +46 -0
  110. data/cookbooks/inifile_chef_gem/metadata.json +51 -0
  111. data/cookbooks/inifile_chef_gem/metadata.rb +11 -0
  112. data/cookbooks/inifile_chef_gem/resources/default.rb +28 -0
  113. data/cookbooks/mariadb/CHANGELOG.md +332 -0
  114. data/cookbooks/mariadb/README.md +225 -0
  115. data/cookbooks/mariadb/attributes/default.rb +199 -0
  116. data/cookbooks/mariadb/libraries/mariadb_conn_helper.rb +53 -0
  117. data/cookbooks/mariadb/libraries/mariadb_helper.rb +216 -0
  118. data/cookbooks/mariadb/libraries/matchers.rb +21 -0
  119. data/cookbooks/mariadb/metadata.json +1 -0
  120. data/cookbooks/mariadb/providers/configuration.rb +39 -0
  121. data/cookbooks/mariadb/recipes/_audit_plugin.rb +63 -0
  122. data/cookbooks/mariadb/recipes/_debian_galera.rb +62 -0
  123. data/cookbooks/mariadb/recipes/_debian_server.rb +78 -0
  124. data/cookbooks/mariadb/recipes/_mariadb_repository.rb +29 -0
  125. data/cookbooks/mariadb/recipes/_redhat_client.rb +27 -0
  126. data/cookbooks/mariadb/recipes/_redhat_galera.rb +55 -0
  127. data/cookbooks/mariadb/recipes/_redhat_server.rb +58 -0
  128. data/cookbooks/mariadb/recipes/client.rb +47 -0
  129. data/cookbooks/mariadb/recipes/config.rb +115 -0
  130. data/cookbooks/mariadb/recipes/default.rb +46 -0
  131. data/cookbooks/mariadb/recipes/devel.rb +41 -0
  132. data/cookbooks/mariadb/recipes/galera.rb +324 -0
  133. data/cookbooks/mariadb/recipes/plugins.rb +3 -0
  134. data/cookbooks/mariadb/recipes/repository.rb +45 -0
  135. data/cookbooks/mariadb/recipes/server.rb +157 -0
  136. data/cookbooks/mariadb/resources/configuration.rb +13 -0
  137. data/cookbooks/mariadb/resources/mysql2_gem.rb +25 -0
  138. data/cookbooks/mariadb/resources/replication.rb +192 -0
  139. data/cookbooks/mariadb/templates/default/conf.d.generic.erb +19 -0
  140. data/cookbooks/mariadb/templates/default/debian.cnf.erb +12 -0
  141. data/cookbooks/mariadb/templates/default/mariadb-server.seed.erb +13 -0
  142. data/cookbooks/mariadb/templates/default/mariadb_grants.erb +42 -0
  143. data/cookbooks/mariadb/templates/default/my.cnf.erb +210 -0
  144. data/cookbooks/mariadb/templates/default/root.cnf.erb +5 -0
  145. data/cookbooks/mingw/.foodcritic +1 -0
  146. data/cookbooks/mingw/CHANGELOG.md +50 -0
  147. data/cookbooks/mingw/CONTRIBUTING.md +2 -0
  148. data/cookbooks/mingw/MAINTAINERS.md +14 -0
  149. data/cookbooks/mingw/README.md +133 -0
  150. data/cookbooks/mingw/files/default/bash.bat +17 -0
  151. data/cookbooks/mingw/files/default/custom-upgrade.sh +23 -0
  152. data/cookbooks/mingw/files/default/custom_prefix.sh +13 -0
  153. data/cookbooks/mingw/files/default/pthread.h +719 -0
  154. data/cookbooks/mingw/files/default/time.h +297 -0
  155. data/cookbooks/mingw/libraries/_helper.rb +38 -0
  156. data/cookbooks/mingw/metadata.json +1 -0
  157. data/cookbooks/mingw/recipes/default.rb +19 -0
  158. data/cookbooks/mingw/resources/get.rb +56 -0
  159. data/cookbooks/mingw/resources/msys2_package.rb +139 -0
  160. data/cookbooks/mingw/resources/tdm_gcc.rb +114 -0
  161. data/cookbooks/ohai/.foodcritic +2 -0
  162. data/cookbooks/ohai/CHANGELOG.md +166 -0
  163. data/cookbooks/ohai/CONTRIBUTING.md +2 -0
  164. data/cookbooks/ohai/MAINTAINERS.md +15 -0
  165. data/cookbooks/ohai/README.md +134 -0
  166. data/cookbooks/ohai/libraries/matchers.rb +41 -0
  167. data/cookbooks/ohai/metadata.json +1 -0
  168. data/cookbooks/ohai/recipes/default.rb +20 -0
  169. data/cookbooks/ohai/resources/hint.rb +55 -0
  170. data/cookbooks/ohai/resources/plugin.rb +117 -0
  171. data/cookbooks/selinux_policy/.gitignore +51 -0
  172. data/cookbooks/selinux_policy/.kitchen.yml +25 -0
  173. data/cookbooks/selinux_policy/.rubocop.yml +2 -0
  174. data/cookbooks/selinux_policy/.travis.yml +26 -0
  175. data/cookbooks/selinux_policy/Berksfile +8 -0
  176. data/cookbooks/selinux_policy/CHANGELOG.md +155 -0
  177. data/cookbooks/selinux_policy/LICENSE +13 -0
  178. data/cookbooks/selinux_policy/README.md +217 -0
  179. data/cookbooks/selinux_policy/Rakefile +68 -0
  180. data/cookbooks/selinux_policy/TESTING.md +2 -0
  181. data/cookbooks/selinux_policy/Thorfile +12 -0
  182. data/cookbooks/selinux_policy/attributes/default.rb +5 -0
  183. data/cookbooks/selinux_policy/chefignore +102 -0
  184. data/cookbooks/selinux_policy/libraries/helper-disabled.rb +29 -0
  185. data/cookbooks/selinux_policy/libraries/matchers.rb +57 -0
  186. data/cookbooks/selinux_policy/metadata.json +58 -0
  187. data/cookbooks/selinux_policy/metadata.rb +20 -0
  188. data/cookbooks/selinux_policy/providers/boolean.rb +28 -0
  189. data/cookbooks/selinux_policy/providers/fcontext.rb +78 -0
  190. data/cookbooks/selinux_policy/providers/module.rb +81 -0
  191. data/cookbooks/selinux_policy/providers/permissive.rb +26 -0
  192. data/cookbooks/selinux_policy/providers/port.rb +58 -0
  193. data/cookbooks/selinux_policy/recipes/default.rb +9 -0
  194. data/cookbooks/selinux_policy/recipes/install.rb +32 -0
  195. data/cookbooks/selinux_policy/resources/boolean.rb +8 -0
  196. data/cookbooks/selinux_policy/resources/fcontext.rb +8 -0
  197. data/cookbooks/selinux_policy/resources/module.rb +21 -0
  198. data/cookbooks/selinux_policy/resources/permissive.rb +6 -0
  199. data/cookbooks/selinux_policy/resources/port.rb +9 -0
  200. data/cookbooks/seven_zip/CHANGELOG.md +30 -0
  201. data/cookbooks/seven_zip/README.md +108 -0
  202. data/cookbooks/seven_zip/attributes/default.rb +31 -0
  203. data/cookbooks/seven_zip/libraries/matchers.rb +33 -0
  204. data/cookbooks/seven_zip/metadata.json +1 -0
  205. data/cookbooks/seven_zip/providers/archive.rb +68 -0
  206. data/cookbooks/seven_zip/recipes/default.rb +41 -0
  207. data/cookbooks/seven_zip/resources/archive.rb +29 -0
  208. data/cookbooks/windows/.foodcritic +2 -0
  209. data/cookbooks/windows/CHANGELOG.md +528 -0
  210. data/cookbooks/windows/CONTRIBUTING.md +2 -0
  211. data/cookbooks/windows/MAINTAINERS.md +21 -0
  212. data/cookbooks/windows/README.md +803 -0
  213. data/cookbooks/windows/attributes/default.rb +21 -0
  214. data/cookbooks/windows/files/dism_features.rb +45 -0
  215. data/cookbooks/windows/libraries/matchers.rb +586 -0
  216. data/cookbooks/windows/libraries/powershell_helper.rb +53 -0
  217. data/cookbooks/windows/libraries/registry_helper.rb +356 -0
  218. data/cookbooks/windows/libraries/version.rb +207 -0
  219. data/cookbooks/windows/libraries/version_helper.rb +79 -0
  220. data/cookbooks/windows/libraries/windows_helper.rb +174 -0
  221. data/cookbooks/windows/libraries/windows_privileged.rb +103 -0
  222. data/cookbooks/windows/libraries/wmi_helper.rb +32 -0
  223. data/cookbooks/windows/metadata.json +1 -0
  224. data/cookbooks/windows/recipes/default.rb +21 -0
  225. data/cookbooks/windows/resources/auto_run.rb +46 -0
  226. data/cookbooks/windows/resources/certificate.rb +166 -0
  227. data/cookbooks/windows/resources/certificate_binding.rb +128 -0
  228. data/cookbooks/windows/resources/feature.rb +82 -0
  229. data/cookbooks/windows/resources/feature_dism.rb +108 -0
  230. data/cookbooks/windows/resources/feature_powershell.rb +70 -0
  231. data/cookbooks/windows/resources/feature_servermanagercmd.rb +76 -0
  232. data/cookbooks/windows/resources/font.rb +80 -0
  233. data/cookbooks/windows/resources/http_acl.rb +110 -0
  234. data/cookbooks/windows/resources/pagefile.rb +152 -0
  235. data/cookbooks/windows/resources/path.rb +54 -0
  236. data/cookbooks/windows/resources/printer.rb +103 -0
  237. data/cookbooks/windows/resources/printer_port.rb +101 -0
  238. data/cookbooks/windows/resources/share.rb +291 -0
  239. data/cookbooks/windows/resources/shortcut.rb +53 -0
  240. data/cookbooks/windows/resources/task.rb +384 -0
  241. data/cookbooks/windows/resources/zipfile.rb +125 -0
  242. data/cookbooks/yum/.foodcritic +1 -0
  243. data/cookbooks/yum/CHANGELOG.md +351 -0
  244. data/cookbooks/yum/CONTRIBUTING.md +2 -0
  245. data/cookbooks/yum/MAINTAINERS.md +16 -0
  246. data/cookbooks/yum/README.md +125 -0
  247. data/cookbooks/yum/attributes/main.rb +103 -0
  248. data/cookbooks/yum/libraries/matchers.rb +9 -0
  249. data/cookbooks/yum/metadata.json +1 -0
  250. data/cookbooks/yum/recipes/default.rb +26 -0
  251. data/cookbooks/yum/recipes/dnf_yum_compat.rb +29 -0
  252. data/cookbooks/yum/resources/globalconfig.rb +119 -0
  253. data/cookbooks/yum/templates/.DS_Store +0 -0
  254. data/cookbooks/yum/templates/main.erb +276 -0
  255. data/cookbooks/yum-epel/CHANGELOG.md +138 -0
  256. data/cookbooks/yum-epel/CONTRIBUTING.md +2 -0
  257. data/cookbooks/yum-epel/MAINTAINERS.md +19 -0
  258. data/cookbooks/yum-epel/README.md +172 -0
  259. data/cookbooks/yum-epel/attributes/default.rb +8 -0
  260. data/cookbooks/yum-epel/attributes/epel-debuginfo.rb +15 -0
  261. data/cookbooks/yum-epel/attributes/epel-source.rb +15 -0
  262. data/cookbooks/yum-epel/attributes/epel-testing-debuginfo.rb +15 -0
  263. data/cookbooks/yum-epel/attributes/epel-testing-source.rb +15 -0
  264. data/cookbooks/yum-epel/attributes/epel-testing.rb +15 -0
  265. data/cookbooks/yum-epel/attributes/epel.rb +21 -0
  266. data/cookbooks/yum-epel/metadata.json +1 -0
  267. data/cookbooks/yum-epel/recipes/default.rb +27 -0
  268. data/cookbooks/yum-scl/.kitchen.dokken.yml +24 -0
  269. data/cookbooks/yum-scl/.kitchen.yml +24 -0
  270. data/cookbooks/yum-scl/.rubocop.yml +6 -0
  271. data/cookbooks/yum-scl/.travis.yml +28 -0
  272. data/cookbooks/yum-scl/Berksfile +3 -0
  273. data/cookbooks/yum-scl/Berksfile.lock +25 -0
  274. data/cookbooks/yum-scl/CHANGELOG.md +11 -0
  275. data/cookbooks/yum-scl/Gemfile +46 -0
  276. data/cookbooks/yum-scl/README.md +76 -0
  277. data/cookbooks/yum-scl/attributes/centos.rb +83 -0
  278. data/cookbooks/yum-scl/attributes/default.rb +15 -0
  279. data/cookbooks/yum-scl/attributes/scientific.rb +1 -0
  280. data/cookbooks/yum-scl/files/default/RPM-GPG-KEY-CentOS-SIG-SCLo +20 -0
  281. data/cookbooks/yum-scl/libraries/yum_scl_helper.rb +33 -0
  282. data/cookbooks/yum-scl/metadata.json +42 -0
  283. data/cookbooks/yum-scl/metadata.rb +12 -0
  284. data/cookbooks/yum-scl/recipes/chef_install.rb +52 -0
  285. data/cookbooks/yum-scl/recipes/default.rb +17 -0
  286. data/cookbooks/yum-scl/recipes/native_install.rb +35 -0
  287. data/lib/vagrant-clone/command/clone.rb +66 -61
  288. data/lib/vagrant-clone/errors.rb +61 -0
  289. data/lib/vagrant-clone/util/clone_manager_base.rb +69 -0
  290. data/lib/vagrant-clone/util/clone_managers/docker.rb +31 -0
  291. data/lib/vagrant-clone/util/clone_managers/libvirt.rb +254 -0
  292. data/lib/vagrant-clone/util/vagrantfile_managers/docker.rb +154 -0
  293. data/lib/vagrant-clone/util/vagrantfile_managers/libvirt.rb +159 -0
  294. data/lib/vagrant-clone/version.rb +2 -2
  295. data/lib/vagrant-clone.rb +6 -6
  296. data/libvirt.txt +7 -0
  297. data/performance_testing.rb +165 -0
  298. data/results.txt +45 -0
  299. data/scripts/create_box.sh +134 -0
  300. data/test.rb +92 -0
  301. data/tools/create_box.sh +130 -0
  302. data/vagrant-clone.gemspec +7 -7
  303. metadata +296 -5
  304. data/lib/vagrant-clone/command/errors.rb +0 -16
  305. data/lib/vagrant-clone/command/provider/docker.rb +0 -13
  306. data/lib/vagrant-clone/utils/vagrantfile_manager.rb +0 -47
@@ -0,0 +1,119 @@
1
+ #
2
+ # Cookbook:: yum
3
+ # Resource:: repository
4
+ #
5
+ # Author:: Sean OMeara <someara@chef.io>
6
+ # Copyright:: 2013-2017, Chef Software, Inc.
7
+ #
8
+ # Licensed under the Apache License, Version 2.0 (the "License");
9
+ # you may not use this file except in compliance with the License.
10
+ # You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+
21
+ # http://linux.die.net/man/5/yum.conf
22
+ property :alwaysprompt, [true, false]
23
+ property :assumeyes, [true, false]
24
+ property :bandwidth, String, regex: /^\d+/
25
+ property :bugtracker_url, String, regex: /.*/
26
+ property :clean_requirements_on_remove, [true, false]
27
+ property :cachedir, String, regex: /.*/, default: '/var/cache/yum/$basearch/$releasever'
28
+ property :color, String, equal_to: %w(always never)
29
+ property :color_list_available_downgrade, String, regex: /.*/
30
+ property :color_list_available_install, String, regex: /.*/
31
+ property :color_list_available_reinstall, String, regex: /.*/
32
+ property :color_list_available_upgrade, String, regex: /.*/
33
+ property :color_list_installed_extra, String, regex: /.*/
34
+ property :color_list_installed_newer, String, regex: /.*/
35
+ property :color_list_installed_older, String, regex: /.*/
36
+ property :color_list_installed_reinstall, String, regex: /.*/
37
+ property :color_search_match, String, regex: /.*/
38
+ property :color_update_installed, String, regex: /.*/
39
+ property :color_update_local, String, regex: /.*/
40
+ property :color_update_remote, String, regex: /.*/
41
+ property :commands, String, regex: /.*/
42
+ property :debuglevel, String, regex: /^\d+$/, default: '2'
43
+ property :deltarpm, [true, false]
44
+ property :diskspacecheck, [true, false]
45
+ property :distroverpkg, String, regex: /.*/
46
+ property :enable_group_conditionals, [true, false]
47
+ property :errorlevel, String, regex: /^\d+$/
48
+ property :exactarch, [true, false], default: true
49
+ property :exclude, String, regex: /.*/
50
+ property :gpgcheck, [true, false], default: true
51
+ property :group_package_types, String, regex: /.*/
52
+ property :groupremove_leaf_only, [true, false]
53
+ property :history_list_view, String, equal_to: %w(users commands single-user-commands)
54
+ property :history_record, [true, false]
55
+ property :history_record_packages, String, regex: /.*/
56
+ property :http_caching, String, equal_to: %w(packages all none)
57
+ property :installonly_limit, String, regex: [/^\d+/, /keep/], default: '3'
58
+ property :installonlypkgs, String, regex: /.*/
59
+ property :installroot, String, regex: /.*/
60
+ property :keepalive, [true, false]
61
+ property :keepcache, [true, false], default: false
62
+ property :kernelpkgnames, String, regex: /.*/
63
+ property :localpkg_gpgcheck, [true, false]
64
+ property :logfile, String, regex: /.*/, default: '/var/log/yum.log'
65
+ property :max_retries, String, regex: /^\d+$/
66
+ property :mdpolicy, String, equal_to: %w(instant group:primary group:small group:main group:all)
67
+ property :metadata_expire, String, regex: [/^\d+$/, /^\d+[mhd]$/, /never/]
68
+ property :mirrorlist_expire, String, regex: /^\d+$/
69
+ property :multilib_policy, String, equal_to: %w(all best)
70
+ property :obsoletes, [true, false]
71
+ property :overwrite_groups, [true, false]
72
+ property :password, String, regex: /.*/
73
+ property :path, String, regex: /.*/, name_property: true
74
+ property :persistdir, String, regex: /.*/
75
+ property :pluginconfpath, String, regex: /.*/
76
+ property :pluginpath, String, regex: /.*/
77
+ property :plugins, [true, false], default: true
78
+ property :protected_multilib, [true, false]
79
+ property :protected_packages, String, regex: /.*/
80
+ property :proxy, String, regex: /.*/
81
+ property :proxy_password, String, regex: /.*/
82
+ property :proxy_username, String, regex: /.*/
83
+ property :recent, String, regex: /^\d+$/
84
+ property :releasever, String, regex: /.*/
85
+ property :repo_gpgcheck, [true, false]
86
+ property :reposdir, String, regex: /.*/
87
+ property :reset_nice, [true, false]
88
+ property :rpmverbosity, String, equal_to: %w(info critical emergency error warn debug)
89
+ property :showdupesfromrepos, [true, false]
90
+ property :skip_broken, [true, false]
91
+ property :ssl_check_cert_permissions, [true, false]
92
+ property :sslcacert, String, regex: /.*/
93
+ property :sslclientcert, String, regex: /.*/
94
+ property :sslclientkey, String, regex: /.*/
95
+ property :sslverify, [true, false]
96
+ property :syslog_device, String, regex: /.*/
97
+ property :syslog_facility, String, regex: /.*/
98
+ property :syslog_ident, String, regex: /.*/
99
+ property :throttle, String, regex: [/\d+k/, /\d+M/, /\d+G/]
100
+ property :timeout, String, regex: /^\d+$/
101
+ property :tolerant, [true, false]
102
+ property :tsflags, String, regex: /.*/
103
+ property :username, String, regex: /.*/
104
+ property :options, Hash
105
+
106
+ action :create do
107
+ template new_resource.path do
108
+ source 'main.erb'
109
+ cookbook 'yum'
110
+ mode '0644'
111
+ variables(config: new_resource)
112
+ end
113
+ end
114
+
115
+ action :delete do
116
+ file new_resource.path do
117
+ action :delete
118
+ end
119
+ end
Binary file
@@ -0,0 +1,276 @@
1
+ # This file was generated by Chef
2
+ # Do NOT modify this file by hand.
3
+
4
+ [main]
5
+ <% if @config.alwaysprompt %>
6
+ alwaysprompt=<%= @config.alwaysprompt %>
7
+ <% end %>
8
+ <% if @config.assumeyes %>
9
+ assumeyes=<%= @config.assumeyes %>
10
+ <% end %>
11
+ <% if @config.bandwidth %>
12
+ bandwidth=<%= @config.bandwidth %>
13
+ <% end %>
14
+ <% if @config.bugtracker_url %>
15
+ bugtracker_url=<%= @config.bugtracker_url %>
16
+ <% end %>
17
+ <% if @config.cachedir %>
18
+ cachedir=<%= @config.cachedir %>
19
+ <% end %>
20
+ <% if @config.clean_requirements_on_remove %>
21
+ clean_requirements_on_remove=<%= @config.clean_requirements_on_remove %>
22
+ <% end %>
23
+ <% if @config.color %>
24
+ color=<%= @config.color %>
25
+ <% end %>
26
+ <% if @config.color_list_available_downgrade %>
27
+ color_list_available_downgrade=<%= @config.color_list_available_downgrade %>
28
+ <% end %>
29
+ <% if @config.color_list_available_install %>
30
+ color_list_available_install=<%= @config.color_list_available_install %>
31
+ <% end %>
32
+ <% if @config.color_list_available_reinstall %>
33
+ color_list_available_reinstall=<%= @config.color_list_available_reinstall %>
34
+ <% end %>
35
+ <% if @config.color_list_available_upgrade %>
36
+ color_list_available_upgrade=<%= @config.color_list_available_upgrade %>
37
+ <% end %>
38
+ <% if @config.color_list_installed_extra %>
39
+ color_list_installed_extra=<%= @config.color_list_installed_extra %>
40
+ <% end %>
41
+ <% if @config.color_list_installed_newer %>
42
+ color_list_installed_newer=<%= @config.color_list_installed_newer %>
43
+ <% end %>
44
+ <% if @config.color_list_installed_older %>
45
+ color_list_installed_older=<%= @config.color_list_installed_older %>
46
+ <% end %>
47
+ <% if @config.color_list_installed_reinstall %>
48
+ color_list_installed_reinstall=<%= @config.color_list_installed_reinstall %>
49
+ <% end %>
50
+ <% if @config.color_search_match %>
51
+ color_search_match=<%= @config.color_search_match %>
52
+ <% end %>
53
+ <% if @config.color_update_installed %>
54
+ color_update_installed=<%= @config.color_update_installed %>
55
+ <% end %>
56
+ <% if @config.color_update_local %>
57
+ color_update_local=<%= @config.color_update_local %>
58
+ <% end %>
59
+ <% if @config.color_update_remote %>
60
+ color_update_remote=<%= @config.color_update_remote %>
61
+ <% end %>
62
+ <% if @config.commands %>
63
+ commands=<%= @config.commands %>
64
+ <% end %>
65
+ <% if @config.debuglevel %>
66
+ debuglevel=<%= @config.debuglevel %>
67
+ <% end %>
68
+ <% if @config.deltarpm == true %>
69
+ deltarpm=1
70
+ <% elsif @config.deltarpm == false %>
71
+ deltarpm=0
72
+ <% end %>
73
+ <% if @config.diskspacecheck %>
74
+ diskspacecheck=<%= @config.diskspacecheck %>
75
+ <% end %>
76
+ <% if @config.distroverpkg %>
77
+ distroverpkg=<%= @config.distroverpkg %>
78
+ <% end %>
79
+ <% if @config.enable_group_conditionals %>
80
+ enable_group_conditionals=1
81
+ <% end %>
82
+ <% if @config.errorlevel %>
83
+ errorlevel=<%= @config.errorlevel %>
84
+ <% end %>
85
+ <% if @config.exactarch %>
86
+ exactarch=1
87
+ <% else %>
88
+ exactarch=0
89
+ <% end %>
90
+ <% if @config.exclude %>
91
+ exclude=<%= @config.exclude %>
92
+ <% end %>
93
+ <% if @config.gpgcheck %>
94
+ gpgcheck=1
95
+ <% else %>
96
+ gpgcheck=0
97
+ <% end %>
98
+ <% if @config.group_package_types %>
99
+ group_package_types=<%= @config.group_package_types %>
100
+ <% end %>
101
+ <% if @config.groupremove_leaf_only %>
102
+ groupremove_leaf_only=<%= @config.groupremove_leaf_only %>
103
+ <% end %>
104
+ <% if @config.history_list_view %>
105
+ history_list_view=<%= @config.history_list_view %>
106
+ <% end %>
107
+ <% if @config.history_record %>
108
+ history_record=<%= @config.history_record %>
109
+ <% end %>
110
+ <% if @config.history_record_packages %>
111
+ history_record_packages=<%= @config.history_record_packages %>
112
+ <% end %>
113
+ <% if @config.http_caching %>
114
+ http_caching=<%= @config.http_caching %>
115
+ <% end %>
116
+ <% if @config.installonly_limit %>
117
+ installonly_limit=<%= @config.installonly_limit %>
118
+ <% end %>
119
+ <% if @config.installonlypkgs %>
120
+ installonlypkgs=<%= @config.installonlypkgs %>
121
+ <% end %>
122
+ <% if @config.installroot %>
123
+ installroot=<%= @config.installroot %>
124
+ <% end %>
125
+ <% if @config.keepalive %>
126
+ keepalive=<%= @config.keepalive %>
127
+ <% end %>
128
+ <% if @config.keepcache %>
129
+ keepcache=1
130
+ <% else %>
131
+ keepcache=0
132
+ <% end %>
133
+ <% if @config.kernelpkgnames %>
134
+ kernelpkgnames=<%= @config.kernelpkgnames %>
135
+ <% end %>
136
+ <% if @config.localpkg_gpgcheck %>
137
+ localpkg_gpgcheck=1
138
+ <% else %>
139
+ localpkg_gpgcheck=0
140
+ <% end %>
141
+ <% if @config.logfile %>
142
+ logfile=<%= @config.logfile %>
143
+ <% end %>
144
+ <% if @config.max_retries %>
145
+ max_retries=<%= @config.max_retries %>
146
+ <% end %>
147
+ <% if @config.mdpolicy %>
148
+ mdpolicy=<%= @config.mdpolicy %>
149
+ <% end %>
150
+ <% if @config.metadata_expire %>
151
+ metadata_expire=<%= @config.metadata_expire %>
152
+ <% end %>
153
+ <% if @config.mirrorlist_expire %>
154
+ mirrorlist_expire=<%= @config.mirrorlist_expire %>
155
+ <% end %>
156
+ <% if @config.multilib_policy %>
157
+ multilib_policy=<%= @config.multilib_policy %>
158
+ <% end %>
159
+ <% if @config.obsoletes == false %>
160
+ obsoletes=0
161
+ <% else %>
162
+ obsoletes=1
163
+ <% end %>
164
+ <% if @config.overwrite_groups %>
165
+ overwrite_groups=<%= @config.overwrite_groups %>
166
+ <% end %>
167
+ <% if @config.password %>
168
+ password=<%= @config.password %>
169
+ <% end %>
170
+ <% if @config.persistdir %>
171
+ persistdir=<%= @config.persistdir %>
172
+ <% end %>
173
+ <% if @config.pluginconfpath %>
174
+ pluginconfpath=<%= @config.pluginconfpath %>
175
+ <% end %>
176
+ <% if @config.pluginpath %>
177
+ pluginpath=<%= @config.pluginpath %>
178
+ <% end %>
179
+ <% if @config.plugins %>
180
+ plugins=1
181
+ <% else %>
182
+ plugins=0
183
+ <% end %>
184
+ <% if @config.protected_multilib %>
185
+ protected_multilib=<%= @config.protected_multilib %>
186
+ <% end %>
187
+ <% if @config.protected_packages %>
188
+ protected_packages=<%= @config.protected_packages %>
189
+ <% end %>
190
+ <% if @config.proxy %>
191
+ proxy=<%= @config.proxy %>
192
+ <% end %>
193
+ <% if @config.proxy_password %>
194
+ proxy_password=<%= @config.proxy_password %>
195
+ <% end %>
196
+ <% if @config.proxy_username %>
197
+ proxy_username=<%= @config.proxy_username %>
198
+ <% end %>
199
+ <% if @config.recent %>
200
+ recent=<%= @config.recent %>
201
+ <% end %>
202
+ <% if @config.releasever %>
203
+ releasever=<%= @config.releasever %>
204
+ <% end %>
205
+ <% if @config.repo_gpgcheck %>
206
+ repo_gpgcheck=<%= @config.repo_gpgcheck %>
207
+ <% end %>
208
+ <% if @config.reposdir %>
209
+ reposdir=<%= @config.reposdir %>
210
+ <% end %>
211
+ <% if @config.reset_nice %>
212
+ reset_nice=<%= @config.reset_nice %>
213
+ <% end %>
214
+ <% if @config.rpmverbosity %>
215
+ rpmverbosity=<%= @config.rpmverbosity %>
216
+ <% end %>
217
+ <% if @config.showdupesfromrepos %>
218
+ showdupesfromrepos=<%= @config.showdupesfromrepos %>
219
+ <% end %>
220
+ <% if @config.skip_broken %>
221
+ skip_broken=<%= @config.skip_broken %>
222
+ <% end %>
223
+ <% if @config.ssl_check_cert_permissions %>
224
+ ssl_check_cert_permissions=<%= @config.ssl_check_cert_permissions %>
225
+ <% end %>
226
+ <% if @config.sslcacert %>
227
+ sslcacert=<%= @config.sslcacert %>
228
+ <% end %>
229
+ <% if @config.sslclientcert %>
230
+ sslclientcert=<%= @config.sslclientcert %>
231
+ <% end %>
232
+ <% if @config.sslclientkey %>
233
+ sslclientkey=<%= @config.sslclientkey %>
234
+ <% end %>
235
+ <% unless @config.sslverify.nil? %>
236
+ sslverify=<%= ( @config.sslverify ) ? 'true' : 'false' %>
237
+ <% end %>
238
+ <% if @config.syslog_device %>
239
+ syslog_device=<%= @config.syslog_device %>
240
+ <% end %>
241
+ <% if @config.syslog_facility %>
242
+ syslog_facility=<%= @config.syslog_facility %>
243
+ <% end %>
244
+ <% if @config.syslog_ident %>
245
+ syslog_ident=<%= @config.syslog_ident %>
246
+ <% end %>
247
+ <% if @config.throttle %>
248
+ throttle=<%= @config.throttle %>
249
+ <% end %>
250
+ <% if @config.timeout %>
251
+ timeout=<%= @config.timeout %>
252
+ <% end %>
253
+ <% if @config.tolerant %>
254
+ tolerant=<%= ( @config.tolerant ) ? '1' : '0' %>
255
+ <% end %>
256
+ <% if @config.tsflags %>
257
+ tsflags=<%= @config.tsflags %>
258
+ <% end %>
259
+ <% if @config.username %>
260
+ username=<%= @config.username %>
261
+ <% end %>
262
+ <% if @config.options -%>
263
+ <% @config.options.each do |key, value| -%>
264
+ <%= key %>=<%=
265
+ case value
266
+ when Array
267
+ value.join("\n ")
268
+ when TrueClass
269
+ '1'
270
+ when FalseClass
271
+ '0'
272
+ else
273
+ value
274
+ end %>
275
+ <% end -%>
276
+ <% end -%>
@@ -0,0 +1,138 @@
1
+ # yum-epel Cookbook CHANGELOG
2
+
3
+ This file is used to list changes made in each version of the yum-epel cookbook.
4
+
5
+ ## 2.1.1 (2017-01-05)
6
+
7
+ - Revert how mirror list strings are generated to fix RHEL 7
8
+
9
+ ## 2.1.0 (2016-12-22)
10
+
11
+ - Test in Travis using the current build of chef/chef docker image
12
+ - Test on older Chef
13
+ - allow the use of any valid property via attributes
14
+ - fixing tests
15
+ - output versions in the job that is being ran
16
+ - cops
17
+
18
+ ## 2.0.0 (2016-11-26)
19
+
20
+ - Clarify that we require Chef 12.1+ not 12.0+
21
+ - Use compat_resource instead of the yum cookbook
22
+ - Add integration testing with inspec
23
+
24
+ ## 1.0.2 (2016-10-21)
25
+
26
+ - Remove upper bound on yum constraint
27
+
28
+ ## 1.0.1 (2016-09-11)
29
+
30
+ - Fix epel-testing attributes
31
+
32
+ ## 1.0.0 (2016-09-06)
33
+
34
+ - Add chef_version metadata
35
+ - Testing updates
36
+ - Remove support for Chef 11
37
+
38
+ ## v0.7.1 (2016-08-19)
39
+
40
+ - Remove bats testing
41
+ - Fix attribute settings
42
+ - Cleanup travis file
43
+
44
+ ## v0.7.0 (2016-04-27)
45
+
46
+ - Added support for IBM zlinux platform
47
+ - Added back the Test Kitchen support for local vagrant testing
48
+ - Added long_description to the metadata
49
+ - Loosen the dependency on the yum cookbook
50
+
51
+ ## v0.6.5
52
+
53
+ - updated to use `make_cache` option that yum cookbook allows for the yum resource to use.
54
+
55
+ ## v0.6.5 (2015-11-23)
56
+
57
+ - Fix setting bool false properties
58
+
59
+ ## v0.6.4 (2015-10-27)
60
+
61
+ - Updating default recipe for Chef 13 deprecation warnings. Not
62
+ - passing nil.
63
+
64
+ ## v0.6.3 (2015-09-22)
65
+
66
+ - Added standard Chef gitignore and chefignore files
67
+ - Added the standard chef rubocop config
68
+ - Update contributing, maintainers, and testing docs
69
+ - Update Chefspec config to 4.X format
70
+ - Update distro versions in the Kitchen config
71
+ - Add Travis CI and cookbook version badges in the readme
72
+ - Expand the requirements section in the readme
73
+ - Add additional distros to the metadata
74
+ - Added source_url and issues_url metadata
75
+
76
+ ## v0.6.2 (2015-06-21)
77
+
78
+ - Depending on yum ~> 3.2
79
+ - Support for the password attribute wasn't added to the
80
+ - yum_repository LWRP until yum 3.2.0.
81
+
82
+ ## v0.6.1 (2015-06-21)
83
+
84
+ - Switching to https for URL links
85
+ - Using metalink URLs
86
+
87
+ ## v0.6.0 (2015-01-03)
88
+
89
+ - Adding EL7 support
90
+
91
+ ## v0.5.3 (2014-10-28)
92
+
93
+ - Revert Use HTTPS for GPG keys and mirror lists
94
+
95
+ ## v0.5.2 (2014-10-28)
96
+
97
+ - Use HTTPS for GPG keys and mirror lists
98
+ - Use local key on Amazon Linux
99
+
100
+ ## v0.5.0 (2014-09-02)
101
+
102
+ - Add all attribute available to LWRP to allow for tuning.
103
+
104
+ ## v0.4.0 (2014-07-27)
105
+
106
+ - [#9] Allowing list of repositories to reference configurable.
107
+
108
+ ## v0.3.6 (2014-04-09)
109
+
110
+ - [COOK-4509] add RHEL7 support to yum-epel cookbook
111
+
112
+ ## v0.3.4 (2014-02-19)
113
+
114
+ COOK-4353 - Fixing typo in readme
115
+
116
+ ## v0.3.2 (2014-02-13)
117
+
118
+ Updating README to explain the 'managed' parameter
119
+
120
+ ## v0.3.0 (2014-02-12)
121
+
122
+ [COOK-4292] - Do not manage secondary repos by default
123
+
124
+ ## v0.2.0
125
+
126
+ Adding Amazon Linux support
127
+
128
+ ## v0.1.6
129
+
130
+ Fixing up attribute values for EL6
131
+
132
+ ## v0.1.4
133
+
134
+ Adding CHANGELOG.md
135
+
136
+ ## v0.1.0
137
+
138
+ initial release
@@ -0,0 +1,2 @@
1
+ Please refer to
2
+ https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD
@@ -0,0 +1,19 @@
1
+ <!-- This is a generated file. Please do not edit directly -->
2
+
3
+ # Maintainers
4
+ This file lists how this cookbook project is maintained. When making changes to the system, this
5
+ file tells you who needs to review your patch - you need a review from an existing maintainer
6
+ for the cookbook to provide a :+1: on your pull request. Additionally, you need
7
+ to not receive a veto from a Lieutenant or the Project Lead.
8
+
9
+ Check out [How Cookbooks are Maintained](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD)
10
+ for details on the process and how to become a maintainer or the project lead.
11
+
12
+ # Project Maintainer
13
+ * [Jennifer Davis](https://github.com/sigje)
14
+
15
+ # Maintainers
16
+ * [Jennifer Davis](https://github.com/sigje)
17
+ * [Sean OMeara](https://github.com/someara)
18
+ * [Tim Smith](https://github.com/tas50)
19
+ * [Thom May](https://github.com/thommay)