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,172 @@
|
|
1
|
+
# yum-epel Cookbook
|
2
|
+
|
3
|
+
[](http://travis-ci.org/chef-cookbooks/yum-epel) [](https://supermarket.chef.io/cookbooks/yum-epel)
|
4
|
+
|
5
|
+
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).
|
6
|
+
|
7
|
+
The yum-epel cookbook takes over management of the default repositoryids shipped with epel-release. It allows attribute manipulation of `epel`, `epel-debuginfo`, `epel-source`, `epel-testing`, `epel-testing-debuginfo`, and `epel-testing-source`.
|
8
|
+
|
9
|
+
## Requirements
|
10
|
+
|
11
|
+
### Platforms
|
12
|
+
|
13
|
+
- RHEL/CentOS and derivatives
|
14
|
+
|
15
|
+
### Chef
|
16
|
+
|
17
|
+
- Chef 12.1+
|
18
|
+
|
19
|
+
### Cookbooks
|
20
|
+
|
21
|
+
- compat_resource
|
22
|
+
|
23
|
+
## Attributes
|
24
|
+
|
25
|
+
The following attributes are set by default
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
default['yum-epel']['repos'] = %w(
|
29
|
+
epel
|
30
|
+
epel-debuginfo
|
31
|
+
epel-source
|
32
|
+
epel-testing
|
33
|
+
epel-testing-debuginfo
|
34
|
+
epel-testing-source
|
35
|
+
)
|
36
|
+
```
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
default['yum']['epel']['repositoryid'] = 'epel'
|
40
|
+
default['yum']['epel']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch'
|
41
|
+
default['yum']['epel']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch'
|
42
|
+
default['yum']['epel']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
43
|
+
default['yum']['epel']['failovermethod'] = 'priority'
|
44
|
+
default['yum']['epel']['gpgcheck'] = true
|
45
|
+
default['yum']['epel']['enabled'] = true
|
46
|
+
default['yum']['epel']['managed'] = true
|
47
|
+
```
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
default['yum']['epel-debuginfo']['repositoryid'] = 'epel-debuginfo'
|
51
|
+
default['yum']['epel-debuginfo']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch - Debug'
|
52
|
+
default['yum']['epel-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch'
|
53
|
+
default['yum']['epel-debuginfo']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
54
|
+
default['yum']['epel-debuginfo']['failovermethod'] = 'priority'
|
55
|
+
default['yum']['epel-debuginfo']['gpgcheck'] = true
|
56
|
+
default['yum']['epel-debuginfo']['enabled'] = false
|
57
|
+
default['yum']['epel-debuginfo']['managed'] = false
|
58
|
+
```
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
default['yum']['epel-source']['repositoryid'] = 'epel-source'
|
62
|
+
default['yum']['epel-source']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch - Source'
|
63
|
+
default['yum']['epel-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-6&arch=$basearch'
|
64
|
+
default['yum']['epel-source']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
65
|
+
default['yum']['epel-source']['failovermethod'] = 'priority'
|
66
|
+
default['yum']['epel-source']['gpgcheck'] = true
|
67
|
+
default['yum']['epel-source']['enabled'] = false
|
68
|
+
default['yum']['epel-source']['managed'] = false
|
69
|
+
```
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
default['yum']['epel-testing']['repositoryid'] = 'epel-testing'
|
73
|
+
default['yum']['epel-testing']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch'
|
74
|
+
default['yum']['epel-testing']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch=$basearch'
|
75
|
+
default['yum']['epel-testing']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6r'
|
76
|
+
default['yum']['epel-testing']['failovermethod'] = 'priority'
|
77
|
+
default['yum']['epel-testing']['gpgcheck'] = true
|
78
|
+
default['yum']['epel-testing']['enabled'] = false
|
79
|
+
default['yum']['epel-testing']['managed'] = false
|
80
|
+
```
|
81
|
+
|
82
|
+
```ruby
|
83
|
+
default['yum']['epel-testing-debuginfo']['repositoryid'] = 'epel-testing-debuginfo'
|
84
|
+
default['yum']['epel-testing-debuginfo']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch Debug'
|
85
|
+
default['yum']['epel-testing-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch=$basearch'
|
86
|
+
default['yum']['epel-testing-debuginfo']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
87
|
+
default['yum']['epel-testing-debuginfo']['failovermethod'] = 'priority'
|
88
|
+
default['yum']['epel-testing-debuginfo']['gpgcheck'] = true
|
89
|
+
default['yum']['epel-testing-debuginfo']['enabled'] = false
|
90
|
+
default['yum']['epel-testing-debuginfo']['managed'] = false
|
91
|
+
```
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
default['yum']['epel-testing-source']['repositoryid'] = 'epel-testing-source'
|
95
|
+
default['yum']['epel-testing-source']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch Source'
|
96
|
+
default['yum']['epel-testing-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$basearch'
|
97
|
+
default['yum']['epel-testing-source']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
98
|
+
default['yum']['epel-testing-source']['failovermethod'] = 'priority'
|
99
|
+
default['yum']['epel-testing-source']['gpgcheck'] = true
|
100
|
+
default['yum']['epel-testing-source']['enabled'] = false
|
101
|
+
default['yum']['epel-testing-source']['managed'] = false
|
102
|
+
```
|
103
|
+
|
104
|
+
## Recipes
|
105
|
+
- default - Walks through node attributes and feeds a yum_resource
|
106
|
+
- parameters. The following is an example a resource generated by the
|
107
|
+
- recipe during compilation.
|
108
|
+
|
109
|
+
```ruby
|
110
|
+
yum_repository 'epel' do
|
111
|
+
mirrorlist 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch'
|
112
|
+
description 'Extra Packages for Enterprise Linux 5 - $basearch'
|
113
|
+
enabled true
|
114
|
+
gpgcheck true
|
115
|
+
gpgkey 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL'
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
## Usage Example
|
120
|
+
To disable the epel repository through a Role or Environment definition
|
121
|
+
|
122
|
+
```
|
123
|
+
default_attributes(
|
124
|
+
:yum => {
|
125
|
+
:epel => {
|
126
|
+
:enabled => {
|
127
|
+
false
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
)
|
132
|
+
```
|
133
|
+
|
134
|
+
Uncommonly used repositoryids are not managed by default. This is speeds up integration testing pipelines by avoiding yum-cache builds that nobody cares about. To enable the epel-testing repository with a wrapper cookbook, place the following in a recipe:
|
135
|
+
|
136
|
+
```ruby
|
137
|
+
node.default['yum']['epel-testing']['enabled'] = true
|
138
|
+
node.default['yum']['epel-testing']['managed'] = true
|
139
|
+
include_recipe 'yum-epel'
|
140
|
+
```
|
141
|
+
|
142
|
+
## More Examples
|
143
|
+
Point the epel repositories at an internally hosted server.
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
node.default['yum']['epel']['enabled'] = true
|
147
|
+
node.default['yum']['epel']['mirrorlist'] = nil
|
148
|
+
node.default['yum']['epel']['baseurl'] = 'https://internal.example.com/centos/6/os/x86_64'
|
149
|
+
node.default['yum']['epel']['sslverify'] = false
|
150
|
+
|
151
|
+
include_recipe 'yum-epel'
|
152
|
+
```
|
153
|
+
|
154
|
+
## License & Authors
|
155
|
+
|
156
|
+
**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))
|
157
|
+
|
158
|
+
**Copyright:** 2011-2016, Chef Software, Inc.
|
159
|
+
|
160
|
+
```
|
161
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
162
|
+
you may not use this file except in compliance with the License.
|
163
|
+
You may obtain a copy of the License at
|
164
|
+
|
165
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
166
|
+
|
167
|
+
Unless required by applicable law or agreed to in writing, software
|
168
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
169
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
170
|
+
See the License for the specific language governing permissions and
|
171
|
+
limitations under the License.
|
172
|
+
```
|
@@ -0,0 +1,15 @@
|
|
1
|
+
default['yum']['epel-debuginfo']['repositoryid'] = 'epel-debuginfo'
|
2
|
+
default['yum']['epel-debuginfo']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Debug"
|
3
|
+
case node['platform']
|
4
|
+
when 'amazon'
|
5
|
+
default['yum']['epel-debuginfo']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-6&arch=$basearch'
|
6
|
+
default['yum']['epel-debuginfo']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
7
|
+
else
|
8
|
+
default['yum']['epel-debuginfo']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-#{node['platform_version'].to_i}&arch=$basearch"
|
9
|
+
default['yum']['epel-debuginfo']['gpgkey'] = "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
10
|
+
end
|
11
|
+
default['yum']['epel-debuginfo']['failovermethod'] = 'priority'
|
12
|
+
default['yum']['epel-debuginfo']['gpgcheck'] = true
|
13
|
+
default['yum']['epel-debuginfo']['enabled'] = false
|
14
|
+
default['yum']['epel-debuginfo']['managed'] = false
|
15
|
+
default['yum']['epel-debuginfo']['make_cache'] = true
|
@@ -0,0 +1,15 @@
|
|
1
|
+
default['yum']['epel-source']['repositoryid'] = 'epel-source'
|
2
|
+
default['yum']['epel-source']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Source"
|
3
|
+
case node['platform']
|
4
|
+
when 'amazon'
|
5
|
+
default['yum']['epel-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-6&arch=$basearch'
|
6
|
+
default['yum']['epel-source']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
7
|
+
else
|
8
|
+
default['yum']['epel-source']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-#{node['platform_version'].to_i}&arch=$basearch"
|
9
|
+
default['yum']['epel-source']['gpgkey'] = "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
10
|
+
end
|
11
|
+
default['yum']['epel-source']['failovermethod'] = 'priority'
|
12
|
+
default['yum']['epel-source']['gpgcheck'] = true
|
13
|
+
default['yum']['epel-source']['enabled'] = false
|
14
|
+
default['yum']['epel-source']['managed'] = false
|
15
|
+
default['yum']['epel-source']['make_cache'] = true
|
@@ -0,0 +1,15 @@
|
|
1
|
+
default['yum']['epel-testing-debuginfo']['repositoryid'] = 'epel-testing-debuginfo'
|
2
|
+
default['yum']['epel-testing-debuginfo']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing Debug"
|
3
|
+
case node['platform']
|
4
|
+
when 'amazon'
|
5
|
+
default['yum']['epel-testing-debuginfo']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-debug-epel6&arch=$basearch'
|
6
|
+
default['yum']['epel-testing-debuginfo']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
7
|
+
else
|
8
|
+
default['yum']['epel-testing-debuginfo']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=testing-debug-epel#{node['platform_version'].to_i}&arch=$basearch"
|
9
|
+
default['yum']['epel-testing-debuginfo']['gpgkey'] = "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
10
|
+
end
|
11
|
+
default['yum']['epel-testing-debuginfo']['failovermethod'] = 'priority'
|
12
|
+
default['yum']['epel-testing-debuginfo']['gpgcheck'] = true
|
13
|
+
default['yum']['epel-testing-debuginfo']['enabled'] = false
|
14
|
+
default['yum']['epel-testing-debuginfo']['managed'] = false
|
15
|
+
default['yum']['epel-testing-debuginfo']['make_cache'] = true
|
@@ -0,0 +1,15 @@
|
|
1
|
+
default['yum']['epel-testing-source']['repositoryid'] = 'epel-testing-source'
|
2
|
+
default['yum']['epel-testing-source']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing Source"
|
3
|
+
case node['platform']
|
4
|
+
when 'amazon'
|
5
|
+
default['yum']['epel-testing-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel6&arch=$basearch'
|
6
|
+
default['yum']['epel-testing-source']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
7
|
+
else
|
8
|
+
default['yum']['epel-testing-source']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel#{node['platform_version'].to_i}&arch=$basearch"
|
9
|
+
default['yum']['epel-testing-source']['gpgkey'] = "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
10
|
+
end
|
11
|
+
default['yum']['epel-testing-source']['failovermethod'] = 'priority'
|
12
|
+
default['yum']['epel-testing-source']['gpgcheck'] = true
|
13
|
+
default['yum']['epel-testing-source']['enabled'] = false
|
14
|
+
default['yum']['epel-testing-source']['managed'] = false
|
15
|
+
default['yum']['epel-testing-source']['make_cache'] = true
|
@@ -0,0 +1,15 @@
|
|
1
|
+
default['yum']['epel-testing']['repositoryid'] = 'epel-testing'
|
2
|
+
default['yum']['epel-testing']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing "
|
3
|
+
case node['platform']
|
4
|
+
when 'amazon'
|
5
|
+
default['yum']['epel-testing']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel6&arch=$basearch'
|
6
|
+
default['yum']['epel-testing']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
7
|
+
else
|
8
|
+
default['yum']['epel-testing']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel#{node['platform_version'].to_i}&arch=$basearch"
|
9
|
+
default['yum']['epel-testing']['gpgkey'] = "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
10
|
+
end
|
11
|
+
default['yum']['epel-testing']['failovermethod'] = 'priority'
|
12
|
+
default['yum']['epel-testing']['gpgcheck'] = true
|
13
|
+
default['yum']['epel-testing']['enabled'] = false
|
14
|
+
default['yum']['epel-testing']['managed'] = false
|
15
|
+
default['yum']['epel-testing']['make_cache'] = true
|
@@ -0,0 +1,21 @@
|
|
1
|
+
default['yum']['epel']['repositoryid'] = 'epel'
|
2
|
+
default['yum']['epel']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch"
|
3
|
+
case node['kernel']['machine']
|
4
|
+
when 's390x'
|
5
|
+
default['yum']['epel']['baseurl'] = 'https://kojipkgs.fedoraproject.org/rhel/rc/7/Server/s390x/os/'
|
6
|
+
default['yum']['epel']['gpgkey'] = 'https://kojipkgs.fedoraproject.org/rhel/rc/7/Server/s390x/os/RPM-GPG-KEY-redhat-release'
|
7
|
+
else
|
8
|
+
case node['platform']
|
9
|
+
when 'amazon'
|
10
|
+
default['yum']['epel']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch'
|
11
|
+
default['yum']['epel']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
12
|
+
else
|
13
|
+
default['yum']['epel']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-#{node['platform_version'].to_i}&arch=$basearch"
|
14
|
+
default['yum']['epel']['gpgkey'] = "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
default['yum']['epel']['failovermethod'] = 'priority'
|
18
|
+
default['yum']['epel']['gpgcheck'] = true
|
19
|
+
default['yum']['epel']['enabled'] = true
|
20
|
+
default['yum']['epel']['managed'] = true
|
21
|
+
default['yum']['epel']['make_cache'] = true
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"yum-epel","version":"2.1.1","description":"Installs and configures the EPEL Yum repository","long_description":"# yum-epel Cookbook\n\n[](http://travis-ci.org/chef-cookbooks/yum-epel) [](https://supermarket.chef.io/cookbooks/yum-epel)\n\nExtra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).\n\nThe yum-epel cookbook takes over management of the default repositoryids shipped with epel-release. It allows attribute manipulation of `epel`, `epel-debuginfo`, `epel-source`, `epel-testing`, `epel-testing-debuginfo`, and `epel-testing-source`.\n\n## Requirements\n\n### Platforms\n\n- RHEL/CentOS and derivatives\n\n### Chef\n\n- Chef 12.1+\n\n### Cookbooks\n\n- compat_resource\n\n## Attributes\n\nThe following attributes are set by default\n\n```ruby\ndefault['yum-epel']['repos'] = %w(\n epel\n epel-debuginfo\n epel-source\n epel-testing\n epel-testing-debuginfo\n epel-testing-source\n)\n```\n\n```ruby\ndefault['yum']['epel']['repositoryid'] = 'epel'\ndefault['yum']['epel']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch'\ndefault['yum']['epel']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch'\ndefault['yum']['epel']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'\ndefault['yum']['epel']['failovermethod'] = 'priority'\ndefault['yum']['epel']['gpgcheck'] = true\ndefault['yum']['epel']['enabled'] = true\ndefault['yum']['epel']['managed'] = true\n```\n\n```ruby\ndefault['yum']['epel-debuginfo']['repositoryid'] = 'epel-debuginfo'\ndefault['yum']['epel-debuginfo']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch - Debug'\ndefault['yum']['epel-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch'\ndefault['yum']['epel-debuginfo']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'\ndefault['yum']['epel-debuginfo']['failovermethod'] = 'priority'\ndefault['yum']['epel-debuginfo']['gpgcheck'] = true\ndefault['yum']['epel-debuginfo']['enabled'] = false\ndefault['yum']['epel-debuginfo']['managed'] = false\n```\n\n```ruby\ndefault['yum']['epel-source']['repositoryid'] = 'epel-source'\ndefault['yum']['epel-source']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch - Source'\ndefault['yum']['epel-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-6&arch=$basearch'\ndefault['yum']['epel-source']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'\ndefault['yum']['epel-source']['failovermethod'] = 'priority'\ndefault['yum']['epel-source']['gpgcheck'] = true\ndefault['yum']['epel-source']['enabled'] = false\ndefault['yum']['epel-source']['managed'] = false\n```\n\n```ruby\ndefault['yum']['epel-testing']['repositoryid'] = 'epel-testing'\ndefault['yum']['epel-testing']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch'\ndefault['yum']['epel-testing']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch=$basearch'\ndefault['yum']['epel-testing']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6r'\ndefault['yum']['epel-testing']['failovermethod'] = 'priority'\ndefault['yum']['epel-testing']['gpgcheck'] = true\ndefault['yum']['epel-testing']['enabled'] = false\ndefault['yum']['epel-testing']['managed'] = false\n```\n\n```ruby\ndefault['yum']['epel-testing-debuginfo']['repositoryid'] = 'epel-testing-debuginfo'\ndefault['yum']['epel-testing-debuginfo']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch Debug'\ndefault['yum']['epel-testing-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch=$basearch'\ndefault['yum']['epel-testing-debuginfo']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'\ndefault['yum']['epel-testing-debuginfo']['failovermethod'] = 'priority'\ndefault['yum']['epel-testing-debuginfo']['gpgcheck'] = true\ndefault['yum']['epel-testing-debuginfo']['enabled'] = false\ndefault['yum']['epel-testing-debuginfo']['managed'] = false\n```\n\n```ruby\ndefault['yum']['epel-testing-source']['repositoryid'] = 'epel-testing-source'\ndefault['yum']['epel-testing-source']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch Source'\ndefault['yum']['epel-testing-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$basearch'\ndefault['yum']['epel-testing-source']['gpgkey'] = 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'\ndefault['yum']['epel-testing-source']['failovermethod'] = 'priority'\ndefault['yum']['epel-testing-source']['gpgcheck'] = true\ndefault['yum']['epel-testing-source']['enabled'] = false\ndefault['yum']['epel-testing-source']['managed'] = false\n```\n\n## Recipes\n- default - Walks through node attributes and feeds a yum_resource\n- parameters. The following is an example a resource generated by the\n- recipe during compilation.\n\n```ruby\n yum_repository 'epel' do\n mirrorlist 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch'\n description 'Extra Packages for Enterprise Linux 5 - $basearch'\n enabled true\n gpgcheck true\n gpgkey 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL'\n end\n```\n\n## Usage Example\nTo disable the epel repository through a Role or Environment definition\n\n```\ndefault_attributes(\n :yum => {\n :epel => {\n :enabled => {\n false\n }\n }\n }\n )\n```\n\nUncommonly used repositoryids are not managed by default. This is speeds up integration testing pipelines by avoiding yum-cache builds that nobody cares about. To enable the epel-testing repository with a wrapper cookbook, place the following in a recipe:\n\n```ruby\nnode.default['yum']['epel-testing']['enabled'] = true\nnode.default['yum']['epel-testing']['managed'] = true\ninclude_recipe 'yum-epel'\n```\n\n## More Examples\nPoint the epel repositories at an internally hosted server.\n\n```ruby\nnode.default['yum']['epel']['enabled'] = true\nnode.default['yum']['epel']['mirrorlist'] = nil\nnode.default['yum']['epel']['baseurl'] = 'https://internal.example.com/centos/6/os/x86_64'\nnode.default['yum']['epel']['sslverify'] = false\n\ninclude_recipe 'yum-epel'\n```\n\n## License & Authors\n\n**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))\n\n**Copyright:** 2011-2016, Chef Software, Inc.\n\n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","maintainer":"Chef Software, Inc.","maintainer_email":"cookbooks@chef.io","license":"Apache 2.0","platforms":{"amazon":">= 0.0.0","centos":">= 0.0.0","oracle":">= 0.0.0","redhat":">= 0.0.0","scientific":">= 0.0.0","zlinux":">= 0.0.0"},"dependencies":{"compat_resource":">= 12.16.3"},"recommendations":{},"suggestions":{},"conflicting":{},"providing":{},"replacing":{},"attributes":{},"groupings":{},"recipes":{}}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Sean OMeara (<someara@chef.io>)
|
3
|
+
# Cookbook:: yum-epel
|
4
|
+
# Recipe:: default
|
5
|
+
#
|
6
|
+
# Copyright:: 2013-2016, Chef Software, Inc.
|
7
|
+
#
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
# you may not use this file except in compliance with the License.
|
10
|
+
# You may obtain a copy of the License at
|
11
|
+
#
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
#
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
# See the License for the specific language governing permissions and
|
18
|
+
# limitations under the License.
|
19
|
+
|
20
|
+
node['yum-epel']['repos'].each do |repo|
|
21
|
+
next unless node['yum'][repo]['managed']
|
22
|
+
yum_repository repo do
|
23
|
+
node['yum'][repo].each do |config, value|
|
24
|
+
send(config.to_sym, value) unless value.nil? || config == 'managed'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
driver:
|
3
|
+
name: dokken
|
4
|
+
privileged: true # because Docker and SystemD/Upstart
|
5
|
+
chef_version: current
|
6
|
+
|
7
|
+
transport:
|
8
|
+
name: dokken
|
9
|
+
|
10
|
+
provisioner:
|
11
|
+
name: dokken
|
12
|
+
|
13
|
+
platforms:
|
14
|
+
- name: centos-6
|
15
|
+
driver:
|
16
|
+
image: centos:6
|
17
|
+
platform: rhel
|
18
|
+
pid_one_command: /sbin/init
|
19
|
+
|
20
|
+
- name: centos-7
|
21
|
+
driver:
|
22
|
+
image: centos:7
|
23
|
+
platform: rhel
|
24
|
+
pid_one_command: /usr/lib/systemd/systemd
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
driver:
|
3
|
+
name: vagrant
|
4
|
+
|
5
|
+
provisioner:
|
6
|
+
name: chef_zero
|
7
|
+
|
8
|
+
platforms:
|
9
|
+
- name: centos-6.8
|
10
|
+
- name: centos-7.2
|
11
|
+
- name: joshbeard/scientific-6.6-64
|
12
|
+
suites:
|
13
|
+
- name: default
|
14
|
+
run_list:
|
15
|
+
- recipe[yum-scl::default]
|
16
|
+
attributes:
|
17
|
+
yum-scl:
|
18
|
+
prefer_os_repository: true
|
19
|
+
- name: chef
|
20
|
+
run_list:
|
21
|
+
- recipe[yum-scl::default]
|
22
|
+
attributes:
|
23
|
+
yum-scl:
|
24
|
+
prefer_os_package: false
|
@@ -0,0 +1,28 @@
|
|
1
|
+
sudo: required
|
2
|
+
dist: trusty
|
3
|
+
|
4
|
+
addons:
|
5
|
+
apt:
|
6
|
+
sources:
|
7
|
+
- chef-stable-trusty
|
8
|
+
packages:
|
9
|
+
- chefdk
|
10
|
+
|
11
|
+
# Don't `bundle install` which takes about 1.5 mins
|
12
|
+
install: echo "skip bundle install"
|
13
|
+
|
14
|
+
services: docker
|
15
|
+
|
16
|
+
env:
|
17
|
+
matrix:
|
18
|
+
- INSTANCE=default-centos-6
|
19
|
+
- INSTANCE=default-centos-7
|
20
|
+
|
21
|
+
before_script:
|
22
|
+
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
|
23
|
+
- eval "$(/opt/chefdk/bin/chef shell-init bash)" && chef gem install berkshelf
|
24
|
+
- /opt/chefdk/embedded/bin/chef --version
|
25
|
+
- /opt/chefdk/embedded/bin/cookstyle --version
|
26
|
+
- /opt/chefdk/embedded/bin/foodcritic --version
|
27
|
+
|
28
|
+
script: KITCHEN_LOCAL_YAML=.kitchen.dokken.yml /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
DEPENDENCIES
|
2
|
+
yum-scl
|
3
|
+
path: .
|
4
|
+
metadata: true
|
5
|
+
|
6
|
+
GRAPH
|
7
|
+
build-essential (8.0.0)
|
8
|
+
mingw (>= 1.1)
|
9
|
+
seven_zip (>= 0.0.0)
|
10
|
+
compat_resource (12.16.3)
|
11
|
+
inifile_chef_gem (0.1.0)
|
12
|
+
build-essential (>= 0.0.0)
|
13
|
+
mingw (1.2.5)
|
14
|
+
compat_resource (>= 12.16.3)
|
15
|
+
seven_zip (>= 0.0.0)
|
16
|
+
ohai (4.2.3)
|
17
|
+
compat_resource (>= 12.14.7)
|
18
|
+
seven_zip (2.0.2)
|
19
|
+
windows (>= 1.2.2)
|
20
|
+
windows (2.1.1)
|
21
|
+
ohai (>= 4.0.0)
|
22
|
+
yum (5.0.0)
|
23
|
+
yum-scl (0.1.0)
|
24
|
+
inifile_chef_gem (>= 0.0.0)
|
25
|
+
yum (>= 0.0.0)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# yum-softwarecollections CHANGELOG
|
2
|
+
|
3
|
+
This file is used to list changes made in each version of the yum-softwarecollections cookbook.
|
4
|
+
|
5
|
+
## 0.1.0
|
6
|
+
- [your_name] - Initial release of yum-softwarecollections
|
7
|
+
|
8
|
+
- - -
|
9
|
+
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
|
10
|
+
|
11
|
+
The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
|
@@ -0,0 +1,46 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'chef', '~> 12.5'
|
4
|
+
gem 'ohai', '~> 8.4'
|
5
|
+
|
6
|
+
group :lint do
|
7
|
+
gem 'foodcritic', '~> 6.0'
|
8
|
+
gem 'rainbow', '< 2.0'
|
9
|
+
gem 'rspec'
|
10
|
+
gem 'rubocop', '~> 0.38'
|
11
|
+
end
|
12
|
+
|
13
|
+
group :packaging do
|
14
|
+
gem 'stove'
|
15
|
+
end
|
16
|
+
|
17
|
+
group :unit do
|
18
|
+
gem 'berkshelf', '~> 4.2'
|
19
|
+
gem 'chefspec', '~> 4.2'
|
20
|
+
end
|
21
|
+
|
22
|
+
group :kitchen_common do
|
23
|
+
gem 'test-kitchen', '~> 1.2'
|
24
|
+
end
|
25
|
+
|
26
|
+
group :kitchen_vagrant do
|
27
|
+
gem 'kitchen-vagrant', '~> 0.11'
|
28
|
+
end
|
29
|
+
|
30
|
+
group :kitchen_cloud do
|
31
|
+
gem 'kitchen-ec2'
|
32
|
+
end
|
33
|
+
|
34
|
+
group :development do
|
35
|
+
gem 'fauxhai'
|
36
|
+
gem 'growl'
|
37
|
+
gem 'guard', '~> 2.4'
|
38
|
+
gem 'guard-kitchen'
|
39
|
+
# gem 'guard-foodcritic'
|
40
|
+
gem 'guard-rspec'
|
41
|
+
gem 'guard-rubocop'
|
42
|
+
gem 'pry-nav'
|
43
|
+
gem 'rake'
|
44
|
+
gem 'rb-fsevent'
|
45
|
+
gem 'ruby_gntp'
|
46
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# yum-scl Cookbook
|
2
|
+
|
3
|
+
Configures softwarecollections yum repository
|
4
|
+
|
5
|
+
## Requirements
|
6
|
+
|
7
|
+
### Platforms
|
8
|
+
|
9
|
+
- Scientific Linux 6.0 or later
|
10
|
+
- CentoOS Linux 6.0 or later
|
11
|
+
|
12
|
+
### Chef
|
13
|
+
|
14
|
+
- Chef 12.0 or later
|
15
|
+
|
16
|
+
## Attributes
|
17
|
+
|
18
|
+
- default['yum-scl']['prefer_os_package'] - configure repository using package provided by OS (if available)
|
19
|
+
- default['yum-scl']['enable_testing'] = false - enable testing repositories of softwarecollections
|
20
|
+
- default['yum-scl']['enable_source'] = false - enable source repositories of softwarecollections
|
21
|
+
- default['yum-scl']['enable_debuginfo'] = false - enable debuginfo repositories of softwarecollections
|
22
|
+
|
23
|
+
## Recipes
|
24
|
+
|
25
|
+
### yum-scl::default
|
26
|
+
|
27
|
+
The default recipe tries to install package for softwarecollection repositories provided by OS then falls to
|
28
|
+
installation using yum_repository resource
|
29
|
+
|
30
|
+
```json
|
31
|
+
{
|
32
|
+
"name":"my_node",
|
33
|
+
"run_list": [
|
34
|
+
"recipe[yum-scl]"
|
35
|
+
]
|
36
|
+
}
|
37
|
+
```
|
38
|
+
|
39
|
+
### yum-scl::native_install
|
40
|
+
|
41
|
+
The recipe installs package for softwarecollection repositories provided by OS
|
42
|
+
|
43
|
+
```json
|
44
|
+
{
|
45
|
+
"name":"my_node",
|
46
|
+
"run_list": [
|
47
|
+
"recipe[yum-scl::native_install]"
|
48
|
+
]
|
49
|
+
}
|
50
|
+
```
|
51
|
+
|
52
|
+
### yum-scl::chef_install
|
53
|
+
|
54
|
+
The recipe adds yum repositories using chef yum_repository resource
|
55
|
+
|
56
|
+
```json
|
57
|
+
{
|
58
|
+
"name":"my_node",
|
59
|
+
"run_list": [
|
60
|
+
"recipe[yum-scl::chef_install]"
|
61
|
+
]
|
62
|
+
}
|
63
|
+
```
|
64
|
+
|
65
|
+
## Contributing
|
66
|
+
|
67
|
+
1. Fork the repository on Github
|
68
|
+
2. Create a named feature branch (like `add_component_x`)
|
69
|
+
3. Write your change
|
70
|
+
4. Write tests for your change (if applicable)
|
71
|
+
5. Run the tests, ensuring they all pass
|
72
|
+
6. Submit a Pull Request using Github
|
73
|
+
|
74
|
+
## License and Authors
|
75
|
+
|
76
|
+
Authors: Dmitry Shestoperov
|