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.
- checksums.yaml +4 -4
- data/.idea/.rakeTasks +7 -0
- data/.idea/inspectionProfiles/Project_Default.xml +6 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/runConfigurations/clone.xml +21 -0
- data/.idea/runConfigurations/libvirt.xml +21 -0
- data/.idea/vagrant-clone.iml +114 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +948 -0
- data/Gemfile +9 -3
- data/Gemfile.lock +123 -37
- data/Rakefile +2 -1
- data/Vagrantfile +9 -0
- data/cookbooks/apt/CHANGELOG.md +321 -0
- data/cookbooks/apt/CONTRIBUTING.md +2 -0
- data/cookbooks/apt/MAINTAINERS.md +15 -0
- data/cookbooks/apt/README.md +250 -0
- data/cookbooks/apt/attributes/default.rb +57 -0
- data/cookbooks/apt/files/15update-stamp +1 -0
- data/cookbooks/apt/files/apt-proxy-v2.conf +50 -0
- data/cookbooks/apt/libraries/helpers.rb +49 -0
- data/cookbooks/apt/libraries/matchers.rb +16 -0
- data/cookbooks/apt/metadata.json +1 -0
- data/cookbooks/apt/recipes/cacher-client.rb +52 -0
- data/cookbooks/apt/recipes/cacher-ng.rb +39 -0
- data/cookbooks/apt/recipes/default.rb +93 -0
- data/cookbooks/apt/recipes/unattended-upgrades.rb +47 -0
- data/cookbooks/apt/resources/preference.rb +90 -0
- data/cookbooks/apt/templates/01proxy.erb +11 -0
- data/cookbooks/apt/templates/10dpkg-options.erb +8 -0
- data/cookbooks/apt/templates/10recommends.erb +3 -0
- data/cookbooks/apt/templates/20auto-upgrades.erb +5 -0
- data/cookbooks/apt/templates/50unattended-upgrades.erb +75 -0
- data/cookbooks/apt/templates/acng.conf.erb +275 -0
- data/cookbooks/apt/templates/unattended-upgrades.seed.erb +1 -0
- data/cookbooks/build-essential/.foodcritic +1 -0
- data/cookbooks/build-essential/CHANGELOG.md +257 -0
- data/cookbooks/build-essential/CONTRIBUTING.md +2 -0
- data/cookbooks/build-essential/MAINTAINERS.md +15 -0
- data/cookbooks/build-essential/README.md +134 -0
- data/cookbooks/build-essential/attributes/default.rb +21 -0
- data/cookbooks/build-essential/libraries/matchers.rb +9 -0
- data/cookbooks/build-essential/metadata.json +1 -0
- data/cookbooks/build-essential/recipes/_windows.rb +53 -0
- data/cookbooks/build-essential/recipes/default.rb +24 -0
- data/cookbooks/build-essential/resources/build_essential.rb +106 -0
- data/cookbooks/build-essential/resources/xcode_command_line_tools.rb +61 -0
- data/cookbooks/compat_resource/CHANGELOG.md +53 -0
- data/cookbooks/compat_resource/CONTRIBUTING.md +2 -0
- data/cookbooks/compat_resource/MAINTAINERS.md +16 -0
- data/cookbooks/compat_resource/README.md +60 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/constants.rb +47 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/delayed_evaluator.rb +40 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/core.rb +73 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/declare_resource.rb +315 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/platform_introspection.rb +292 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/recipe.rb +37 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/universal.rb +70 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/lazy_module_include.rb +98 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/notifying_block.rb +74 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/params_validate.rb +510 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/powershell_out.rb +117 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/properties.rb +328 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/property.rb +713 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/apt_repository.rb +269 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/apt_update.rb +105 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/noop.rb +56 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/support/yum_repo.erb +132 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/systemd_unit.rb +253 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/yum_repository.rb +136 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb +164 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/action_class.rb +114 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/apt_repository.rb +65 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/apt_update.rb +52 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/systemd_unit.rb +81 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/yum_repository.rb +97 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource.rb +214 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource_builder.rb +174 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef.rb +29 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/mixin/properties.rb +8 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/exceptions.rb +10 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/log.rb +30 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/mixin/params_validate.rb +17 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/node.rb +9 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/property.rb +15 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/provider.rb +65 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/recipe.rb +118 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/recipe_hook.rb +20 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource/lwrp_base.rb +60 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource.rb +156 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_builder.rb +167 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_list.rb +49 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_set.rb +49 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection.rb +103 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/run_context.rb +691 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb +153 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef.rb +33 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches.rb +41 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/property.rb +6 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/recipe.rb +8 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/resource/lwrp_base.rb +44 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/resource.rb +56 -0
- data/cookbooks/compat_resource/files/lib/chef_upstream_version.rb +3 -0
- data/cookbooks/compat_resource/files/lib/compat_resource.rb +35 -0
- data/cookbooks/compat_resource/libraries/autoload.rb +31 -0
- data/cookbooks/compat_resource/metadata.json +1 -0
- data/cookbooks/inifile_chef_gem/CHANGELOG.md +11 -0
- data/cookbooks/inifile_chef_gem/README.md +46 -0
- data/cookbooks/inifile_chef_gem/metadata.json +51 -0
- data/cookbooks/inifile_chef_gem/metadata.rb +11 -0
- data/cookbooks/inifile_chef_gem/resources/default.rb +28 -0
- data/cookbooks/mariadb/CHANGELOG.md +332 -0
- data/cookbooks/mariadb/README.md +225 -0
- data/cookbooks/mariadb/attributes/default.rb +199 -0
- data/cookbooks/mariadb/libraries/mariadb_conn_helper.rb +53 -0
- data/cookbooks/mariadb/libraries/mariadb_helper.rb +216 -0
- data/cookbooks/mariadb/libraries/matchers.rb +21 -0
- data/cookbooks/mariadb/metadata.json +1 -0
- data/cookbooks/mariadb/providers/configuration.rb +39 -0
- data/cookbooks/mariadb/recipes/_audit_plugin.rb +63 -0
- data/cookbooks/mariadb/recipes/_debian_galera.rb +62 -0
- data/cookbooks/mariadb/recipes/_debian_server.rb +78 -0
- data/cookbooks/mariadb/recipes/_mariadb_repository.rb +29 -0
- data/cookbooks/mariadb/recipes/_redhat_client.rb +27 -0
- data/cookbooks/mariadb/recipes/_redhat_galera.rb +55 -0
- data/cookbooks/mariadb/recipes/_redhat_server.rb +58 -0
- data/cookbooks/mariadb/recipes/client.rb +47 -0
- data/cookbooks/mariadb/recipes/config.rb +115 -0
- data/cookbooks/mariadb/recipes/default.rb +46 -0
- data/cookbooks/mariadb/recipes/devel.rb +41 -0
- data/cookbooks/mariadb/recipes/galera.rb +324 -0
- data/cookbooks/mariadb/recipes/plugins.rb +3 -0
- data/cookbooks/mariadb/recipes/repository.rb +45 -0
- data/cookbooks/mariadb/recipes/server.rb +157 -0
- data/cookbooks/mariadb/resources/configuration.rb +13 -0
- data/cookbooks/mariadb/resources/mysql2_gem.rb +25 -0
- data/cookbooks/mariadb/resources/replication.rb +192 -0
- data/cookbooks/mariadb/templates/default/conf.d.generic.erb +19 -0
- data/cookbooks/mariadb/templates/default/debian.cnf.erb +12 -0
- data/cookbooks/mariadb/templates/default/mariadb-server.seed.erb +13 -0
- data/cookbooks/mariadb/templates/default/mariadb_grants.erb +42 -0
- data/cookbooks/mariadb/templates/default/my.cnf.erb +210 -0
- data/cookbooks/mariadb/templates/default/root.cnf.erb +5 -0
- data/cookbooks/mingw/.foodcritic +1 -0
- data/cookbooks/mingw/CHANGELOG.md +50 -0
- data/cookbooks/mingw/CONTRIBUTING.md +2 -0
- data/cookbooks/mingw/MAINTAINERS.md +14 -0
- data/cookbooks/mingw/README.md +133 -0
- data/cookbooks/mingw/files/default/bash.bat +17 -0
- data/cookbooks/mingw/files/default/custom-upgrade.sh +23 -0
- data/cookbooks/mingw/files/default/custom_prefix.sh +13 -0
- data/cookbooks/mingw/files/default/pthread.h +719 -0
- data/cookbooks/mingw/files/default/time.h +297 -0
- data/cookbooks/mingw/libraries/_helper.rb +38 -0
- data/cookbooks/mingw/metadata.json +1 -0
- data/cookbooks/mingw/recipes/default.rb +19 -0
- data/cookbooks/mingw/resources/get.rb +56 -0
- data/cookbooks/mingw/resources/msys2_package.rb +139 -0
- data/cookbooks/mingw/resources/tdm_gcc.rb +114 -0
- data/cookbooks/ohai/.foodcritic +2 -0
- data/cookbooks/ohai/CHANGELOG.md +166 -0
- data/cookbooks/ohai/CONTRIBUTING.md +2 -0
- data/cookbooks/ohai/MAINTAINERS.md +15 -0
- data/cookbooks/ohai/README.md +134 -0
- data/cookbooks/ohai/libraries/matchers.rb +41 -0
- data/cookbooks/ohai/metadata.json +1 -0
- data/cookbooks/ohai/recipes/default.rb +20 -0
- data/cookbooks/ohai/resources/hint.rb +55 -0
- data/cookbooks/ohai/resources/plugin.rb +117 -0
- data/cookbooks/selinux_policy/.gitignore +51 -0
- data/cookbooks/selinux_policy/.kitchen.yml +25 -0
- data/cookbooks/selinux_policy/.rubocop.yml +2 -0
- data/cookbooks/selinux_policy/.travis.yml +26 -0
- data/cookbooks/selinux_policy/Berksfile +8 -0
- data/cookbooks/selinux_policy/CHANGELOG.md +155 -0
- data/cookbooks/selinux_policy/LICENSE +13 -0
- data/cookbooks/selinux_policy/README.md +217 -0
- data/cookbooks/selinux_policy/Rakefile +68 -0
- data/cookbooks/selinux_policy/TESTING.md +2 -0
- data/cookbooks/selinux_policy/Thorfile +12 -0
- data/cookbooks/selinux_policy/attributes/default.rb +5 -0
- data/cookbooks/selinux_policy/chefignore +102 -0
- data/cookbooks/selinux_policy/libraries/helper-disabled.rb +29 -0
- data/cookbooks/selinux_policy/libraries/matchers.rb +57 -0
- data/cookbooks/selinux_policy/metadata.json +58 -0
- data/cookbooks/selinux_policy/metadata.rb +20 -0
- data/cookbooks/selinux_policy/providers/boolean.rb +28 -0
- data/cookbooks/selinux_policy/providers/fcontext.rb +78 -0
- data/cookbooks/selinux_policy/providers/module.rb +81 -0
- data/cookbooks/selinux_policy/providers/permissive.rb +26 -0
- data/cookbooks/selinux_policy/providers/port.rb +58 -0
- data/cookbooks/selinux_policy/recipes/default.rb +9 -0
- data/cookbooks/selinux_policy/recipes/install.rb +32 -0
- data/cookbooks/selinux_policy/resources/boolean.rb +8 -0
- data/cookbooks/selinux_policy/resources/fcontext.rb +8 -0
- data/cookbooks/selinux_policy/resources/module.rb +21 -0
- data/cookbooks/selinux_policy/resources/permissive.rb +6 -0
- data/cookbooks/selinux_policy/resources/port.rb +9 -0
- data/cookbooks/seven_zip/CHANGELOG.md +30 -0
- data/cookbooks/seven_zip/README.md +108 -0
- data/cookbooks/seven_zip/attributes/default.rb +31 -0
- data/cookbooks/seven_zip/libraries/matchers.rb +33 -0
- data/cookbooks/seven_zip/metadata.json +1 -0
- data/cookbooks/seven_zip/providers/archive.rb +68 -0
- data/cookbooks/seven_zip/recipes/default.rb +41 -0
- data/cookbooks/seven_zip/resources/archive.rb +29 -0
- data/cookbooks/windows/.foodcritic +2 -0
- data/cookbooks/windows/CHANGELOG.md +528 -0
- data/cookbooks/windows/CONTRIBUTING.md +2 -0
- data/cookbooks/windows/MAINTAINERS.md +21 -0
- data/cookbooks/windows/README.md +803 -0
- data/cookbooks/windows/attributes/default.rb +21 -0
- data/cookbooks/windows/files/dism_features.rb +45 -0
- data/cookbooks/windows/libraries/matchers.rb +586 -0
- data/cookbooks/windows/libraries/powershell_helper.rb +53 -0
- data/cookbooks/windows/libraries/registry_helper.rb +356 -0
- data/cookbooks/windows/libraries/version.rb +207 -0
- data/cookbooks/windows/libraries/version_helper.rb +79 -0
- data/cookbooks/windows/libraries/windows_helper.rb +174 -0
- data/cookbooks/windows/libraries/windows_privileged.rb +103 -0
- data/cookbooks/windows/libraries/wmi_helper.rb +32 -0
- data/cookbooks/windows/metadata.json +1 -0
- data/cookbooks/windows/recipes/default.rb +21 -0
- data/cookbooks/windows/resources/auto_run.rb +46 -0
- data/cookbooks/windows/resources/certificate.rb +166 -0
- data/cookbooks/windows/resources/certificate_binding.rb +128 -0
- data/cookbooks/windows/resources/feature.rb +82 -0
- data/cookbooks/windows/resources/feature_dism.rb +108 -0
- data/cookbooks/windows/resources/feature_powershell.rb +70 -0
- data/cookbooks/windows/resources/feature_servermanagercmd.rb +76 -0
- data/cookbooks/windows/resources/font.rb +80 -0
- data/cookbooks/windows/resources/http_acl.rb +110 -0
- data/cookbooks/windows/resources/pagefile.rb +152 -0
- data/cookbooks/windows/resources/path.rb +54 -0
- data/cookbooks/windows/resources/printer.rb +103 -0
- data/cookbooks/windows/resources/printer_port.rb +101 -0
- data/cookbooks/windows/resources/share.rb +291 -0
- data/cookbooks/windows/resources/shortcut.rb +53 -0
- data/cookbooks/windows/resources/task.rb +384 -0
- data/cookbooks/windows/resources/zipfile.rb +125 -0
- data/cookbooks/yum/.foodcritic +1 -0
- data/cookbooks/yum/CHANGELOG.md +351 -0
- data/cookbooks/yum/CONTRIBUTING.md +2 -0
- data/cookbooks/yum/MAINTAINERS.md +16 -0
- data/cookbooks/yum/README.md +125 -0
- data/cookbooks/yum/attributes/main.rb +103 -0
- data/cookbooks/yum/libraries/matchers.rb +9 -0
- data/cookbooks/yum/metadata.json +1 -0
- data/cookbooks/yum/recipes/default.rb +26 -0
- data/cookbooks/yum/recipes/dnf_yum_compat.rb +29 -0
- data/cookbooks/yum/resources/globalconfig.rb +119 -0
- data/cookbooks/yum/templates/.DS_Store +0 -0
- data/cookbooks/yum/templates/main.erb +276 -0
- data/cookbooks/yum-epel/CHANGELOG.md +138 -0
- data/cookbooks/yum-epel/CONTRIBUTING.md +2 -0
- data/cookbooks/yum-epel/MAINTAINERS.md +19 -0
- data/cookbooks/yum-epel/README.md +172 -0
- data/cookbooks/yum-epel/attributes/default.rb +8 -0
- data/cookbooks/yum-epel/attributes/epel-debuginfo.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel-source.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel-testing-debuginfo.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel-testing-source.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel-testing.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel.rb +21 -0
- data/cookbooks/yum-epel/metadata.json +1 -0
- data/cookbooks/yum-epel/recipes/default.rb +27 -0
- data/cookbooks/yum-scl/.kitchen.dokken.yml +24 -0
- data/cookbooks/yum-scl/.kitchen.yml +24 -0
- data/cookbooks/yum-scl/.rubocop.yml +6 -0
- data/cookbooks/yum-scl/.travis.yml +28 -0
- data/cookbooks/yum-scl/Berksfile +3 -0
- data/cookbooks/yum-scl/Berksfile.lock +25 -0
- data/cookbooks/yum-scl/CHANGELOG.md +11 -0
- data/cookbooks/yum-scl/Gemfile +46 -0
- data/cookbooks/yum-scl/README.md +76 -0
- data/cookbooks/yum-scl/attributes/centos.rb +83 -0
- data/cookbooks/yum-scl/attributes/default.rb +15 -0
- data/cookbooks/yum-scl/attributes/scientific.rb +1 -0
- data/cookbooks/yum-scl/files/default/RPM-GPG-KEY-CentOS-SIG-SCLo +20 -0
- data/cookbooks/yum-scl/libraries/yum_scl_helper.rb +33 -0
- data/cookbooks/yum-scl/metadata.json +42 -0
- data/cookbooks/yum-scl/metadata.rb +12 -0
- data/cookbooks/yum-scl/recipes/chef_install.rb +52 -0
- data/cookbooks/yum-scl/recipes/default.rb +17 -0
- data/cookbooks/yum-scl/recipes/native_install.rb +35 -0
- data/lib/vagrant-clone/command/clone.rb +66 -61
- data/lib/vagrant-clone/errors.rb +61 -0
- data/lib/vagrant-clone/util/clone_manager_base.rb +69 -0
- data/lib/vagrant-clone/util/clone_managers/docker.rb +31 -0
- data/lib/vagrant-clone/util/clone_managers/libvirt.rb +254 -0
- data/lib/vagrant-clone/util/vagrantfile_managers/docker.rb +154 -0
- data/lib/vagrant-clone/util/vagrantfile_managers/libvirt.rb +159 -0
- data/lib/vagrant-clone/version.rb +2 -2
- data/lib/vagrant-clone.rb +6 -6
- data/libvirt.txt +7 -0
- data/performance_testing.rb +165 -0
- data/results.txt +45 -0
- data/scripts/create_box.sh +134 -0
- data/test.rb +92 -0
- data/tools/create_box.sh +130 -0
- data/vagrant-clone.gemspec +7 -7
- metadata +296 -5
- data/lib/vagrant-clone/command/errors.rb +0 -16
- data/lib/vagrant-clone/command/provider/docker.rb +0 -13
- data/lib/vagrant-clone/utils/vagrantfile_manager.rb +0 -47
@@ -0,0 +1,351 @@
|
|
1
|
+
# yum Cookbook CHANGELOG
|
2
|
+
|
3
|
+
This file is used to list changes made in each version of the yum cookbook.
|
4
|
+
|
5
|
+
## 5.0.1 (2017-04-06)
|
6
|
+
|
7
|
+
- Switch from Rake testing to Local Delivery
|
8
|
+
- Rename kitchen-docker to kitchen-dokken
|
9
|
+
- Update apache2 license string
|
10
|
+
- use true/false vs. TrueClass and FalseClass in the resource
|
11
|
+
|
12
|
+
## 5.0.0 (2017-02-12)
|
13
|
+
|
14
|
+
### Breaking changes
|
15
|
+
|
16
|
+
- Removed the yum_repository resource and instead require chef-client 12.14 or later, which has the yum repository functionality built in. This resolves Chef 13 compatibility warnings for any cookbook with the yum cookbook.
|
17
|
+
|
18
|
+
### Other changes
|
19
|
+
|
20
|
+
- Convert yum_globalconfig from an LWRP to a custom resource
|
21
|
+
|
22
|
+
## 4.2.0 (2017-02-12)
|
23
|
+
|
24
|
+
- Make cache in the DNF compat recipe
|
25
|
+
- Fix `fastestmirror_enabled`.
|
26
|
+
- Require Chef 12.1 not 12.0
|
27
|
+
- Convert to Inspec
|
28
|
+
|
29
|
+
## 4.1.0 (2016-10-21)
|
30
|
+
|
31
|
+
- Purge yum cache before removing a repo not after
|
32
|
+
|
33
|
+
## 4.0.0 (2016-09-06)
|
34
|
+
|
35
|
+
- Remove support for Chef 11
|
36
|
+
|
37
|
+
## 3.13.0 (2016-09-06)
|
38
|
+
|
39
|
+
- Add deprecation warning for add/remove actions, which were replaced with create/delete in Yum 3.0
|
40
|
+
- Remove support for Chef 10
|
41
|
+
|
42
|
+
## v3.12.0 (2016-08-25)
|
43
|
+
|
44
|
+
- Fixing baseurl to support multiple urls
|
45
|
+
- Modify releasever attribute for Amazon to match Amazon's default policy for releasever
|
46
|
+
|
47
|
+
## v3.11.0 (2016-06-01)
|
48
|
+
|
49
|
+
- Install yum at compile time in the dnf compatibility recipe
|
50
|
+
- Add IBM zlinux as a supported platform in the metadata
|
51
|
+
- Use cookstyle instead of rubocop to provide a consistent linting experience
|
52
|
+
|
53
|
+
## v3.10.0 (2016-02-04)
|
54
|
+
|
55
|
+
- Add a new sensitive attribute to the repository resource so prevent writing the diff of the config to Chef output / logs
|
56
|
+
- Update testing dependencies and remove the Guardfile / Guard dependencies
|
57
|
+
|
58
|
+
## v3.9.0 (2016-01-14)
|
59
|
+
|
60
|
+
- Added dnf_yum_compat recipe to ensure yum is installed on Fedora systems for Chef package resource compatibility. This will no longer be necessary when native dnf package support ships in chef-client.
|
61
|
+
|
62
|
+
## v3.8.2 (2015-10-28)
|
63
|
+
|
64
|
+
- # 141 - Replace clean_headers with clean_metadata
|
65
|
+
|
66
|
+
## v3.8.1 (2015-10-28)
|
67
|
+
|
68
|
+
- Fixing up Chef13 deprecation warnings
|
69
|
+
|
70
|
+
## v3.8.0 (2015-10-13)
|
71
|
+
|
72
|
+
- adding clean_headers boolean property to yum_resource
|
73
|
+
- restoring Chef 10 backwards compat for the sake of ChefSpec
|
74
|
+
- (unique resource names needed to avoid cloning)
|
75
|
+
- Fixing localpkg_gpgcheck values
|
76
|
+
|
77
|
+
## v3.7.1 (2015-09-08)
|
78
|
+
|
79
|
+
- # 135 - reverting "yum clean headers" as it breaks dnf compat
|
80
|
+
|
81
|
+
## v3.7.0 (2015-09-05)
|
82
|
+
|
83
|
+
- Adding deltarpm toggle
|
84
|
+
- Cleaning 'headers' rather than 'all'
|
85
|
+
|
86
|
+
## v3.6.3 (2015-07-13)
|
87
|
+
|
88
|
+
- Normalizing sslverify option rendering behavior
|
89
|
+
- Setting default value on the resource to nil
|
90
|
+
- Explictly setting string to render in template if value is supplied
|
91
|
+
- Behavior should default to "True", per man page
|
92
|
+
|
93
|
+
## v3.6.2 (2015-07-13)
|
94
|
+
|
95
|
+
- Adding -y to makecache, to import key when repo_gpgcheck = true.
|
96
|
+
- Accepting Integer value for max_retries
|
97
|
+
|
98
|
+
## v3.6.1 (2015-06-04)
|
99
|
+
|
100
|
+
- Executing yum clean before makecache
|
101
|
+
- Adding repo_gpgcheck
|
102
|
+
|
103
|
+
## v3.6.0 (2015-04-23)
|
104
|
+
|
105
|
+
- Adding "yum clean" before "yum makecache" in yum_repository :create
|
106
|
+
- Adding why_run support to yum_globalconfig
|
107
|
+
|
108
|
+
## v3.5.4 (2015-04-07)
|
109
|
+
|
110
|
+
- Changing tolerant config line to stringified integer
|
111
|
+
|
112
|
+
## v3.5.3 (2015-01-16)
|
113
|
+
|
114
|
+
- Adding reposdir to globalconfig template
|
115
|
+
|
116
|
+
## v3.5.2 (2014-12-24)
|
117
|
+
|
118
|
+
- Fixing redhat-release detection for Redhat 7
|
119
|
+
|
120
|
+
## v3.5.1 (2014-11-24)
|
121
|
+
|
122
|
+
- Reverting management of ca-certificates because EL5 was broken
|
123
|
+
|
124
|
+
## v3.5.0 (2014-11-24)
|
125
|
+
|
126
|
+
- Adding management of ca-certificates package to yum_repository provider
|
127
|
+
|
128
|
+
## v3.4.1 (2014-10-29)
|
129
|
+
|
130
|
+
- Run yum-makecache only_if new_resource.enabled
|
131
|
+
- Allow setting of reposdir in global yum config and man page
|
132
|
+
- Change default 'obsoletes' behavior to match yum defaults
|
133
|
+
|
134
|
+
## v3.4.0 (2014-10-15)
|
135
|
+
|
136
|
+
- Dynamically generate the new_resource attributes
|
137
|
+
|
138
|
+
## v3.3.2 (2014-09-11)
|
139
|
+
|
140
|
+
- Fix globalconfig resource param for http_caching
|
141
|
+
|
142
|
+
## v3.3.1 (2014-09-04)
|
143
|
+
|
144
|
+
- Fix issue with sslverify if set to false
|
145
|
+
- Add fancy badges
|
146
|
+
|
147
|
+
## v3.3.0 (2014-09-03)
|
148
|
+
|
149
|
+
- Adding tuning attributes for all supported resource parameters
|
150
|
+
- Adding options hash parameter
|
151
|
+
- Adding (real) rhel-6.5 and centos-7.0 to test-kitchen coverage
|
152
|
+
- Updating regex for mirror_expire and mirrorlist_expire to include /^\d+[mhd]$/
|
153
|
+
- Updating README so keepcache reflects reality (defaults to false)
|
154
|
+
- Changing 'obsoletes' behavior in globalconfig resource to match
|
155
|
+
- default behavior. (now defaults to nil, yum defaults to false)
|
156
|
+
- Adding makecache action to repository resource
|
157
|
+
- Adding mode parameter to repository resource. Defaults to '0644'.
|
158
|
+
|
159
|
+
## v3.2.4 (2014-08-20)
|
160
|
+
|
161
|
+
- # 82 - Adding a makecache parameter
|
162
|
+
|
163
|
+
## v3.2.2 (2014-06-11)
|
164
|
+
|
165
|
+
- # 77 - Parameter default to be Trueclass instead of "1"
|
166
|
+
|
167
|
+
- # 78 - add releasever parameter
|
168
|
+
|
169
|
+
## v3.2.0 (2014-04-09)
|
170
|
+
|
171
|
+
- [COOK-4510] - Adding username and password parameters to node attributes
|
172
|
+
- [COOK-4518] - Fix Scientific Linux distroverpkg
|
173
|
+
|
174
|
+
## v3.1.6 (2014-03-27)
|
175
|
+
|
176
|
+
- [COOK-4463] - support multiple GPG keys
|
177
|
+
- [COOK-4364] - yum_repository delete action fails
|
178
|
+
|
179
|
+
## v3.1.4 (2014-03-12)
|
180
|
+
|
181
|
+
- [COOK-4417] Expand test harness to encompass 32-bit boxes
|
182
|
+
|
183
|
+
## v3.1.2 (2014-02-23)
|
184
|
+
|
185
|
+
Fixing bugs around :delete action and cache clean Fixing specs to cover :remove and :delete aliasing properly Adding Travis-ci build matrix bits
|
186
|
+
|
187
|
+
## v3.1.0 (2014-02-13)
|
188
|
+
|
189
|
+
- Updating testing harness for integration testing on Travis-ci
|
190
|
+
- Adding TESTING.md and Guardfile
|
191
|
+
- PR #67 - Add skip_if_unvailable repository option
|
192
|
+
- PR #64 - Fix validation of 'metadata_expire' option to match documentation
|
193
|
+
- [COOK-3591] - removing node.name from repo template rendering
|
194
|
+
- [COOK-4275] - Enhancements to yum cookbook
|
195
|
+
- Adding full spec coverage
|
196
|
+
- Adding support for custom source template to yum_repository
|
197
|
+
|
198
|
+
## v3.0.8 (2014-01-27)
|
199
|
+
|
200
|
+
Fixing typo in default.rb. yum_globalconfig now passes proxy attribute correctly.
|
201
|
+
|
202
|
+
## v3.0.6 (2014-01-27)
|
203
|
+
|
204
|
+
Updating default.rb to consume node['yum']['main']['proxy']
|
205
|
+
|
206
|
+
## v3.0.4 (2013-12-29)
|
207
|
+
|
208
|
+
### Bug
|
209
|
+
|
210
|
+
- **[COOK-4156](https://tickets.chef.io/browse/COOK-4156)** - yum cookbook creates a yum.conf with "cachefir" directive
|
211
|
+
|
212
|
+
## v3.0.2
|
213
|
+
|
214
|
+
Updating globalconfig provider for Chef 10 compatability
|
215
|
+
|
216
|
+
## v3.0.0
|
217
|
+
|
218
|
+
3.0.0 Major rewrite with breaking changes. Recipes broken out into individual cookbooks yum_key resource has been removed yum_repository resource now takes gpgkey as a URL directly yum_repository actions have been reduced to :create and :delete 'name' has been changed to repositoryid to avoid ambiguity chefspec test coverage gpgcheck is set to 'true' by default and must be explicitly disabled
|
219
|
+
|
220
|
+
## v2.4.4
|
221
|
+
|
222
|
+
Reverting to Ruby 1.8 hash syntax.
|
223
|
+
|
224
|
+
## v2.4.2
|
225
|
+
|
226
|
+
[COOK-3275] LWRP repository.rb :add method fails to create yum repo in some cases which causes :update to fail Amazon rhel
|
227
|
+
|
228
|
+
## v2.4.0
|
229
|
+
|
230
|
+
### Improvement
|
231
|
+
|
232
|
+
- [COOK-3025] - Allow per-repo proxy definitions
|
233
|
+
|
234
|
+
## v2.3.4
|
235
|
+
|
236
|
+
### Improvement
|
237
|
+
|
238
|
+
- **[COOK-3689](https://tickets.chef.io/browse/COOK-3689)** - Fix warnings about resource cloning
|
239
|
+
- **[COOK-3574](https://tickets.chef.io/browse/COOK-3574)** - Add missing "description" field in metadata
|
240
|
+
|
241
|
+
## v2.3.2
|
242
|
+
|
243
|
+
### Bug
|
244
|
+
|
245
|
+
- **[COOK-3145](https://tickets.chef.io/browse/COOK-3145)** - Use correct download URL for epel `key_url`
|
246
|
+
|
247
|
+
## v2.3.0
|
248
|
+
|
249
|
+
### New Feature
|
250
|
+
|
251
|
+
- [COOK-2924]: Yum should allow type setting in repo file
|
252
|
+
|
253
|
+
## v2.2.4
|
254
|
+
|
255
|
+
### Bug
|
256
|
+
|
257
|
+
- [COOK-2360]: last commit to `yum_repository` changes previous behaviour
|
258
|
+
- [COOK-3015]: Yum cookbook test minitest to fail
|
259
|
+
|
260
|
+
## v2.2.2
|
261
|
+
|
262
|
+
### Improvement
|
263
|
+
|
264
|
+
- [COOK-2741]: yum::elrepo
|
265
|
+
- [COOK-2946]: update tests, test kitchen support in yum cookbook
|
266
|
+
|
267
|
+
### Bug
|
268
|
+
|
269
|
+
- [COOK-2639]: Yum cookbook - epel - always assumes url is a mirror list
|
270
|
+
- [COOK-2663]: Yum should allow metadata_expire setting in repo file
|
271
|
+
- [COOK-2751]: Update yum.ius_release version to 1.0-11
|
272
|
+
|
273
|
+
## v2.2.0
|
274
|
+
|
275
|
+
- [COOK-2189] - yum::ius failed on install (caused from rpm dependency)
|
276
|
+
- [COOK-2196] - Make includepkgs and exclude configurable for each repos
|
277
|
+
- [COOK-2244] - Allow configuring caching using attributes
|
278
|
+
- [COOK-2399] - yum cookbook LWRPs fail FoodCritic
|
279
|
+
- [COOK-2519] - Add priority option to Yum repo files
|
280
|
+
- [COOK-2593] - allow integer or string for yum priority
|
281
|
+
- [COOK-2643] - don't use conditional attribute for `yum_key` `remote_file`
|
282
|
+
|
283
|
+
## v2.1.0
|
284
|
+
|
285
|
+
- [COOK-2045] - add remi repository recipe
|
286
|
+
- [COOK-2121] - add `:create` action to `yum_repository`
|
287
|
+
|
288
|
+
## v2.0.6
|
289
|
+
|
290
|
+
- [COOK-2037] - minor style fixes
|
291
|
+
- [COOK-2038] - updated README
|
292
|
+
|
293
|
+
## v2.0.4
|
294
|
+
|
295
|
+
- [COOK-1908] - unable to install repoforge on CentOS 6 32 bit
|
296
|
+
|
297
|
+
## v2.0.2
|
298
|
+
|
299
|
+
- [COOK-1758] - Add default action for repository resource
|
300
|
+
|
301
|
+
## v2.0.0
|
302
|
+
|
303
|
+
This version changes the behavior of the EPEL recipe (most commonly used in other Chef cookbooks) on Amazon, and removes an attribute, `node['yum']['epel_release']`. See the README for details.
|
304
|
+
|
305
|
+
- [COOK-1772] - Simplify management of EPEL with LWRP
|
306
|
+
|
307
|
+
## v1.0.0
|
308
|
+
|
309
|
+
`mirrorlist` in the `yum_repository` LWRP must be set to the mirror list URI to use rather than setting it to true. See README.md.
|
310
|
+
|
311
|
+
- [COOK-1088] - use dl.fedoraproject.org for EPEL to prevent redirects
|
312
|
+
- [COOK-1653] - fix mirrorlist
|
313
|
+
- [COOK-1710] - support http proxy
|
314
|
+
- [COOK-1722] - update IUS version
|
315
|
+
|
316
|
+
## v0.8.2
|
317
|
+
|
318
|
+
- [COOK-1521] - add :update action to `yum_repository`
|
319
|
+
|
320
|
+
## v0.8.0
|
321
|
+
|
322
|
+
- [COOK-1204] - Make 'add' default action for yum_repository
|
323
|
+
- [COOK-1351] - option to not make the yum cache (via attribute)
|
324
|
+
- [COOK-1353] - x86_64 centos path fixes
|
325
|
+
- [COOK-1414] - recipe for repoforge
|
326
|
+
|
327
|
+
## v0.6.2
|
328
|
+
|
329
|
+
- Updated README to remove git diff artifacts.
|
330
|
+
|
331
|
+
## v0.6.0
|
332
|
+
|
333
|
+
- Default action for the yum_repository LWRP is now add.
|
334
|
+
- [COOK-1227] - clear Chefs internal cache after adding new yum repo
|
335
|
+
- [COOK-1262] - yum::epel should enable existing repo on Amazon Linux
|
336
|
+
- [COOK-1272], [COOK-1302] - update RPM file for CentOS / RHEL 6
|
337
|
+
- [COOK-1330] - update cookbook documentation on excludes for yum
|
338
|
+
- [COOK-1346] - retry remote_file for EPEL in case we get an FTP mirror
|
339
|
+
|
340
|
+
## v0.5.2
|
341
|
+
|
342
|
+
- [COOK-825] - epel and ius `remote_file` should notify the `rpm_package` to install
|
343
|
+
|
344
|
+
## v0.5.0
|
345
|
+
|
346
|
+
- [COOK-675] - add recipe for handling EPEL repository
|
347
|
+
- [COOK-722] - add recipe for handling IUS repository
|
348
|
+
|
349
|
+
## v.0.1.2
|
350
|
+
|
351
|
+
- Remove yum update in default recipe, that doesn't update caches, it updates packages installed.
|
@@ -0,0 +1,16 @@
|
|
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
|
+
* [Tim Smith](https://github.com/tas50)
|
11
|
+
|
12
|
+
# Maintainers
|
13
|
+
* [Jennifer Davis](https://github.com/sigje)
|
14
|
+
* [Sean OMeara](https://github.com/someara)
|
15
|
+
* [Tim Smith](https://github.com/tas50)
|
16
|
+
* [Thom May](https://github.com/thommay)
|
@@ -0,0 +1,125 @@
|
|
1
|
+
# yum Cookbook
|
2
|
+
|
3
|
+
[](http://travis-ci.org/chef-cookbooks/yum) [](https://supermarket.chef.io/cookbooks/yum)
|
4
|
+
|
5
|
+
The Yum cookbook exposes the `yum_globalconfig` resource which allows a user to control global yum behavior. This resources aims to allow the user to configure all options listed in the `yum.conf` man page, found at <http://linux.die.net/man/5/yum.conf>
|
6
|
+
|
7
|
+
## Requirements
|
8
|
+
|
9
|
+
### Platforms
|
10
|
+
|
11
|
+
- RHEL/CentOS and derivatives
|
12
|
+
- Fedora
|
13
|
+
|
14
|
+
### Chef
|
15
|
+
|
16
|
+
- Chef 12.14+
|
17
|
+
|
18
|
+
### Cookbooks
|
19
|
+
|
20
|
+
- none
|
21
|
+
|
22
|
+
## Resources
|
23
|
+
|
24
|
+
### yum_globalconfig
|
25
|
+
|
26
|
+
This renders a template with global yum configuration parameters. The default recipe uses it to render `/etc/yum.conf`. It is flexible enough to be used in other scenarios, such as building RPMs in isolation by modifying `installroot`.
|
27
|
+
|
28
|
+
#### Example
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
yum_globalconfig '/my/chroot/etc/yum.conf' do
|
32
|
+
cachedir '/my/chroot/etc/yum.conf'
|
33
|
+
keepcache 'yes'
|
34
|
+
debuglevel '2'
|
35
|
+
installroot '/my/chroot'
|
36
|
+
action :create
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Properties
|
41
|
+
|
42
|
+
`yum_globalconfig` can take most of the same parameters as a `yum_repository`, plus more, too numerous to describe here. Below are a few of the more commonly used ones. For a complete list, please consult the `yum.conf` man page, found here: <http://linux.die.net/man/5/yum.conf>
|
43
|
+
|
44
|
+
- `cachedir` - Directory where yum should store its cache and db files. The default is '/var/cache/yum'.
|
45
|
+
- `keepcache` - Either `true` or `false`. Determines whether or not yum keeps the cache of headers and packages after successful installation. Default is `false`
|
46
|
+
- `debuglevel` - Debug message output level. Practical range is 0-10\. Default is '2'.
|
47
|
+
- `exclude` - List of packages to exclude from updates or installs. This should be a space separated list. Shell globs using wildcards (eg. * and ?) are allowed.
|
48
|
+
- `installonlypkgs` = List of package provides that should only ever be installed, never updated. Kernels in particular fall into this category. Defaults to kernel, kernel-bigmem, kernel-enterprise, kernel-smp, kernel-debug, kernel-unsupported, kernel-source, kernel-devel, kernel-PAE, kernel-PAE-debug.
|
49
|
+
- `logfile` - Full directory and file name for where yum should write its log file.
|
50
|
+
- `exactarch` - Either `true` or `false`. Set to `true` to make 'yum update' only update the architectures of packages that you have installed. ie: with this enabled yum will not install an i686 package to update an x86_64 package. Default is `true`
|
51
|
+
- `gpgcheck` - Either `true` or `false`. This tells yum whether or not it should perform a GPG signature check on the packages gotten from this repository.
|
52
|
+
|
53
|
+
### yum_repository
|
54
|
+
|
55
|
+
This resource is now provided by chef-client 12.14 and later and has been removed from this cookbook. If you require this resource we highly recommend upgrading your chef-client, but if that is not an option you can pin the 4.X yum cookbook.
|
56
|
+
|
57
|
+
## Recipes
|
58
|
+
|
59
|
+
- `default` - Configures `yum_globalconfig[/etc/yum.conf]` with values found in node attributes at `node['yum']['main']`
|
60
|
+
- `dnf_yum_compat` - Installs the yum package using dnf on Fedora systems to provide support for the package resource in recipes. This is necessary on chef-client < 12.18\. This recipe should be 1st on a Fedora runlist
|
61
|
+
|
62
|
+
## Attributes
|
63
|
+
|
64
|
+
The following attributes are set by default
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
default['yum']['main']['cachedir'] = '/var/cache/yum/$basearch/$releasever'
|
68
|
+
default['yum']['main']['keepcache'] = false
|
69
|
+
default['yum']['main']['debuglevel'] = nil
|
70
|
+
default['yum']['main']['exclude'] = nil
|
71
|
+
default['yum']['main']['logfile'] = '/var/log/yum.log'
|
72
|
+
default['yum']['main']['exactarch'] = nil
|
73
|
+
default['yum']['main']['obsoletes'] = nil
|
74
|
+
default['yum']['main']['installonly_limit'] = nil
|
75
|
+
default['yum']['main']['installonlypkgs'] = nil
|
76
|
+
default['yum']['main']['installroot'] = nil
|
77
|
+
```
|
78
|
+
|
79
|
+
For Amazon platform nodes,
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
default['yum']['main']['releasever'] = 'latest'
|
83
|
+
```
|
84
|
+
|
85
|
+
## Related Cookbooks
|
86
|
+
|
87
|
+
Recipes from older versions of this cookbook have been moved individual cookbooks. Recipes for managing platform yum configurations and installing specific repositories can be found in one (or more!) of the following cookbook.
|
88
|
+
|
89
|
+
- yum-centos
|
90
|
+
- yum-fedora
|
91
|
+
- yum-amazon
|
92
|
+
- yum-epel
|
93
|
+
- yum-elrepo
|
94
|
+
- yum-repoforge
|
95
|
+
- yum-ius
|
96
|
+
- yum-percona
|
97
|
+
- yum-pgdg
|
98
|
+
|
99
|
+
## Usage
|
100
|
+
|
101
|
+
Put `depends 'yum'` in your metadata.rb to gain access to the yum_repository resource.
|
102
|
+
|
103
|
+
## License & Authors
|
104
|
+
|
105
|
+
- Author:: Eric G. Wolfe
|
106
|
+
- Author:: Matt Ray ([matt@chef.io](mailto:matt@chef.io))
|
107
|
+
- Author:: Joshua Timberman ([joshua@chef.io](mailto:joshua@chef.io))
|
108
|
+
- Author:: Sean OMeara ([someara@chef.io](mailto:someara@chef.io))
|
109
|
+
|
110
|
+
```text
|
111
|
+
Copyright:: 2011 Eric G. Wolfe
|
112
|
+
Copyright:: 2013-2017 Chef Software, Inc.
|
113
|
+
|
114
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
115
|
+
you may not use this file except in compliance with the License.
|
116
|
+
You may obtain a copy of the License at
|
117
|
+
|
118
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
119
|
+
|
120
|
+
Unless required by applicable law or agreed to in writing, software
|
121
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
122
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
123
|
+
See the License for the specific language governing permissions and
|
124
|
+
limitations under the License.
|
125
|
+
```
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# http://linux.die.net/man/5/yum.conf
|
2
|
+
default['yum']['main']['cachedir'] = case node['platform_version'].to_i
|
3
|
+
when 5
|
4
|
+
'/var/cache/yum'
|
5
|
+
else
|
6
|
+
'/var/cache/yum/$basearch/$releasever'
|
7
|
+
end
|
8
|
+
|
9
|
+
default['yum']['main']['distroverpkg'] = case node['platform']
|
10
|
+
when 'amazon'
|
11
|
+
'system-release'
|
12
|
+
when 'scientific'
|
13
|
+
'sl-release'
|
14
|
+
when 'redhat'
|
15
|
+
nil
|
16
|
+
else
|
17
|
+
"#{node['platform']}-release"
|
18
|
+
end
|
19
|
+
# default["yum"]["main"]["releasever"] = nil # /.*/
|
20
|
+
default['yum']['main']['releasever'] = case node['platform']
|
21
|
+
when 'amazon'
|
22
|
+
'latest'
|
23
|
+
end
|
24
|
+
default['yum']['main']['alwaysprompt'] = nil # [true, false]
|
25
|
+
default['yum']['main']['assumeyes'] = nil # [true, false]
|
26
|
+
default['yum']['main']['bandwidth'] = nil # /^\d+$/
|
27
|
+
default['yum']['main']['bugtracker_url'] = nil # /.*/
|
28
|
+
default['yum']['main']['clean_requirements_on_remove'] = nil # [true, false]
|
29
|
+
default['yum']['main']['color'] = nil # %w{ always never }
|
30
|
+
default['yum']['main']['color_list_available_downgrade'] = nil # /.*/
|
31
|
+
default['yum']['main']['color_list_available_install'] = nil # /.*/
|
32
|
+
default['yum']['main']['color_list_available_reinstall'] = nil # /.*/
|
33
|
+
default['yum']['main']['color_list_available_upgrade'] = nil # /.*/
|
34
|
+
default['yum']['main']['color_list_installed_extra'] = nil # /.*/
|
35
|
+
default['yum']['main']['color_list_installed_newer'] = nil # /.*/
|
36
|
+
default['yum']['main']['color_list_installed_older'] = nil # /.*/
|
37
|
+
default['yum']['main']['color_list_installed_reinstall'] = nil # /.*/
|
38
|
+
default['yum']['main']['color_search_match'] = nil # /.*/
|
39
|
+
default['yum']['main']['color_update_installed'] = nil # /.*/
|
40
|
+
default['yum']['main']['color_update_local'] = nil # /.*/
|
41
|
+
default['yum']['main']['color_update_remote'] = nil # /.*/
|
42
|
+
default['yum']['main']['commands'] = nil # /.*/
|
43
|
+
default['yum']['main']['deltarpm'] = nil # [true, false]
|
44
|
+
default['yum']['main']['debuglevel'] = nil # /^\d+$/
|
45
|
+
default['yum']['main']['diskspacecheck'] = nil # [true, false]
|
46
|
+
default['yum']['main']['enable_group_conditionals'] = nil # [true, false]
|
47
|
+
default['yum']['main']['errorlevel'] = nil # /^\d+$/
|
48
|
+
default['yum']['main']['exactarch'] = nil # [true, false]
|
49
|
+
default['yum']['main']['exclude'] = nil # /.*/
|
50
|
+
default['yum']['main']['gpgcheck'] = true # [true, false]
|
51
|
+
default['yum']['main']['group_package_types'] = nil # /.*/
|
52
|
+
default['yum']['main']['groupremove_leaf_only'] = nil # [true, false]
|
53
|
+
default['yum']['main']['history_list_view'] = nil # /.*/
|
54
|
+
default['yum']['main']['history_record'] = nil # [true, false]
|
55
|
+
default['yum']['main']['history_record_packages'] = nil # /.*/
|
56
|
+
default['yum']['main']['http_caching'] = nil # %w{ packages all none }
|
57
|
+
default['yum']['main']['installonly_limit'] = nil # /\d+/, /keep/
|
58
|
+
default['yum']['main']['installonlypkgs'] = nil # /.*/
|
59
|
+
default['yum']['main']['installroot'] = nil # /.*/
|
60
|
+
default['yum']['main']['keepalive'] = nil # [true, false]
|
61
|
+
default['yum']['main']['keepcache'] = false # [true, false]
|
62
|
+
default['yum']['main']['kernelpkgnames'] = nil # /.*/
|
63
|
+
default['yum']['main']['localpkg_gpgcheck'] = false # [true,# false]
|
64
|
+
default['yum']['main']['logfile'] = '/var/log/yum.log' # /.*/
|
65
|
+
default['yum']['main']['max_retries'] = nil # /^\d+$/
|
66
|
+
default['yum']['main']['mdpolicy'] = nil # %w{ packages all none }
|
67
|
+
default['yum']['main']['metadata_expire'] = nil # /^\d+$/
|
68
|
+
default['yum']['main']['mirrorlist_expire'] = nil # /^\d+$/
|
69
|
+
default['yum']['main']['multilib_policy'] = nil # %w{ all best }
|
70
|
+
default['yum']['main']['obsoletes'] = nil # [true, false]
|
71
|
+
default['yum']['main']['overwrite_groups'] = nil # [true, false]
|
72
|
+
default['yum']['main']['password'] = nil # /.*/
|
73
|
+
default['yum']['main']['path'] = '/etc/yum.conf' # /.*/
|
74
|
+
default['yum']['main']['persistdir'] = nil # /.*/
|
75
|
+
default['yum']['main']['pluginconfpath'] = nil # /.*/
|
76
|
+
default['yum']['main']['pluginpath'] = nil # /.*/
|
77
|
+
default['yum']['main']['plugins'] = nil # [true, false]
|
78
|
+
default['yum']['main']['protected_multilib'] = nil # /.*/
|
79
|
+
default['yum']['main']['protected_packages'] = nil # /.*/
|
80
|
+
default['yum']['main']['proxy'] = nil # /.*/
|
81
|
+
default['yum']['main']['proxy_password'] = nil # /.*/
|
82
|
+
default['yum']['main']['proxy_username'] = nil # /.*/
|
83
|
+
default['yum']['main']['password'] = nil # /.*/
|
84
|
+
default['yum']['main']['recent'] = nil # /^\d+$/
|
85
|
+
default['yum']['main']['repo_gpgcheck'] = nil # [true, false]
|
86
|
+
default['yum']['main']['reposdir'] = nil # /.*/
|
87
|
+
default['yum']['main']['reset_nice'] = nil # [true, false]
|
88
|
+
default['yum']['main']['rpmverbosity'] = nil # %w{ info critical# emergency error warn debug }
|
89
|
+
default['yum']['main']['showdupesfromrepos'] = nil # [true, false]
|
90
|
+
default['yum']['main']['skip_broken'] = nil # [true, false]
|
91
|
+
default['yum']['main']['ssl_check_cert_permissions'] = nil # [true, false]
|
92
|
+
default['yum']['main']['sslcacert'] = nil # /.*/
|
93
|
+
default['yum']['main']['sslclientcert'] = nil # /.*/
|
94
|
+
default['yum']['main']['sslclientkey'] = nil # /.*/
|
95
|
+
default['yum']['main']['sslverify'] = nil # [true, false]
|
96
|
+
default['yum']['main']['syslog_device'] = nil # /.*/
|
97
|
+
default['yum']['main']['syslog_facility'] = nil # /.*/
|
98
|
+
default['yum']['main']['syslog_ident'] = nil # /.*/
|
99
|
+
default['yum']['main']['throttle'] = nil # [/\d+k/, /\d+M/, /\d+G/]
|
100
|
+
default['yum']['main']['timeout'] = nil # /\d+/
|
101
|
+
default['yum']['main']['tolerant'] = false
|
102
|
+
default['yum']['main']['tsflags'] = nil # /.*/
|
103
|
+
default['yum']['main']['username'] = nil # /.*/
|
@@ -0,0 +1,9 @@
|
|
1
|
+
if defined?(ChefSpec)
|
2
|
+
def create_yum_globalconfig(resource_name)
|
3
|
+
ChefSpec::Matchers::ResourceMatcher.new(:yum_globalconfig, :create, resource_name)
|
4
|
+
end
|
5
|
+
|
6
|
+
def delete_yum_globalconfig(resource_name)
|
7
|
+
ChefSpec::Matchers::ResourceMatcher.new(:yum_globalconfig, :delete, resource_name)
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"yum","version":"5.0.1","description":"Configures various yum components on Red Hat-like systems","long_description":"","maintainer":"Chef Software, Inc.","maintainer_email":"cookbooks@chef.io","license":"Apache-2.0","platforms":{"amazon":">= 0.0.0","centos":">= 0.0.0","fedora":">= 0.0.0","oracle":">= 0.0.0","redhat":">= 0.0.0","scientific":">= 0.0.0","zlinux":">= 0.0.0"},"dependencies":{},"recommendations":{},"suggestions":{},"conflicting":{},"providing":{},"replacing":{},"attributes":{},"groupings":{},"recipes":{},"source_url":"https://github.com/chef-cookbooks/yum","issues_url":"https://github.com/chef-cookbooks/yum/issues","chef_version":[[">= 12.14"]],"ohai_version":[]}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Sean OMeara (<someara@chef.io>)
|
3
|
+
# Author:: Joshua Timberman (<joshua@chef.io>)
|
4
|
+
# Recipe:: yum::default
|
5
|
+
#
|
6
|
+
# Copyright:: 2013-2017, Chef Software, Inc (<legal@chef.io>)
|
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
|
+
yum_globalconfig '/etc/yum.conf' do
|
21
|
+
node['yum']['main'].each do |config, value|
|
22
|
+
send(config.to_sym, value) unless value.nil?
|
23
|
+
end
|
24
|
+
|
25
|
+
action :create
|
26
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Tim Smith (<tsmith@chef.io>)
|
3
|
+
# Recipe:: yum::fedora_yum_compat
|
4
|
+
#
|
5
|
+
# Copyright:: 2015-2017, Chef Software, Inc (<legal@chef.io>)
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
|
19
|
+
execute 'make yum cache' do
|
20
|
+
command 'yum makecache'
|
21
|
+
action :nothing
|
22
|
+
end
|
23
|
+
|
24
|
+
execute 'install yum' do
|
25
|
+
command 'dnf install yum -y'
|
26
|
+
not_if { ::File.exist?('/var/lib/yum') }
|
27
|
+
action :nothing
|
28
|
+
notifies :run, 'execute[make yum cache]', :immediately
|
29
|
+
end.run_action(:run)
|