Workarounding the upstream ansible apt module bug documented here: https://github.com/ansible/ansible-modules-core/pull/1517 For the next versions of ansible we'll be using, we should check if the apt bug is fixed. When it's fixed, we could abandon this change and use the standard apt module with correct cache handling. Change-Id: I2aaf00da175f31d0157bbc4ae30a4e176b055078
266 lines
9.3 KiB
YAML
266 lines
9.3 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
|
|
|
|
## APT Cache options
|
|
cache_timeout: 600
|
|
|
|
# Name of the virtual env to deploy into
|
|
cinder_venv_tag: untagged
|
|
cinder_venv_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin"
|
|
|
|
# Set this to enable or disable installing in a venv
|
|
cinder_venv_enabled: true
|
|
|
|
# The bin path defaults to the venv path however if installation in a
|
|
# venv is disabled the bin path will be dynamically set based on the
|
|
# system path used when the installing.
|
|
cinder_bin: "{{ cinder_venv_bin }}"
|
|
|
|
cinder_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/cinder.tgz
|
|
|
|
# Enable/Disable Ceilometer
|
|
cinder_ceilometer_enabled: False
|
|
|
|
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
|
|
|
|
cinder_fatal_deprecations: False
|
|
|
|
## DB
|
|
cinder_galera_user: cinder
|
|
cinder_galera_database: cinder
|
|
|
|
## RabbitMQ info
|
|
cinder_rabbitmq_userid: cinder
|
|
cinder_rabbitmq_vhost: /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's enabled
|
|
cinder_enable_v1_api: true
|
|
cinder_enable_v2_api: true
|
|
|
|
## Cinder api service type and data
|
|
cinder_service_name: cinder
|
|
cinder_service_project_domain_id: default
|
|
cinder_service_user_domain_id: default
|
|
cinder_service_user_name: cinder
|
|
cinder_service_project_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_publicuri_proto: "{{ openstack_service_publicuri_proto | default(cinder_service_proto) }}"
|
|
cinder_service_adminuri_proto: "{{ openstack_service_adminuri_proto | default(cinder_service_proto) }}"
|
|
cinder_service_internaluri_proto: "{{ openstack_service_internaluri_proto | default(cinder_service_proto) }}"
|
|
cinder_service_type: volume
|
|
cinder_service_publicuri: "{{ cinder_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_publicurl: "{{ cinder_service_publicuri }}/v1/%(tenant_id)s"
|
|
cinder_service_adminuri: "{{ cinder_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_adminurl: "{{ cinder_service_adminuri }}/v1/%(tenant_id)s"
|
|
cinder_service_internaluri: "{{ cinder_service_internaluri_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_publicuri_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_adminuri_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_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v2_internalurl: "{{ cinder_service_internaluri }}/v2/%(tenant_id)s"
|
|
|
|
## Keystone authentication middleware
|
|
cinder_keystone_auth_plugin: password
|
|
|
|
## In order to enable the cinder backup you MUST set ``cinder_service_backup_program_enabled`` to "true"
|
|
cinder_service_backup_program_enabled: false
|
|
cinder_service_backup_program_name: cinder-backup
|
|
# cinder_service_backup_driver: Options include 'cinder.backup.drivers.swift' or
|
|
# 'cinder.backup.drivers.ceph'
|
|
cinder_service_backup_driver: cinder.backup.drivers.swift
|
|
# cinder_service_backup_swift_auth: Options include 'per_user' or 'single_user', we default to
|
|
# 'per_user' so that backups are saved to a user's swift account.
|
|
cinder_service_backup_swift_auth: per_user
|
|
# cinder_service_backup_swift_url: This is your swift storage url when using 'per_user', or keystone
|
|
# endpoint when using 'single_user'. When using 'per_user', you
|
|
# can leave this as empty or as None to allow cinder-backup to
|
|
# obtain storage url from environment.
|
|
cinder_service_backup_swift_url:
|
|
cinder_service_backup_swift_auth_version: 2
|
|
cinder_service_backup_swift_user:
|
|
cinder_service_backup_swift_tenant:
|
|
cinder_service_backup_swift_key:
|
|
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_ceph_user: cinder-backup
|
|
cinder_service_backup_ceph_pool: backups
|
|
cinder_service_backup_compression_algorithm: zlib
|
|
cinder_service_backup_metadata_version: 2
|
|
|
|
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
|
|
|
|
# osprofiler
|
|
cinder_profiler_enabled: false
|
|
# cinder_profiler_hmac_key is set in user_secrets.yml
|
|
cinder_profiler_trace_sqlalchemy: false
|
|
|
|
cinder_client_socket_timeout: 900
|
|
|
|
## Cinder quota
|
|
cinder_quota_volumes: 10
|
|
cinder_quota_snapshots: 10
|
|
cinder_quota_consistencygroups: 10
|
|
cinder_quota_gigabytes: 1000
|
|
cinder_quota_backups: 10
|
|
cinder_quota_backup_gigabytes: 1000
|
|
|
|
## 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.LVMVolumeDriver
|
|
# 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"
|
|
|
|
## Policy vars
|
|
# Provide a list of access controls to update the default policy.json with. These changes will be merged
|
|
# with the access controls in the default policy.json. E.g.
|
|
#cinder_policy_overrides:
|
|
# "volume:create": ""
|
|
# "volume:delete": ""
|
|
|
|
# Potential locations of glance
|
|
# the variable cinder_glance_api_servers is a list of servers that can service glance
|
|
# by default this variable is undefined
|
|
#cinder_glance_api_servers:
|
|
|
|
cinder_glance_host: 127.0.0.1
|
|
cinder_glance_service_port: 9292
|
|
|
|
cinder_service_in_ldap: false
|
|
|
|
# Common apt packages
|
|
cinder_apt_packages:
|
|
- dmeventd
|
|
- libpq-dev
|
|
- libkmod-dev
|
|
- libkmod2
|
|
- libxslt1-dev
|
|
- nfs-common
|
|
- parted
|
|
- qemu-utils
|
|
- rpcbind
|
|
- tgt
|
|
- zlib1g
|
|
- zlibc
|
|
|
|
# Cinder packages that must be installed before anything else
|
|
cinder_requires_pip_packages:
|
|
- virtualenv
|
|
- virtualenv-tools
|
|
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
|
|
- httplib2
|
|
|
|
# Common pip packages
|
|
cinder_pip_packages:
|
|
- cinder
|
|
- ecdsa
|
|
- httplib2
|
|
- keystonemiddleware
|
|
- PyMySQL
|
|
- python-memcached
|
|
- pycrypto
|
|
- python-cinderclient
|
|
- python-keystoneclient
|
|
- pywbem
|
|
- python-cephlibs
|
|
|
|
# Service Names
|
|
cinder_service_names:
|
|
- cinder-api
|
|
- cinder-scheduler
|
|
- cinder-volume
|
|
- cinder-backup
|
|
|
|
## Tunable overrides
|
|
cinder_policy_overrides: {}
|
|
cinder_rootwrap_conf_overrides: {}
|
|
cinder_api_paste_ini_overrides: {}
|
|
cinder_cinder_conf_overrides: {}
|