aboutsummaryrefslogtreecommitdiffstats
path: root/roles/yum_mirror/README.md
blob: 56b692f879017f5237ac66d5e477ffbaf39ebcfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Yum Mirror
==========

Description
-----------

The `yum_mirro` role configures a local Yum repository that mirrors packages
from different upstream repositories.

Mirrored repositories are configured in the [vars file](vars/main.yml).


Variables
---------

This role **accepts** the following variables:

Variable                 | Default          | Description
-------------------------|------------------|------------
`yum_sync_on_calendar`   | `22,23,10,11:00` | Systemd [calendar interval](https://www.freedesktop.org/software/systemd/man/systemd.time.html#Calendar%20Events) for syncing repositories
`yum_mirrorlist_country` | `US`             | Country code for remote mirrorlists

This role **exports** the following variables:

Variable             | Description
---------------------|------------
`yum_mirror_webroot` | Path to repository directory
Usage
-----

Example playbook:

````yaml
- name: configure yum mirrors
  hosts: yum_servers
  roles:
    - role: yum_mirror
      vars:
        yum_mirrorlist_country: US

    - role: apache_vhost
      vars:
        apache_default_vhost: yes
        apache_document_root: '{{ yum_mirror_webroot }}'
        apache_autoindex: yes
        apache_redirect_to_https: no
````