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,192 @@
1
+ #
2
+ # Cookbook Name:: mariadb
3
+ # Resource:: replication
4
+ #
5
+
6
+ actions :add, :remove, :start, :stop
7
+ default_action :add
8
+
9
+ # name of the extra conf file, used for .cnf filename
10
+ property :connection_name, kind_of: String, name_attribute: true
11
+ property :host, kind_of: [String, NilClass], default: 'localhost', desired_state: false
12
+ property :port, kind_of: [String, NilClass], default: node['mariadb']['mysqld']['port'].to_s, desired_state: false
13
+ property :user, kind_of: [String, NilClass], default: 'root', desired_state: false
14
+ property :password, kind_of: [String, NilClass], default: node['mariadb']['server_root_password'], sensitive: true, desired_state: false
15
+ property :change_master_while_running, kind_of: [TrueClass, FalseClass], default: false, desired_state: false
16
+ property :master_host, kind_of: String
17
+ property :master_user, kind_of: String
18
+ property :master_password, kind_of: String, sensitive: true
19
+ property :master_connect_retry, kind_of: String
20
+ property :master_port, kind_of: Integer, default: 3306
21
+ property :master_log_pos, kind_of: Integer
22
+ property :master_log_file, kind_of: String
23
+ property :master_use_gtid, kind_of: String, default: 'No'
24
+
25
+ action_class do
26
+ include MariaDB::Connection::Helper
27
+
28
+ def replication_query(query)
29
+ socket = if node['mariadb']['client']['socket'] && host == 'localhost'
30
+ node['mariadb']['client']['socket']
31
+ end
32
+ connect(host: host, port: port, username: user, password: password, socket: socket) unless connected?(host, user)
33
+ unless server_older_than?('10.0')
34
+ default_master_connection = connection_name == 'default' ? '' : connection_name
35
+ query(host, user, "SET @@default_master_connection='#{default_master_connection}'")
36
+ end
37
+ query(host, user, query)
38
+ end
39
+
40
+ def mariadb_version
41
+ socket = if node['mariadb']['client']['socket'] && host == 'localhost'
42
+ node['mariadb']['client']['socket']
43
+ end
44
+ connect(host: host, port: port, username: user, password: password, socket: socket) unless connected?(host, user)
45
+ query(host, user,
46
+ 'SELECT VERSION()').each { |row| return row['VERSION()'][/([\d\.]+)-MariaDB.*/, 1] }
47
+ end
48
+
49
+ def server_older_than?(version)
50
+ Gem::Version.new(mariadb_version) < Gem::Version.new(version)
51
+ end
52
+
53
+ def slave_running?
54
+ # Couldn't make status variable work, returns OFF even though slave is running sometimes
55
+ # replication_query("SHOW STATUS LIKE 'Slave_running'").each { |row| return row['Value'] == 'YES' }
56
+ slave_status = slave_status?
57
+ return false unless slave_status
58
+ slave_status?.each do |row|
59
+ return row['Slave_IO_Running'] == 'Yes' || row['Slave_SQL_Running'] == 'Yes'
60
+ end
61
+ false
62
+ end
63
+
64
+ def change_master_to(master_attrs)
65
+ change_query = if server_older_than?('10.0') || connection_name == 'default'
66
+ 'CHANGE MASTER TO '
67
+ else
68
+ "CHANGE MASTER '#{connection_name}' TO "
69
+ end
70
+ master_settings = []
71
+ master_attrs.each_pair do |attribute, value|
72
+ master_settings << "#{attribute}=#{value}"
73
+ end
74
+ replication_query(change_query + master_settings.join(', '))
75
+ end
76
+
77
+ def slave_status?
78
+ status_query = if server_older_than?('10.0') || connection_name == 'default'
79
+ 'SHOW SLAVE STATUS'
80
+ else
81
+ "SHOW SLAVE '#{connection_name}' STATUS"
82
+ end
83
+ replication_query(status_query)
84
+ rescue Mysql2::Error => mysql_exception
85
+ nil if mysql_exception.message =~ /There is no master connection.*/
86
+ end
87
+
88
+ def start_slave
89
+ if server_older_than?('10.0') || connection_name == 'default'
90
+ replication_query('START SLAVE')
91
+ else
92
+ replication_quesry("START SLAVE'#{connection_name}'")
93
+ end
94
+ end
95
+
96
+ def stop_slave
97
+ if server_older_than?('10.0') || connection_name == 'default'
98
+ replication_query('STOP SLAVE')
99
+ else
100
+ replication_quesry("STOP SLAVE'#{connection_name}'")
101
+ end
102
+ end
103
+ end
104
+
105
+ load_current_value do
106
+ require 'mysql2'
107
+ socket = if node['mariadb']['client']['socket'] && host == 'localhost'
108
+ node['mariadb']['client']['socket']
109
+ end
110
+ conn_options = { username: user, password: password,
111
+ port: port }.merge!(socket.nil? ? { host: host } : { socket: socket })
112
+ begin
113
+ mysql_connection = Mysql2::Client.new(conn_options)
114
+ mysql_server_version = ''
115
+ mysql_connection.query('SELECT VERSION()').each do |row|
116
+ mysql_server_version = row['VERSION()']
117
+ end
118
+ master_connection = if mysql_server_version.to_i < 10 || connection_name == 'default'
119
+ ''
120
+ else
121
+ connection_name
122
+ end
123
+ status_query = if master_connection.empty?
124
+ 'SHOW SLAVE STATUS'
125
+ else
126
+ "SHOW SLAVE '#{master_connection}' STATUS"
127
+ end
128
+ slave_status = mysql_connection.query(status_query)
129
+ current_value_does_not_exist! if slave_status.count == 0
130
+ slave_status.each do |row|
131
+ master_host row['Master_Host']
132
+ master_port row['Master_Port']
133
+ master_user row['Master_User']
134
+ master_log_file row['Master_Log_File']
135
+ master_log_pos row['Read_Master_Log_Pos']
136
+ master_use_gtid row['Using_Gtid'].nil? ? 'No' : row['Using_Gtid']
137
+ end
138
+ master_info_file = if master_connection.empty?
139
+ "#{node['mariadb']['mysqld']['datadir']}/master.info"
140
+ else
141
+ "#{node['mariadb']['mysqld']['datadir']}/master-#{master_connection}.info"
142
+ end
143
+ master_password IO.readlines(master_info_file)[5].chomp
144
+ rescue Mysql2::Error => mysql_exception
145
+ current_value_does_not_exist! if mysql_exception.message =~ /There is no master connection.*/
146
+ raise "Mysql connection error: #{mysql_exception.message}"
147
+ ensure
148
+ mysql_connection.close
149
+ end
150
+ end
151
+
152
+ action :add do
153
+ if change_master_while_running || !slave_running?
154
+ converge_if_changed :master_host, :master_port, :master_user, :master_password, :master_use_gtid do
155
+ if master_host.nil? || master_user.nil? || master_password.nil? || master_port.nil?
156
+ raise '[ERROR] When adding a slave, you have to define master_host' \
157
+ ' master_user and master_password and master_port!'
158
+ end
159
+ master_config = { MASTER_HOST: "'#{master_host}'", MASTER_PORT: master_port,
160
+ MASTER_USER: "'#{master_user}'", MASTER_PASSWORD: "'#{master_password}'" }
161
+ if master_use_gtid.casecmp('no') == 0 || server_older_than?('10.0.2')
162
+ Chef::Log.warn('use_gtid requires MariaDB 10.0 or older. Falling back to bin-log.') unless master_use_gtid.casecmp('no') == 0
163
+ if master_log_name.nil? || master_log_pos.nil?
164
+ raise '[ERROR] When adding a slave without GTID, you have to' \
165
+ 'define master_log_file and master_log_pos !'
166
+ end
167
+ master_config[:MASTER_LOG_FILE] = "'#{master_log_file}'"
168
+ master_config[:MASTER_LOG_POS] = master_log_pos
169
+ else
170
+ master_config[:MASTER_USE_GTID] = master_use_gtid
171
+ end
172
+ slave_was_running = slave_running?
173
+ stop_slave if slave_running?
174
+ change_master_to(master_config)
175
+ start_slave if slave_was_running
176
+ end
177
+ end
178
+ end
179
+
180
+ action :remove do
181
+ return if current_value.nil?
182
+ stop_slave if slave_running?
183
+ reset_slave
184
+ end
185
+
186
+ action :start do
187
+ start_slave unless slave_running?
188
+ end
189
+
190
+ action :stop do
191
+ stop_slave if slave_running?
192
+ end
@@ -0,0 +1,19 @@
1
+ # DEPLOYED BY CHEF
2
+ [<%= @section -%>]
3
+ <% @options.each do | option_name, option_value |-%>
4
+ <% if option_value.to_s == 'true' -%>
5
+ <%= option_name %>
6
+ <% else -%>
7
+ <% if option_value.kind_of?(String) && option_value.start_with?('#') -%>
8
+ <%= option_value %>
9
+ <% else -%>
10
+ <% if option_value.kind_of?(Array) -%>
11
+ <% option_value.each do | option_value_array_value | -%>
12
+ <%= option_name -%> = <%= option_value_array_value %>
13
+ <% end -%>
14
+ <% else -%>
15
+ <%= option_name -%> = <%= option_value %>
16
+ <% end -%>
17
+ <% end -%>
18
+ <% end -%>
19
+ <% end -%>
@@ -0,0 +1,12 @@
1
+ # Automatically generated for Debian scripts (Managed by CHEF). DO NOT TOUCH!
2
+ [client]
3
+ host = <%= node['mariadb']['debian']['host'] %>
4
+ user = <%= node['mariadb']['debian']['user'] %>
5
+ password = <%= node['mariadb']['debian']['password'] %>
6
+ socket = <%= node['mariadb']['client']['socket'] %>
7
+ [mysql_upgrade]
8
+ host = <%= node['mariadb']['debian']['host'] %>
9
+ user = <%= node['mariadb']['debian']['user'] %>
10
+ password = <%= node['mariadb']['debian']['password'] %>
11
+ socket = <%= node['mariadb']['mysqld_safe']['socket'] %>
12
+ basedir = <%= node['mariadb']['mysqld']['basedir'] %>
@@ -0,0 +1,13 @@
1
+ <%
2
+ # Value obtained via the debconf-get-selections tool on debian wheezy
3
+ pack_w_version = @package_name + '-' + node['mariadb']['install']['version']
4
+ -%>
5
+ <%= pack_w_version %> mysql-server/root_password_again select <%= node['mariadb']['server_root_password'] %>
6
+ <%= pack_w_version %> mysql-server/root_password select <%= node['mariadb']['server_root_password'] %>
7
+ <%= pack_w_version %> mysql-server/error_setting_password boolean false
8
+ <%= pack_w_version %> mysql-server-5.1/nis_warning note
9
+ <%= pack_w_version %> mysql-server-5.1/start_on_boot boolean true
10
+ <%= pack_w_version %> <%= pack_w_version %>/really_downgrade boolean false
11
+ <%= pack_w_version %> mysql-server-5.1/postrm_remove_databases boolean false
12
+ <%= pack_w_version %> mysql-server/password_mismatch boolean false
13
+ <%= pack_w_version %> mysql-server/no_upgrade_when_using_ndb boolean true
@@ -0,0 +1,42 @@
1
+ #!/bin/bash -e
2
+ # Generated by CHEF
3
+ # Local modification will be overriden
4
+
5
+
6
+ <% mysql_cmd = mysqlbin_cmd(node['mariadb']['install']['prefer_scl_package'],
7
+ node['mariadb']['install']['version'],
8
+ 'mysql')
9
+ mysqladmin_cmd = mysqlbin_cmd(node['mariadb']['install']['prefer_scl_package'],
10
+ node['mariadb']['install']['version'],
11
+ 'mysqladmin') %>
12
+ <% if node['mariadb']['allow_root_pass_change'] -%>
13
+ <% if node['mariadb']['server_root_password'].empty? -%>
14
+ <%= mysqladmin_cmd %> -u root password "$1"
15
+ <% else -%>
16
+ <%= mysqladmin_cmd %> -u root -p'<%= node['mariadb']['server_root_password'] %>' password "$1"
17
+ <% end -%>
18
+
19
+ <% end -%>
20
+ password_flag=""
21
+ if [ "$1" ]; then
22
+ password_flag="-p$1"
23
+ fi
24
+
25
+ <% if node['mariadb']['remove_anonymous_users'] -%>
26
+ /bin/echo "DELETE FROM mysql.user WHERE User='';" | <%= mysql_cmd %> -u root ${password_flag}
27
+ <% end -%>
28
+
29
+ <% if node['mariadb']['forbid_remote_root'] -%>
30
+ user_exist=$(<%= mysql_cmd %> -u root ${password_flag} -D mysql -r -B -N -e "SELECT user from user where user = 'root' and host = '%'")
31
+ if [ "$user_exist" == "root" ]; then
32
+ /bin/echo "DROP USER 'root'@'%';" | <%= mysql_cmd %> -u root ${password_flag}
33
+ fi
34
+ <% else -%>
35
+ /bin/echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '<%= node['mariadb']['server_root_password'] %>' WITH GRANT OPTION;" | <%= mysql_cmd %> -u root ${password_flag}
36
+ <% end -%>
37
+
38
+ <% if node['mariadb']['remove_test_database'] -%>
39
+ /bin/echo "DROP DATABASE IF EXISTS test; DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%';" | <%= mysql_cmd %> -u root ${password_flag}
40
+ <% end -%>
41
+
42
+ /bin/echo "FLUSH PRIVILEGES;" | <%= mysql_cmd %> -u root ${password_flag}
@@ -0,0 +1,210 @@
1
+ # DEPLOYED BY CHEF
2
+ # MariaDB database server configuration file.
3
+ #
4
+ # You can copy this file to one of:
5
+ # - "/etc/mysql/my.cnf" to set global options,
6
+ # - "~/.my.cnf" to set user-specific options.
7
+ #
8
+ # One can use all long options that the program supports.
9
+ # Run program with --help to get a list of available options and with
10
+ # --print-defaults to see which it would actually understand and use.
11
+ #
12
+ # For explanations see
13
+ # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
14
+
15
+ # This will be passed to all mysql clients
16
+ # It has been reported that passwords should be enclosed with ticks/quotes
17
+ # escpecially if they contain "#" chars...
18
+ # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
19
+ [client]
20
+ port = <%= node['mariadb']['client']['port'] %>
21
+ socket = <%= node['mariadb']['client']['socket'] %>
22
+ <% if node['mariadb']['client'].attribute?('host') && !node['mariadb']['client']['host'].nil? %>
23
+ host = <%= node['mariadb']['client']['host'] %>
24
+ <% end %>
25
+
26
+ # Here is entries for some specific programs
27
+ # The following values assume you have at least 32M ram
28
+
29
+ # This was formally known as [safe_mysqld]. Both versions are currently parsed.
30
+ [mysqld_safe]
31
+ socket = <%= node['mariadb']['mysqld_safe']['socket'] %>
32
+ nice = 0
33
+ <% if node['mariadb']['mysqld_safe'].key?('options') -%>
34
+ <% node['mariadb']['mysqld_safe']['options'].each { |key, value| -%>
35
+ <%= key %> = <%= value %>
36
+ <% } -%>
37
+ <% end -%>
38
+
39
+ [mysqld]
40
+ #
41
+ # * Basic Settings
42
+ #
43
+ user = <%= node['mariadb']['mysqld']['user'] %>
44
+ <% if node['mariadb']['mysqld'].attribute?('pid_file') %>
45
+ pid-file = <%= node['mariadb']['mysqld']['pid_file'] %>
46
+ <% end %>
47
+ socket = <%= node['mariadb']['mysqld']['socket'] %>
48
+ port = <%= node['mariadb']['mysqld']['port'] %>
49
+ basedir = <%= node['mariadb']['mysqld']['basedir'] %>
50
+ datadir = <%= node['mariadb']['mysqld']['default_datadir'] %>
51
+ tmpdir = <%= node['mariadb']['mysqld']['tmpdir'] %>
52
+ lc_messages_dir = <%= node['mariadb']['mysqld']['lc_messages_dir'] %>
53
+ lc_messages = <%= node['mariadb']['mysqld']['lc_messages'] %>
54
+ <% if node['mariadb']['mysqld']['skip_external_locking'] == 'true' -%>
55
+ skip-external-locking
56
+ <% end -%>
57
+ <% if node['mariadb']['mysqld']['skip_log_bin'] == 'true' -%>
58
+ skip-log-bin
59
+ <% end -%>
60
+ <% if node['mariadb']['mysqld']['skip_name_resolve'] == 'true' -%>
61
+ skip-name-resolve
62
+ <% end -%>
63
+ #
64
+ # Instead of skip-networking the default is now to listen only on
65
+ # localhost which is more compatible and is not less secure.
66
+ <% unless node['mariadb']['mysqld']['bind_address'].nil? or node['mariadb']['mysqld']['bind_address'].empty? -%>
67
+ bind-address = <%= node['mariadb']['mysqld']['bind_address'] %>
68
+ <% end -%>
69
+ #
70
+ # * Fine Tuning
71
+ #
72
+ max_connections = <%= node['mariadb']['mysqld']['max_connections'] %>
73
+ <% unless node['mariadb']['mysqld']['max_statement_time'].empty? -%>
74
+ max_statement_time = <%= node['mariadb']['mysqld']['max_statement_time'] %>
75
+ <% end -%>
76
+ connect_timeout = <%= node['mariadb']['mysqld']['connect_timeout'] %>
77
+ wait_timeout = <%= node['mariadb']['mysqld']['wait_timeout'] %>
78
+ max_allowed_packet = <%= node['mariadb']['mysqld']['max_allowed_packet'] %>
79
+ thread_cache_size = <%= node['mariadb']['mysqld']['thread_cache_size'] %>
80
+ sort_buffer_size = <%= node['mariadb']['mysqld']['sort_buffer_size'] %>
81
+ bulk_insert_buffer_size = <%= node['mariadb']['mysqld']['bulk_insert_buffer_size'] %>
82
+ tmp_table_size = <%= node['mariadb']['mysqld']['tmp_table_size'] %>
83
+ max_heap_table_size = <%= node['mariadb']['mysqld']['max_heap_table_size'] %>
84
+ #
85
+ # * MyISAM
86
+ #
87
+ # This replaces the startup script and checks MyISAM tables if needed
88
+ # the first time they are touched. On error, make copy and try a repair.
89
+ myisam_recover = <%= node['mariadb']['mysqld']['myisam_recover'] %>
90
+ key_buffer_size = <%= node['mariadb']['mysqld']['key_buffer_size'] %>
91
+ <% unless node['mariadb']['mysqld']['open_files_limit'].empty? -%>
92
+ open-files-limit = <%= node['mariadb']['mysqld']['open_files_limit'] %>
93
+ <% end -%>
94
+ table_open_cache = <%= node['mariadb']['mysqld']['table_open_cache'] %>
95
+ myisam_sort_buffer_size = <%= node['mariadb']['mysqld']['myisam_sort_buffer_size'] %>
96
+ concurrent_insert = <%= node['mariadb']['mysqld']['concurrent_insert'] %>
97
+ read_buffer_size = <%= node['mariadb']['mysqld']['read_buffer_size'] %>
98
+ read_rnd_buffer_size = <%= node['mariadb']['mysqld']['read_rnd_buffer_size'] %>
99
+ #
100
+ # * Query Cache Configuration
101
+ #
102
+ # Cache only tiny result sets, so we can fit more in the query cache.
103
+ query_cache_limit = <%= node['mariadb']['mysqld']['query_cache_limit'] %>
104
+ query_cache_size = <%= node['mariadb']['mysqld']['query_cache_size'] %>
105
+ # for more write intensive setups, set to DEMAND or OFF
106
+ <% if node['mariadb']['mysqld']['query_cache_type'].empty? -%>
107
+ #query_cache_type = DEMAND
108
+ <% else -%>
109
+ query_cache_type = <%= node['mariadb']['mysqld']['query_cache_type'] %>
110
+ <% end -%>
111
+ #
112
+ # * Logging and Replication
113
+ #
114
+ # Both location gets rotated by the cronjob.
115
+ # Be aware that this log type is a performance killer.
116
+ # As of 5.1 you can enable the log at runtime!
117
+ general_log_file = <%= node['mariadb']['mysqld']['general_log_file'] %>
118
+ general_log = <%= node['mariadb']['mysqld']['general_log'] %>
119
+ #
120
+ # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
121
+ #
122
+ # we do want to know about network errors and such
123
+ log_warnings = <%= node['mariadb']['mysqld']['log_warnings'] %>
124
+ #
125
+ # Enable the slow query log to see queries with especially long duration
126
+ #slow_query_log[={0|1}]
127
+ slow_query_log = <%= node['mariadb']['mysqld']['slow_query_log'] %>
128
+ slow_query_log_file = <%= node['mariadb']['mysqld']['slow_query_log_file'] %>
129
+ long_query_time = <%= node['mariadb']['mysqld']['long_query_time'] %>
130
+ log_slow_rate_limit = <%= node['mariadb']['mysqld']['log_slow_rate_limit'] %>
131
+ log_slow_verbosity = <%= node['mariadb']['mysqld']['log_slow_verbosity'] %>
132
+ # Logging output type
133
+ log_output = <%= node['mariadb']['mysqld']['log_output'] %>
134
+
135
+ #log-queries-not-using-indexes
136
+ #log_slow_admin_statements
137
+ #
138
+ # The following can be used as easy to replay backup logs or for replication.
139
+ # note: if you are setting up a replication slave, see README.Debian about
140
+ # other settings you may need to change.
141
+ #report_host = master1
142
+ #auto_increment_increment = 2
143
+ #auto_increment_offset = 1
144
+ # not fab for performance, but safer
145
+ #sync_binlog = 1
146
+ # slaves
147
+ #relay_log = /var/log/mysql/relay-bin
148
+ #relay_log_index = /var/log/mysql/relay-bin.index
149
+ #relay_log_info_file = /var/log/mysql/relay-bin.info
150
+ #log_slave_updates
151
+ #read_only
152
+ #
153
+ # If applications support it, this stricter sql_mode prevents some
154
+ # mistakes like inserting invalid dates etc.
155
+ #sql_mode = NO_ENGINE_SUBSTITUTION,TRADITIONAL
156
+
157
+ default_storage_engine = <%= node['mariadb']['mysqld']['default_storage_engine'] %>
158
+
159
+ #
160
+ # * Security Features
161
+ #
162
+ # Read the manual, too, if you want chroot!
163
+ # chroot = /var/lib/mysql/
164
+ #
165
+ # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
166
+ #
167
+ # ssl-ca=/etc/mysql/cacert.pem
168
+ # ssl-cert=/etc/mysql/server-cert.pem
169
+ # ssl-key=/etc/mysql/server-key.pem
170
+
171
+ <% if node['mariadb']['mysqld'].key?('options') -%>
172
+ <% node['mariadb']['mysqld']['options'].each { |key, value| -%>
173
+ <%= key %> = <%= value %>
174
+ <% } -%>
175
+ <% end -%>
176
+
177
+ #
178
+ # * Plugins Options
179
+ #
180
+ <% plugin_load = [] -%>
181
+ <% node['mariadb']['plugins_loading'].each { |plugin, loading| -%>
182
+ <% plugin_load.push(loading) if node['mariadb']['plugins'][plugin] %>
183
+ <% } -%>
184
+ <% unless plugin_load.empty? -%>
185
+ #
186
+ # * Plugins Options
187
+ #
188
+ plugin-load = <%= plugin_load.join(';') %>
189
+ <% end -%>
190
+
191
+ [mysqldump]
192
+ <% if node['mariadb']['mysqldump']['quick'].empty? -%>
193
+ quick
194
+ <% end -%>
195
+ <% if node['mariadb']['mysqldump']['quote_names'].empty? -%>
196
+ quote-names
197
+ <% end -%>
198
+ max_allowed_packet = <%= node['mariadb']['mysqldump']['max_allowed_packet'] %>
199
+
200
+ [mysql]
201
+ #no-auto-rehash # faster start of mysql but no tab completition
202
+
203
+ [isamchk]
204
+ key_buffer = <%= node['mariadb']['isamchk']['key_buffer'] %>
205
+
206
+ #
207
+ # * IMPORTANT: Additional settings that can override those from this file!
208
+ # The files must end with '.cnf', otherwise they'll be ignored.
209
+ #
210
+ !includedir <%= node['mariadb']['configuration']['includedir'] %>/
@@ -0,0 +1,5 @@
1
+ <% node['mariadb']['sections'].each do |section| -%>
2
+ [<%= section %>]
3
+ user=root
4
+ password=<%= node['mariadb']['server_root_password'] %>
5
+ <% end -%>
@@ -0,0 +1 @@
1
+ ~FC016
@@ -0,0 +1,50 @@
1
+ # mingw Cookbook CHANGELOG
2
+
3
+ This file is used to list changes made in each version of the mingw cookbook.
4
+
5
+ ## 2.0.1 (2017-04-26)
6
+
7
+ - Test with Local Delivery instead of Rake
8
+ - Add chef_version to the metadata
9
+ - Use standardize Apache 2 license string
10
+
11
+ ## 2.0.0 (2017-02-27)
12
+
13
+ - Require Chef 12.5 and remove compat_resource dependency
14
+
15
+ ## 1.2.5 (2017-01-18)
16
+
17
+ - Require a working compat_resource
18
+
19
+ ## v1.2.4 (2016-07-26)
20
+
21
+ - New msys2 shells do not inherit PATH from windows. Provide a way for
22
+ clients to do this.
23
+
24
+ ## v1.2.3 (2016-07-25)
25
+
26
+ - If PKG_CONFIG_PATH is already defined, honor it in the msys2 shell.
27
+
28
+ ## v1.2.2 (2016-06-24)
29
+
30
+ - Download msys2 from the primary download url (instead of a specific mirror).
31
+
32
+ ## v1.2.1 (2016-06-23)
33
+
34
+ - Fix msys2 initial install/upgrade steps that dependended on file modification time.
35
+ - Make msys2_package :install idempotent - it should not reinstall packages.
36
+ - Do not allow bash.exe to be called if MSYSTEM is undefined.
37
+
38
+ ## v1.2.0 (2016-06-03)
39
+ - Updating to fix the issue where msys2 bash does not inherit the cwd correctly
40
+
41
+ ## v1.1.0 (2016-06-03)
42
+ - Add msys2 based compiler support using the new msys2_package resource
43
+
44
+ ## v1.0.0 (2016-05-11)
45
+
46
+ - Remove unnecessary default_action from the resources
47
+ - Depend on compat_resource cookbook to add Chef 12.1 - 12.4 compatbility
48
+ - Add this changelog file
49
+ - Fix license metadata in metadata.rb
50
+ - Disable FC016 check
@@ -0,0 +1,2 @@
1
+ Please refer to
2
+ https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD
@@ -0,0 +1,14 @@
1
+ <!-- This is a generated file. Please do not edit directly -->
2
+
3
+ # Maintainers
4
+
5
+ This file lists how this cookbook project is maintained. When making changes to the system, this file tells you who needs to review your patch - you need a review from an existing maintainer for the cookbook to provide a :+1: on your pull request. Additionally, you need to not receive a veto from a Lieutenant or the Project Lead.
6
+
7
+ Check out [How Cookbooks are Maintained](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD) for details on the process and how to become a maintainer or the project lead.
8
+
9
+ # Project Maintainer
10
+ * [Kartik Null Cating-Subramanian](https://github.com/ksubrama)
11
+
12
+ # Maintainers
13
+ * [Kartik Null Cating-Subramanian](https://github.com/ksubrama)
14
+ * [Seth Chisamore](https://github.com/schisamo)