![Jean-Philippe Evrard](/assets/img/avatar_default.png)
Because of the change [1], the file tools/cpu_map_update.py was removed, and we rely on this file for gating. However, according to the same review, this shouldn't be done anymore because "nova has been fixed" (I've got no evidence of it yet). This should fix the gate issue. [1]: https://review.openstack.org/#/c/324562/ Change-Id: I83e3fc349a0448e0411f369bdf4888ff81cb37a8 Depends-On: I198db581db22655dc8791ba40a77a39b362c1b73 Closes-Bug: 1589440 Signed-off-by: Jean-Philippe Evrard <jean-philippe@evrard.me>
114 lines
3.3 KiB
YAML
114 lines
3.3 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.
|
|
|
|
# Before we do anything, check the minimum requirements
|
|
- include: check-requirements.yml
|
|
tags:
|
|
- check-requirements
|
|
|
|
# We will look for the most specific variable files first and eventually
|
|
# end up with the least-specific files.
|
|
- name: Gather variables for each operating system
|
|
include_vars: "{{ item }}"
|
|
with_first_found:
|
|
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml"
|
|
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
|
|
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
|
|
- "{{ ansible_distribution | lower }}.yml"
|
|
- "{{ ansible_os_family | lower }}.yml"
|
|
tags:
|
|
- always
|
|
|
|
- name: Create the required directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "/openstack"
|
|
tags:
|
|
- create-directories
|
|
|
|
# Configure apt in a known way to reduce the chance of unexpected failures
|
|
- include: install-apt.yml
|
|
when:
|
|
- ansible_pkg_mgr == 'apt'
|
|
tags:
|
|
- install-apt
|
|
|
|
# Prepare the data disk, if one is provided
|
|
- include: prepare_data_disk.yml
|
|
when:
|
|
- bootstrap_host_data_disk_device is defined
|
|
tags:
|
|
- prepare-data-disk
|
|
|
|
# Prepare the swap space loopback disk
|
|
# This is only necessary if there isn't swap already
|
|
- include: prepare_loopback_swap.yml
|
|
when:
|
|
- ansible_swaptotal_mb < 1
|
|
tags:
|
|
- prepare-loopback-swap
|
|
|
|
# Prepare the Cinder LVM VG loopback disk
|
|
# This is only necessary if bootstrap_host_loopback_cinder is set to yes
|
|
- include: prepare_loopback_cinder.yml
|
|
when:
|
|
- bootstrap_host_loopback_cinder | bool
|
|
tags:
|
|
- prepare-loopback-cinder
|
|
|
|
# Prepare the Nova instance storage loopback disk
|
|
- include: prepare_loopback_nova.yml
|
|
when:
|
|
- bootstrap_host_loopback_nova | bool
|
|
tags:
|
|
- prepare-loopback-nova
|
|
|
|
# Prepare the Swift data storage loopback disks
|
|
- include: prepare_loopback_swift.yml
|
|
when:
|
|
- bootstrap_host_loopback_swift | bool
|
|
tags:
|
|
- prepare-loopback-swift
|
|
|
|
# Prepare the network interfaces
|
|
- include: prepare_networking.yml
|
|
tags:
|
|
- prepare-networking
|
|
|
|
# Ensure that there are both private and public ssh keys for root
|
|
- include: prepare_ssh_keys.yml
|
|
tags:
|
|
- prepare-ssh-keys
|
|
|
|
# Put the OpenStack-Ansible configuration for an All-In-One on the host
|
|
- include: prepare_aio_config.yml
|
|
when: bootstrap_host_aio_config | bool
|
|
tags:
|
|
- prepare-aio-config
|
|
|
|
# Prepare the MongoDB Service for Ceilometer/Aodh
|
|
- include: prepare_mongodb_service.yml
|
|
when: bootstrap_host_mongodb_service | bool
|
|
tags:
|
|
- prepare-mongodb-service
|
|
|
|
# Prepare the MongoDB Users for Ceilometer/Aodh
|
|
- include: prepare_mongodb_users.yml
|
|
when: bootstrap_host_mongodb_users | bool
|
|
tags:
|
|
- prepare-mongodb-users
|