Merge "Enable auto-upgrade in the gate"

This commit is contained in:
Jenkins 2017-05-18 03:56:45 +00:00 committed by Gerrit Code Review
commit 43d8ef3a42
2 changed files with 12 additions and 7 deletions

View File

@ -63,6 +63,14 @@
- packages
- V-71987
- name: Check if /etc/yum/yum-cron.conf exists
stat:
path: /etc/yum/yum-cron.conf
check_mode: no
register: yum_cron_config_check
tags:
- always
- name: V-71999 - System security patches and updates must be installed and up to date. (yum)
lineinfile:
dest: /etc/yum/yum-cron.conf
@ -71,6 +79,7 @@
state: present
when:
- ansible_os_family | lower == 'redhat'
- yum_cron_config_check.stat.exists | bool
- security_rhel7_automatic_package_updates | bool
tags:
- packages

View File

@ -79,13 +79,9 @@
vars:
security_pwquality_apply_rules: yes
security_package_clean_on_remove: yes
# NOTE(mhayden): yum-cron has a bug upon update due to a RPM conflict in
# the yum-cron.conf file. This test should be re-enabled when the
# OpenStack CI images are updated.
# See https://bugzilla.redhat.com/show_bug.cgi?id=1293513
security_unattended_upgrades_enabled: "{{ (ansible_os_family | lower == 'debian') | ternary(true, false) }}"
security_unattended_upgrades_notifications: "{{ (ansible_os_family | lower == 'debian') | ternary(true, false) }}"
security_rhel7_automatic_package_updates: "{{ (ansible_os_family | lower == 'debian') | ternary(true, false) }}"
security_unattended_upgrades_enabled: yes
security_unattended_upgrades_notifications: yes
security_rhel7_automatic_package_updates: yes
# NOTE(mhayden): clamav is only available if EPEL is installed. There needs
# to be some work done to figure out how to install EPEL for use with
# this role without causing disruptions on the system.