yum_utils Cookbook
==================

This cookbook includes YUM utilities setup recipes.

Requirements
------------

#### cookbooks
- `commons` 

#### packages

none.

Attributes
----------

#### yum_utils::default
|Key|Type|Description (with examples)|Default|
|:--|:--|:--|:--|
|`['yum_utils']['repos']['CentOS-Base']['mirrorlist_ctx']`|String|e.g. `'http://mirrorlist.centos.org'`|`''` (inactive)|
|`['yum_utils']['repos']['CentOS-Base']['baseurl_ctx']`|String|e.g. `'http://ftp.grid.example.com/centos'`|`''` (inactive)|
|`['yum_utils']['repos']['CentOS-Base']['gpgkey']`|String|GPG key path|`'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6'`|
|`['yum_utils']['repos']['epel']['mirrorlist_ctx']`|String|e.g. `'http://mirrors.fedoraproject.org'`|`''` (inactive)|
|`['yum_utils']['repos']['epel']['baseurl_ctx']`|String|e.g. `'http://ftp.grid.example.com/fedora/epel'`|`''` (inactive)|
|`['yum_utils']['repos']['epel']['gpgkey']`|String|GPG key path|`'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6'`|
|`['yum_utils']['mirror']['user']`|String|mirroring user|`'yum-mirror'`|
|`['yum_utils']['mirror']['cron_period']`|String|cron period expression|`'#0 2	* * *'` (inactive)|
|`['yum_utils']['mirror']['base_path']`|String|base directory path|`'/var/spool/yum-mirror'`|
|`['yum_utils']['mirror']['rsync_sources']`|Array|see attributes/default.rb file.|`[]` (empty)|
|`['yum_utils']['reposync_mirror']['user']`|String|mirroring user|`'yum-mirror'`|
|`['yum_utils']['reposync_mirror']['cron_period']`|String|cron period expression|`'#0 3   * * *'` (inactive)|
|`['yum_utils']['reposync_mirror']['base_path']`|String|base directory path|`'/var/spool/yum-reposync-mirror'`|
|`['yum_utils']['reposync_mirror']['yum_conf']`|String|YUM configuration file path|Debian: `'/etc/yum/yum.conf'`, RHEL: `'/etc/yum.conf'`|
|`['yum_utils']['reposync_mirror']['repos_dir']`|String|repository configuration directory path|Debian: `'/etc/yum/repos.d'`, RHEL: `'/etc/yum.repos.d'`|
|`['yum_utils']['eposync_mirror']['repo_ids']`|Array|mirroring repository ids|`[]` (empty)|
|`['yum_utils']['eposync_mirror']['arch']`|String|system architecture|`''`|
|`['yum_utils']['eposync_mirror']['url_alias_with_authority_part']`|Boolean|use url alias with authority part|`true`|

Usage
-----
#### yum_utils::default
- do nothing.

#### yum_utils::mirror
- set up mirroring configurations by the rsync.

#### yum_utils::repos
- set up repository access configurations.

#### yum_utils::reposync_mirror
- set up mirroring configurations by the reposync.

License and Authors
-------------------
- Author:: whitestar at osdn.jp

```text
Copyright 2013-2016, whitestar

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.
```
