kayobe/ansible/group_vars/all/dnf
Mark Goddard dc32b52f08 CentOS 8: Support DNF
Adds support for configuration of DNF repo mirrors for CentOS and EPEL
repositories, as well as custom repositories.

Adds support for DNF automatic, which is a replacement for yum-cron.

Configuration is backwards compatible, falling back to the equivalent
yum variables when DNF variables have not been overridden.

Change-Id: I8bef5e9c8e1c77c25d6077ff690da8f2cde6a643
Story: 2006574
Task: 38922
2020-03-19 11:23:39 +00:00

53 lines
1.8 KiB
Plaintext

---
# NOTE(mgoddard): Use Yum configuration for defaults for backwards
# compatibility.
# Yum configuration. Dict mapping Yum config option names to their values.
# dnf_config:
# proxy: http://proxy.example.com
dnf_config: "{{ yum_config }}"
# Whether or not to use a local Yum mirror. Default value is 'false'.
dnf_use_local_mirror: "{{ yum_use_local_mirror }}"
# Mirror FQDN for Yum repos. Default value is 'mirror.centos.org'.
dnf_centos_mirror_host: "{{ yum_centos_mirror_host }}"
# Mirror directory for Yum CentOS repos. Default value is 'centos'.
dnf_centos_mirror_directory: "{{ yum_centos_mirror_directory }}"
# Mirror FQDN for Yum EPEL repos. Default value is
# 'download.fedoraproject.org'.
dnf_epel_mirror_host: "{{ yum_epel_mirror_host }}"
# Mirror directory for Yum EPEL repos. Default value is 'pub/epel'.
dnf_epel_mirror_directory: "{{ yum_epel_mirror_directory }}"
# A dict of custom repositories.
# You can see params on
# http://docs.ansible.com/ansible/latest/modules/yum_repository_module.html.
# For example:
# dnf_custom_repos:
# reponame:
# baseurl: http://repo
# file: myrepo
# gpgkey: http://gpgkey
# gpgcheck: yes
dnf_custom_repos: "{{ yum_custom_repos }}"
# Whether to install the epel-release package. This affects RedHat-based
# systems only. Default value is 'true'.
dnf_install_epel: "{{ yum_install_epel }}"
###############################################################################
# DNF Automatic configuration.
# Whether DNF Automatic is enabled. This can be used to regularly apply
# security updates. Default value is 'false'.
dnf_automatic_enabled: "{{ yum_cron_enabled }}"
# DNF Automatic upgrade type. Default value is 'security'. Note that the
# equivalent yum-cron variable is named slightly differently -
# yum_automatic_update_cmd.
dnf_automatic_upgrade_type: "{{ yum_cron_update_cmd }}"