Mohammed Naser 90c130575d Clean-up gate code to use mirror_info and pin ceph-ansible SHA
1. The OpenStack infrastructure provides us with a list of mirrors
   which are already templated so this will simply the process of
   using those mirrors instead of the previous implementation which
   tries to derive the right URL's.
2. Instead of rewriting the host's sources file for Ubuntu, we leave
   it alone.
3. We place the overrides into a new override file to simplify the
   implementation and no longer require a bunch of conditionals in
   the user_variables template. Some more clean-up can be done, but
   it will follow on later.
4. The ceph-ansible project has created a new library which is held
   in the root folder of the repo. We need to ensure that the library
   path is included, but that results in other breakages. To help
   get patches moving through the system again we pin the SHA to just
   prior the upstream changes.
5. The MariaDB mirror setting has been removed due to the default
   MariaDB setup being done via a specific pin. The apt repo setup
   for MariaDB is no longer being used.

Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
Change-Id: Ib908e5503ecc93255d554d027ec62539c6316099
2018-03-08 13:14:41 +00:00

35 lines
1.0 KiB
YAML

---
# Copyright 2015, 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.
- include: "install_packages_{{ ansible_os_family | lower }}.yml"
when:
- ansible_pkg_mgr != 'apt'
- name: Remove known problem packages
package:
name: "{{ packages_remove }}"
state: absent
tags:
- remove-packages
- name: Install packages
package:
name: "{{ packages_install }}"
state: present
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
tags:
- install-packages