Weidong Shao 486c596323 Replace cookbooks for IceHouse release
Change-Id: Ibb6bdd3ed7795b86f773f9cb6ce1dfffb9b79faf
2014-08-07 08:36:02 +00:00

57 lines
2.1 KiB
Ruby

#
# Author:: Sean OMeara (<someara@getchef.com>)
# Recipe:: yum-epel::default
#
# Copyright 2013, Chef
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
%w{
epel epel-debuginfo epel-source
epel-testing epel-testing-debuginfo epel-testing-source
}.each do |repo|
if node['yum'][repo]['managed']
yum_repository repo do
description node['yum'][repo]['description']
baseurl node['yum'][repo]['baseurl']
mirrorlist node['yum'][repo]['mirrorlist']
gpgcheck node['yum'][repo]['gpgcheck']
gpgkey node['yum'][repo]['gpgkey']
enabled node['yum'][repo]['enabled']
cost node['yum'][repo]['cost']
exclude node['yum'][repo]['exclude']
enablegroups node['yum'][repo]['enablegroups']
failovermethod node['yum'][repo]['failovermethod']
http_caching node['yum'][repo]['http_caching']
include_config node['yum'][repo]['include_config']
includepkgs node['yum'][repo]['includepkgs']
keepalive node['yum'][repo]['keepalive']
max_retries node['yum'][repo]['max_retries']
metadata_expire node['yum'][repo]['metadata_expire']
mirror_expire node['yum'][repo]['mirror_expire']
priority node['yum'][repo]['priority']
proxy node['yum'][repo]['proxy']
proxy_username node['yum'][repo]['proxy_username']
proxy_password node['yum'][repo]['proxy_password']
repositoryid node['yum'][repo]['repositoryid']
sslcacert node['yum'][repo]['sslcacert']
sslclientcert node['yum'][repo]['sslclientcert']
sslclientkey node['yum'][repo]['sslclientkey']
sslverify node['yum'][repo]['sslverify']
timeout node['yum'][repo]['timeout']
action :create
end
end
end