b878370a0b
Currently the playbooks do not allow Ceph to be configured as a backend for Cinder, Glance or Nova. This commit adds a new role called ceph_client to do the required configuration of the hosts and updates the service roles to include the required configuration file changes. This commit requires that a Ceph cluster already exists and does not make any changes to that cluster. ceph_client role, run on the OpenStack service hosts - configures the Ceph apt repo - installs any required Ceph dependencies - copies the ceph.conf file and appropriate keyring file to /etc/ceph - creates the necessary libvirt secrets os_glance role glance-api.conf will set the following variables for Ceph: - [DEFAULT]/show_image_direct_url - [glance_store]/stores - [glance_store]/rbd_store_pool - [glance_store]/rbd_store_user - [glance_store]/rbd_store_ceph_conf - [glance_store]/rbd_store_chunk_size os_nova role nova.conf will set the following variables for Ceph: - [libvirt]/rbd_user - [libvirt]/rbd_secret_uuid - [libvirt]/images_type - [libvirt]/images_rbd_pool - [libvirt]/images_rbd_ceph_conf - [libvirt]/inject_password - [libvirt]/inject_key - [libvirt]/inject_partition - [libvirt]/live_migration_flag os_cinder is not updated because ceph is defined as a backend and that is generated from a dictionary of the config, for an example backend config, see etc/openstack_deploy/openstack_user_config.yml.example pw-token-gen.py is updated so that variables ending in uuid are assigned a UUID. DocImpact Implements: blueprint ceph-block-devices Closes-Bug: #1455238 Change-Id: Ie484ce0bbb93adc53c30be32f291aa5058b20028
167 lines
5.7 KiB
YAML
167 lines
5.7 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
|
|
|
|
# Enable/Disable Ceilometer
|
|
glance_ceilometer_enabled: False
|
|
|
|
## Verbosity Options
|
|
debug: False
|
|
verbose: True
|
|
glance_profiler_enabled: False
|
|
glance_fatal_deprecations: False
|
|
|
|
## System info
|
|
glance_system_user_name: glance
|
|
glance_system_group_name: glance
|
|
glance_system_shell: /bin/false
|
|
glance_system_comment: glance system user
|
|
glance_system_user_home: "/var/lib/{{ glance_system_user_name }}"
|
|
|
|
glance_registry_host: "{{ internal_lb_vip_address }}"
|
|
glance_ceilometer_notification_driver: messagingv2
|
|
glance_notification_driver: noop
|
|
glance_rpc_backend: glance.openstack.common.rpc.impl_kombu
|
|
glance_default_store: file
|
|
glance_flavor: "{% if glance_default_store == 'rbd' %}keystone{% else %}keystone+cachemanagement{% endif %}"
|
|
glance_show_image_direct_url: "{{ glance_default_store == 'rbd' }}"
|
|
|
|
|
|
## API options
|
|
glance_enable_v1_api: True
|
|
glance_enable_v1_registry: True
|
|
glance_enable_v2_api: True
|
|
glance_enable_v2_registry: True
|
|
|
|
## DB info
|
|
glance_galera_database: glance
|
|
glance_galera_user: glance
|
|
|
|
glance_role_name: admin
|
|
glance_api_bind_address: 0.0.0.0
|
|
glance_api_service_port: 9292
|
|
glance_api_program_name: glance-api
|
|
|
|
glance_registry_bind_address: 0.0.0.0
|
|
glance_registry_service_port: 9191
|
|
glance_registry_program_name: glance-registry
|
|
|
|
## Service Type and Data
|
|
glance_service_region: RegionOne
|
|
glance_service_name: glance
|
|
glance_service_port: 9292
|
|
glance_service_proto: http
|
|
glance_service_registry_proto: "{{ glance_service_proto }}"
|
|
glance_service_publicuri_proto: "{{ openstack_service_publicuri_proto | default(glance_service_proto) }}"
|
|
glance_service_adminuri_proto: "{{ openstack_service_adminuri_proto | default(glance_service_proto) }}"
|
|
glance_service_internaluri_proto: "{{ openstack_service_internaluri_proto | default(glance_service_proto) }}"
|
|
glance_service_type: image
|
|
glance_service_description: "Glance Image Service"
|
|
glance_service_user_name: glance
|
|
glance_service_project_name: service
|
|
glance_service_project_domain_id: default
|
|
glance_service_user_domain_id: default
|
|
glance_service_publicuri: "{{ glance_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ glance_service_port }}"
|
|
glance_service_publicurl: "{{ glance_service_publicuri }}"
|
|
glance_service_internaluri: "{{ glance_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ glance_service_port }}"
|
|
glance_service_internalurl: "{{ glance_service_internaluri }}"
|
|
glance_service_adminuri: "{{ glance_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ glance_service_port }}"
|
|
glance_service_adminurl: "{{ glance_service_adminuri }}"
|
|
|
|
## Swift Options
|
|
glance_swift_store_auth_address: "{{ keystone_service_internalurl }}"
|
|
glance_swift_store_user: "service:{{ glance_service_user_name }}"
|
|
glance_swift_store_key: "{{ glance_service_password }}"
|
|
glance_swift_store_region: "{{ glance_service_region }}"
|
|
glance_swift_store_container: glance_images
|
|
glance_swift_store_endpoint_type: internalURL
|
|
# Set the swift_store_large_objects variables in MB
|
|
glance_swift_store_large_object_size: 5120
|
|
glance_swift_store_large_object_chunk_size: 200
|
|
|
|
## Keystone authentication middleware
|
|
glance_keystone_auth_plugin: password
|
|
|
|
## Glance config
|
|
glance_image_cache_max_size: 10737418240
|
|
|
|
# If ``glance_api_workers`` is unset the system will use half the number of available VCPUS to
|
|
# compute the number of api workers to use.
|
|
# glance_api_workers: 16
|
|
|
|
# If ``glance_registry_workers`` is unset the system will use half the number of available VCPUS to
|
|
# compute the number of api workers to use.
|
|
# glance_registry_workers: 16
|
|
|
|
glance_task_executor: taskflow
|
|
glance_digest_algorithm: sha1
|
|
glance_http_keepalive: True
|
|
|
|
## Glance policy
|
|
glance_policy_file: policy.json
|
|
glance_policy_default_rule: default
|
|
glance_policy_dirs: policy.d
|
|
|
|
## Define nfs information for glance. When the glance_nfs_client dictionary is
|
|
## defined it will enable nfs shares as mounted directories. The
|
|
## ``glance_nfs_client`` value is a list of dictionaries that must be filled
|
|
## out completely to enable the persistent NFS mounts.
|
|
# glance_nfs_client:
|
|
# - server: "127.0.0.1" ## Hostname or IP address of NFS Server
|
|
# remote_path: "/images" ## Remote path from the NFS server's export
|
|
# local_path: "/var/lib/glance/images" ## Local path on machine
|
|
# type: "nfs" ## This can be nfs or nfs4
|
|
# options: "_netdev,auto" ## Mount options
|
|
|
|
## 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.
|
|
#glance_policy_overrides:
|
|
# "add_image": ""
|
|
# "delete_image": ""
|
|
|
|
## Ceph rbd Options
|
|
glance_ceph_client: glance
|
|
glance_rbd_store_pool: images
|
|
glance_rbd_store_user: '{{ glance_ceph_client }}'
|
|
glance_rbd_store_chunk_size: 8
|
|
|
|
# Common apt packages
|
|
glance_apt_packages:
|
|
- rpcbind
|
|
- rsync
|
|
- git
|
|
- nfs-common
|
|
|
|
# Common pip packages
|
|
glance_pip_packages:
|
|
- glance
|
|
- keystonemiddleware
|
|
- MySQL-python
|
|
- python-memcached
|
|
- pycrypto
|
|
- python-glanceclient
|
|
- python-swiftclient
|
|
- python-cinderclient
|
|
- python-keystoneclient
|
|
- warlock
|
|
|
|
## Service Names
|
|
glance_service_names:
|
|
- "glance-api"
|
|
- "glance-registry"
|