CentOS 8 support
Dependant patch [1] passes openstack_hosts step, so we're good to merge even with failing functional test not to make circular dependency. [1] https://review.opendev.org/#/c/689629/ Depens-On: https://review.opendev.org/#/c/728259/ Change-Id: If33ce6f55939ee7722bbab98d134f182cba0eb25
This commit is contained in:

committed by
Dmitriy Rabotyagov

parent
1f5f7fee13
commit
9259628ead
@@ -149,8 +149,8 @@ openstack_host_sysstat_cron_mode: '0755'
|
|||||||
# NOTE(mhayden): Ensure that the full path to the 'centos' directory is used.
|
# NOTE(mhayden): Ensure that the full path to the 'centos' directory is used.
|
||||||
openstack_hosts_centos_mirror_url: 'http://mirror.centos.org/centos'
|
openstack_hosts_centos_mirror_url: 'http://mirror.centos.org/centos'
|
||||||
openstack_hosts_rdo_mirror_url: 'https://trunk.rdoproject.org'
|
openstack_hosts_rdo_mirror_url: 'https://trunk.rdoproject.org'
|
||||||
openstack_hosts_rdo_repo_url: "{{ openstack_hosts_rdo_mirror_url }}/centos7-master/current-passed-ci/"
|
openstack_hosts_rdo_repo_url: "{{ openstack_hosts_rdo_mirror_url }}/centos{{ ansible_distribution_major_version }}-master/current-passed-ci/"
|
||||||
openstack_hosts_rdo_deps_url: "{{ openstack_hosts_rdo_mirror_url }}/centos7-master/deps/latest/"
|
openstack_hosts_rdo_deps_url: "{{ openstack_hosts_rdo_mirror_url }}/centos{{ ansible_distribution_major_version }}-master/deps/latest/"
|
||||||
|
|
||||||
# Default opensuse mirrors URLs
|
# Default opensuse mirrors URLs
|
||||||
opensuse_mirror: "http://download.opensuse.org"
|
opensuse_mirror: "http://download.opensuse.org"
|
||||||
|
@@ -89,3 +89,15 @@
|
|||||||
until: _adding_repo is success
|
until: _adding_repo is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
|
- name: Add rdo repositories via url
|
||||||
|
get_url:
|
||||||
|
url: "{{ openstack_hosts_rdo_repo_url }}/delorean.repo"
|
||||||
|
dest: /etc/yum.repos.d/rdo.repo
|
||||||
|
register: _get_repo
|
||||||
|
until: _get_repo is success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
when:
|
||||||
|
- ansible_os_family | lower == 'redhat'
|
||||||
|
- ansible_distribution_major_version is version('8', '=')
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
- gnutls-utils
|
- gnutls-utils
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr == 'yum'
|
- ansible_distribution == "CentOS"
|
||||||
|
|
||||||
- name: Install ssl packages (ubuntu)
|
- name: Install ssl packages (ubuntu)
|
||||||
package:
|
package:
|
||||||
|
100
vars/redhat-8.yml
Normal file
100
vars/redhat-8.yml
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2016, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
## Defined required kernel
|
||||||
|
openstack_host_required_kernel: 4.18.0
|
||||||
|
openstack_host_sysstat_file: /etc/sysconfig/sysstat
|
||||||
|
openstack_host_sysstat_cron_file: /etc/cron.d/sysstat
|
||||||
|
openstack_host_cron_template: sysstat.cron.redhat.j2
|
||||||
|
openstack_host_module_file: /etc/modules-load.d/openstack-ansible.conf
|
||||||
|
|
||||||
|
openstack_host_sysstat_cron_mode: '0600'
|
||||||
|
|
||||||
|
## Kernel modules loaded on hosts
|
||||||
|
openstack_host_kernel_modules:
|
||||||
|
- name: 8021q
|
||||||
|
- name: br_netfilter
|
||||||
|
- name: dm_multipath
|
||||||
|
- name: dm_snapshot
|
||||||
|
- name: ebtables
|
||||||
|
- name: ip6table_filter
|
||||||
|
- name: ip6_tables
|
||||||
|
- name: ip_tables
|
||||||
|
- name: ipt_MASQUERADE
|
||||||
|
- name: ipt_REJECT
|
||||||
|
- name: iptable_filter
|
||||||
|
- name: iptable_mangle
|
||||||
|
- name: iptable_nat
|
||||||
|
- name: ip_vs
|
||||||
|
- name: iscsi_tcp
|
||||||
|
- name: nf_conntrack
|
||||||
|
- name: "{{ (hostvars[inventory_hostname]['ansible_kernel'] is version('4.19', '<=')) | ternary('nf_conntrack_ipv4' ,'') }}"
|
||||||
|
- name: "{{ (hostvars[inventory_hostname]['ansible_kernel'] is version('4.19', '<=')) | ternary('nf_conntrack_ipv6' ,'') }}"
|
||||||
|
- name: nf_defrag_ipv4
|
||||||
|
- name: nf_nat
|
||||||
|
- name: nf_nat_ipv4
|
||||||
|
- name: vhost_net
|
||||||
|
|
||||||
|
## Base packages
|
||||||
|
_openstack_host_distro_packages:
|
||||||
|
- python3-virtualenv
|
||||||
|
- python3-devel
|
||||||
|
|
||||||
|
## Bare metal base packages
|
||||||
|
_openstack_host_metal_distro_packages:
|
||||||
|
- cronie
|
||||||
|
- curl
|
||||||
|
- device-mapper-event
|
||||||
|
- dstat
|
||||||
|
- ebtables
|
||||||
|
- git
|
||||||
|
- iptables
|
||||||
|
- irqbalance
|
||||||
|
- kmod-libs
|
||||||
|
- kmod
|
||||||
|
- libselinux-python3
|
||||||
|
- lvm2
|
||||||
|
- rsync
|
||||||
|
- rsyslog
|
||||||
|
- sysstat
|
||||||
|
- sudo
|
||||||
|
- time
|
||||||
|
- wget
|
||||||
|
- yum-utils
|
||||||
|
|
||||||
|
_package_repos_keys:
|
||||||
|
- name: openstack-queens
|
||||||
|
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
|
||||||
|
keyfile: "gpg/764429E6"
|
||||||
|
- name: rdo-qemu-ev
|
||||||
|
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization-RDO
|
||||||
|
keyfile: "gpg/61E8806C"
|
||||||
|
|
||||||
|
_package_list:
|
||||||
|
- name: epel-release
|
||||||
|
state: absent
|
||||||
|
- name: "centos-openstack-release-*"
|
||||||
|
state: absent
|
||||||
|
- name: centos-release-storage-common
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
_package_repos:
|
||||||
|
- name: rdo-deps
|
||||||
|
file: rdo-deps
|
||||||
|
description: rdo-deps
|
||||||
|
baseurl: "{{ openstack_hosts_rdo_deps_url }}"
|
||||||
|
gpgcheck: no
|
||||||
|
|
||||||
|
_openstack_host_ca_location: /etc/pki/ca-trust/source/anchors/
|
Reference in New Issue
Block a user