
This change implements the blueprint to convert all roles and plays into a more generic setup, following upstream ansible best practices. Items Changed: * All tasks have tags. * All roles use namespaced variables. * All redundant tasks within a given play and role have been removed. * All of the repetitive plays have been removed in-favor of a more simplistic approach. This change duplicates code within the roles but ensures that the roles only ever run within their own scope. * All roles have been built using an ansible galaxy syntax. * The `*requirement.txt` files have been reformatted follow upstream Openstack practices. * Dynamically generated inventory is now more organized, this should assist anyone who may want or need to dive into the JSON blob that is created. In the inventory a properties field is used for items that customize containers within the inventory. * The environment map has been modified to support additional host groups to enable the seperation of infrastructure pieces. While the old infra_hosts group will still work this change allows for groups to be divided up into seperate chunks; eg: deployment of a swift only stack. * The LXC logic now exists within the plays. * etc/openstack_deploy/user_variables.yml has all password/token variables extracted into the separate file etc/openstack_deploy/user_secrets.yml in order to allow seperate security settings on that file. Items Excised: * All of the roles have had the LXC logic removed from within them which should allow roles to be consumed outside of the `os-ansible-deployment` reference architecture. Note: * the directory rpc_deployment still exists and is presently pointed at plays containing a deprecation warning instructing the user to move to the standard playbooks directory. * While all of the rackspace specific components and variables have been removed and or were refactored the repository still relies on an upstream mirror of Openstack built python files and container images. This upstream mirror is hosted at rackspace at "http://rpc-repo.rackspace.com" though this is not locked to and or tied to rackspace specific installations. This repository contains all of the needed code to create and/or clone your own mirror. DocImpact Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk> Closes-Bug: #1403676 Implements: blueprint galaxy-roles Change-Id: I03df3328b7655f0cc9e43ba83b02623d038d214e
173 lines
6.0 KiB
YAML
173 lines
6.0 KiB
YAML
---
|
|
# Copyright 2014, 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.
|
|
|
|
# Defines that the role will be deployed on a host machine
|
|
is_metal: true
|
|
|
|
cinder_storage_availability_zone: nova
|
|
cinder_default_availability_zone: "{{ cinder_storage_availability_zone }}"
|
|
|
|
cinder_storage_address: 127.0.0.1
|
|
|
|
cinder_nova_catalog_info: compute:nova:internalURL
|
|
cinder_nova_catalog_admin_info: compute:nova:adminURL
|
|
|
|
## DB
|
|
cinder_galera_user: cinder
|
|
cinder_galera_database: cinder
|
|
|
|
## Cinder User / Group
|
|
cinder_system_user_name: cinder
|
|
cinder_system_group_name: cinder
|
|
cinder_system_comment: cinder system user
|
|
cinder_system_shell: /bin/false
|
|
cinder_system_home_folder: "/var/lib/{{ cinder_system_user_name }}"
|
|
|
|
## Cinder Auth
|
|
cinder_service_admin_tenant_name: "service"
|
|
cinder_service_admin_username: "cinder"
|
|
|
|
## Cinder api service type and data
|
|
cinder_service_name: cinder
|
|
cinder_service_user_name: cinder
|
|
cinder_service_tenant_name: service
|
|
cinder_service_role_name: admin
|
|
cinder_service_region: RegionOne
|
|
cinder_service_description: "Cinder Volume Service"
|
|
cinder_service_port: 8776
|
|
cinder_service_proto: http
|
|
cinder_service_type: volume
|
|
cinder_service_publicuri: "{{ cinder_service_proto }}://{{ external_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_publicurl: "{{ cinder_service_publicuri }}/v1/%(tenant_id)s"
|
|
cinder_service_adminuri: "{{ cinder_service_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_adminurl: "{{ cinder_service_adminuri }}/v1/%(tenant_id)s"
|
|
cinder_service_internaluri: "{{ cinder_service_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_internalurl: "{{ cinder_service_internaluri }}/v1/%(tenant_id)s"
|
|
cinder_service_program_name: cinder-api
|
|
|
|
cinder_service_v2_name: cinderv2
|
|
cinder_service_v2_port: 8776
|
|
cinder_service_v2_proto: http
|
|
cinder_service_v2_type: volumev2
|
|
cinder_service_v2_description: "Cinder Volume Service V2"
|
|
cinder_service_v2_publicuri: "{{ cinder_service_proto }}://{{ external_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v2_publicurl: "{{ cinder_service_publicuri }}/v2/%(tenant_id)s"
|
|
cinder_service_v2_adminuri: "{{ cinder_service_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v2_adminurl: "{{ cinder_service_adminuri }}/v2/%(tenant_id)s"
|
|
cinder_service_v2_internaluri: "{{ cinder_service_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v2_internalurl: "{{ cinder_service_internaluri }}/v2/%(tenant_id)s"
|
|
|
|
## In order to enable the cinder backup you MUST set ``cinder_backup_program_enabled`` to "true"
|
|
## Additionally the configuration section will not be put in the `cinder.conf` file unless the
|
|
## following variables are defined:
|
|
# * cinder_service_backup_swift_user
|
|
# * cinder_service_backup_swift_user
|
|
# * cinder_service_backup_swift_key
|
|
cinder_service_backup_program_enabled: false
|
|
cinder_service_backup_program_name: cinder-volume
|
|
cinder_service_backup_driver: cinder.backup.drivers.swift
|
|
cinder_service_backup_swift_url: http://127.0.0.1:8080/v1/AUTH
|
|
cinder_service_backup_swift_user: admin
|
|
cinder_service_backup_swift_key: secrete
|
|
cinder_service_backup_swift_auth: per_user
|
|
cinder_service_backup_swift_container: volumebackups
|
|
cinder_service_backup_swift_object_size: 52428800
|
|
cinder_service_backup_swift_retry_attempts: 3
|
|
cinder_service_backup_swift_retry_backoff: 2
|
|
cinder_service_backup_compression_algorithm: zlib
|
|
|
|
cinder_service_volume_program_name: cinder-volume
|
|
|
|
cinder_service_scheduler_program_name: cinder-scheduler
|
|
|
|
# If ``cinder_osapi_volume_workers`` is unset the system will use half the number of
|
|
# available VCPUS to compute the number of api workers to use.
|
|
# cinder_osapi_volume_workers: 16
|
|
|
|
## Cinder iscsi
|
|
cinder_iscsi_helper: tgtadm
|
|
cinder_iscsi_iotype: fileio
|
|
cinder_iscsi_num_targets: 100
|
|
cinder_iscsi_port: 3260
|
|
|
|
## Cinder RPC
|
|
cinder_rpc_backend: rabbit
|
|
|
|
# (StrOpt) Method used to wipe old voumes (valid options are: none, zero,
|
|
# shred)
|
|
cinder_volume_clear: shred
|
|
# (StrOpt) The flag to pass to ionice to alter the i/o priority of the process
|
|
# used to zero a volume after deletion, for example "-c3" for idle only
|
|
# priority.
|
|
cinder_volume_clear_ionice: -c3
|
|
|
|
# (IntOpt) Size in MiB to wipe at start of old volumes. 0 => all
|
|
cinder_volume_clear_size: 0
|
|
|
|
cinder_volume_name_template: volume-%s
|
|
|
|
## General configuration
|
|
## Set this in rpc_user_config.yml UNLESS you want all hosts to use the same
|
|
## Cinder backends. See the rpc_user_config example for more on how this is done.
|
|
# cinder_backends:
|
|
# lvm:
|
|
# volume_group: cinder-volumes
|
|
# volume_driver: cinder.volume.drivers.lvm.LVMISCSIDriver
|
|
# volume_backend_name: LVM_iSCSI
|
|
|
|
## Define nfs information for cinder. When the cinder_nfs_client dictionary is defined,
|
|
## it will enable nfs shares. The value ``nfs_shares_config`` is the path on the disk
|
|
## where the NFS export will live. The ``shares`` value is a list of dictionaries that
|
|
## must have the IP address of the NFS server and the location where the export will be.
|
|
# cinder_nfs_client:
|
|
# nfs_shares_config: /etc/cinder/nfs_shares
|
|
# shares:
|
|
# - ip: "127.0.0.1"
|
|
# share: "/vol/cinder"
|
|
|
|
# Common apt packages
|
|
cinder_apt_packages:
|
|
- dmeventd
|
|
- libpq-dev
|
|
- libkmod-dev
|
|
- libkmod2
|
|
- nfs-common
|
|
- parted
|
|
- qemu-utils
|
|
- rpcbind
|
|
- tgt
|
|
- zlib1g
|
|
- zlibc
|
|
|
|
# Common pip packages
|
|
cinder_pip_packages:
|
|
- cinder
|
|
- ecdsa
|
|
- httplib2
|
|
- keystonemiddleware
|
|
- MySQL-python
|
|
- python-memcached
|
|
- pycrypto
|
|
- python-cinderclient
|
|
- python-keystoneclient
|
|
- pywbem
|
|
|
|
# Service Names
|
|
cinder_service_names:
|
|
- cinder-api
|
|
- cinder-scheduler
|
|
- cinder-volume
|
|
- cinder-backup
|