Skip to content
Snippets Groups Projects
Commit 555f865d authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Disable EPEL by default"

parents c668268f e0dec916
No related branches found
No related tags found
No related merge requests found
...@@ -33,8 +33,8 @@ dnf_epel_mirror_directory: 'pub/epel' ...@@ -33,8 +33,8 @@ dnf_epel_mirror_directory: 'pub/epel'
dnf_custom_repos: {} dnf_custom_repos: {}
# Whether to install the epel-release package. This affects RedHat-based # Whether to install the epel-release package. This affects RedHat-based
# systems only. Default value is 'true'. # systems only. Default value is 'false'.
dnf_install_epel: true dnf_install_epel: false
############################################################################### ###############################################################################
# DNF Automatic configuration. # DNF Automatic configuration.
......
...@@ -32,4 +32,4 @@ dnf_epel_mirror_directory: 'pub/epel' ...@@ -32,4 +32,4 @@ dnf_epel_mirror_directory: 'pub/epel'
dnf_custom_repos: {} dnf_custom_repos: {}
# Whether to install the epel-release package. # Whether to install the epel-release package.
dnf_install_epel: true dnf_install_epel: false
...@@ -30,7 +30,7 @@ kolla_ansible_target_venv: ...@@ -30,7 +30,7 @@ kolla_ansible_target_venv:
kolla_upper_constraints_file: kolla_upper_constraints_file:
# Whether to install the epel-release package. # Whether to install the epel-release package.
kolla_ansible_install_epel: true kolla_ansible_install_epel: false
# Password to use to encrypt the passwords.yml file. # Password to use to encrypt the passwords.yml file.
kolla_ansible_vault_password: kolla_ansible_vault_password:
......
...@@ -548,8 +548,6 @@ grafana_admin_username: "{{ grafana_local_admin_user_name }}" ...@@ -548,8 +548,6 @@ grafana_admin_username: "{{ grafana_local_admin_user_name }}"
selinux_state: {{ kolla_selinux_state }} selinux_state: {{ kolla_selinux_state }}
{% endif %} {% endif %}
install_epel: {{ kolla_ansible_install_epel | bool }}
{% if kolla_enable_host_ntp is not none %} {% if kolla_enable_host_ntp is not none %}
enable_host_ntp: {{ kolla_enable_host_ntp | bool }} enable_host_ntp: {{ kolla_enable_host_ntp | bool }}
{% endif %} {% endif %}
......
...@@ -20,7 +20,7 @@ kolla_venv: "{{ ansible_facts.env['PWD'] }}/kolla-venv" ...@@ -20,7 +20,7 @@ kolla_venv: "{{ ansible_facts.env['PWD'] }}/kolla-venv"
kolla_upper_constraints_file: kolla_upper_constraints_file:
# Whether to install the epel-release package. # Whether to install the epel-release package.
kolla_install_epel: true kolla_install_epel: false
# Directory where Kolla config files will be installed. # Directory where Kolla config files will be installed.
kolla_build_config_path: kolla_build_config_path:
......
...@@ -276,11 +276,18 @@ For example, the following configuration defines a single DNF repository called ...@@ -276,11 +276,18 @@ For example, the following configuration defines a single DNF repository called
gpgkey: http://example.com/gpgkey gpgkey: http://example.com/gpgkey
gpgcheck: yes gpgcheck: yes
Disabling EPEL Enabling or disabling EPEL
-------------- --------------------------
Prior to the Yoga release, the EPEL DNF repository was enabled by default
(``dnf_install_epel: true``). Since Yoga, it is disabled by default
(``dnf_install_epel: false``).
Previously, EPEL was required to install some packages such as ``python-pip``,
however this is no longer the case.
It is possible to disable the EPEL DNF repository by setting It is possible to enable or disable the EPEL DNF repository by setting
``dnf_install_epel`` to ``false``. ``dnf_install_epel`` to ``true`` or ``false`` respectively.
DNF Automatic DNF Automatic
------------- -------------
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#dnf_custom_repos: #dnf_custom_repos:
# Whether to install the epel-release package. This affects RedHat-based # Whether to install the epel-release package. This affects RedHat-based
# systems only. Default value is 'true'. # systems only. Default value is 'false'.
#dnf_install_epel: #dnf_install_epel:
############################################################################### ###############################################################################
......
...@@ -124,6 +124,8 @@ dnf_custom_repos: ...@@ -124,6 +124,8 @@ dnf_custom_repos:
baseurl: http://packages.treasuredata.com/4/redhat/$releasever/$basearch baseurl: http://packages.treasuredata.com/4/redhat/$releasever/$basearch
gpgkey: https://packages.treasuredata.com/GPG-KEY-td-agent gpgkey: https://packages.treasuredata.com/GPG-KEY-td-agent
gpgcheck: yes gpgcheck: yes
# Install EPEL local mirror.
dnf_install_epel: true
# Enable DNF Automatic. # Enable DNF Automatic.
dnf_automatic_enabled: true dnf_automatic_enabled: true
{% endif %} {% endif %}
......
---
upgrade:
- |
The default value of ``dnf_install_epel`` has been changed to ``false``.
This means that the EPEL DNF repository is no longer installed by default.
Neither existing EPEL repositories nor the ``epel-release`` package will be
removed. If necessary, EPEL may be enabled by setting ``dnf_install_epel``
to ``true`` in ``dnf.yml``. See `story 2009757
<https://storyboard.openstack.org/#!/story/2009757>`__ for details.
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
- block: - block:
# NOTE(mgoddard): The CentOS image used in CI has epel-release installed, # NOTE(mgoddard): The CentOS image used in CI has epel-release installed,
# but the configure-mirrors role used by Zuul disables epel. Since we # but the configure-mirrors role used by Zuul disables epel. We no longer
# install epel-release and expect epel to be enabled, enable it here. # install EPEL by default, but let's just be sure it's disabled.
- name: Ensure dnf-plugins-core is installed - name: Ensure dnf-plugins-core is installed
package: package:
name: dnf-plugins-core name: dnf-plugins-core
state: present state: present
- name: Enable the EPEL repository - name: Enable the EPEL repository
command: dnf config-manager --enable epel command: dnf config-manager --disable epel
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
become: true become: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment