45d5ee522d
This patch refactors the ceph_client role to add support for multiple operating system distros and multiple sources for Ceph packages. The support of multiple sources for the Ceph packages is important to organizations that must get packages from Canonical for service and support. The current Ceph repo setup goes to upstream ceph.com repositories and does not work with the UCA. The use of UCA is also important when running OpenStack on the ppc64le architecture because ceph.com does not have Debian packages available for this architecture and the default trusty and trusty-updates repos only have Ceph Giant, whereas the user can get later releases such as Ceph Jewel from UCA. The multiple operating system support for Trusty and Xenial also plays into this since Xenial has Ceph Jewel by default. For Xenial OSA deployments users may want to use the modern ceph client already available for the distro. The choice of which Ceph source to use is simple for deployers. They simply set it with the ceph_pkg_source variable but have additional variables they can tweak to pick specific Ceph versions from the sources: The ceph_pkg_source variable controls the install source for the Ceph packages. Valid values include: * ceph This option installs Ceph from a ceph.com repo. Additional variables to adjust items such as Ceph release and regional download mirror can be found in vars/*.yml * uca This option installs Ceph from the Ubuntu Cloud Archive. Additional variables to adjust items such as the OpenStack/Ceph release can be found in vars/*.yml. * distro This options installs Ceph from the operating system's default repository and unlike the other options does not attempt to manage package keys or add additional package repositories. Change-Id: Ib21b3f76ccf4556548180c8694786d43fa0a024f
51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
---
|
|
# Copyright 2016 IBM Corp
|
|
# Copyright 2015, Serge van Ginderachter <serge@vanginderachter.be>
|
|
#
|
|
# 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.
|
|
|
|
## APT Cache Options
|
|
cache_timeout: 600
|
|
|
|
# Ceph GPG Keys
|
|
ceph_gpg_keys:
|
|
- key_name: 'ceph'
|
|
keyserver: 'hkp://keyserver.ubuntu.com:80'
|
|
fallback_keyserver: 'hkp://p80.pool.sks-keyservers.net:80'
|
|
hash_id: '0xe84ac2c0460f3994'
|
|
|
|
# The apt-key command won't del a key when you give it the hash_id, so we have
|
|
# to use the short key ID here instead.
|
|
ceph_revoked_gpg_keys:
|
|
- '17ED316D'
|
|
|
|
# Ceph.com repository variables
|
|
ceph_apt_repo_url_region: "download" # or "eu" for Netherlands based mirror
|
|
ceph_stable_release: hammer
|
|
ceph_apt_repo_url: "http://{{ ceph_apt_repo_url_region }}.ceph.com/debian-{{ ceph_stable_release }}/"
|
|
|
|
# Ubuntu Cloud Archive variables
|
|
# TODO(smatzek) Revisit the default uca release for 16.04 at newton-1
|
|
uca_openstack_release: mitaka
|
|
uca_apt_repo_url: "http://ubuntu-cloud.archive.canonical.com/ubuntu"
|
|
uca_repo_dist: "{{ ansible_lsb.codename }}-updates/{{ uca_openstack_release }}"
|
|
|
|
# Apt repositories
|
|
ceph_apt_repos:
|
|
ceph:
|
|
repo: "deb {{ ceph_apt_repo_url }} {{ ansible_lsb.codename }} main"
|
|
state: "present"
|
|
uca:
|
|
repo: "deb {{ uca_apt_repo_url }} {{ uca_repo_dist }} main"
|
|
state: "present"
|