Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is required for this except for adding the appropriate distro variables file and also update the zypper cache before package installation. Finally, we set 'ceph_pkg_source' to 'distro' because upstream does not provide openSUSE packages. Change-Id: I88d98725c1212a986f34e7427ab8f5a4fb61a230
This commit is contained in:
parent
8f728af292
commit
71b9e924d7
@ -26,6 +26,11 @@ galaxy_info:
|
||||
- name: EL
|
||||
versions:
|
||||
- 7
|
||||
- name: opensuse
|
||||
versions:
|
||||
- 42.1
|
||||
- 42.2
|
||||
- 42.3
|
||||
categories:
|
||||
- cloud
|
||||
- ceph
|
||||
|
@ -17,7 +17,7 @@
|
||||
package:
|
||||
name: '{{ item.1 }}'
|
||||
state: "{{ ceph_client_package_state }}"
|
||||
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
|
||||
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
|
@ -19,21 +19,21 @@
|
||||
ceph_components:
|
||||
- component: glance_api
|
||||
package:
|
||||
- python-ceph
|
||||
- "{{ python_ceph_package }}"
|
||||
client:
|
||||
- '{{ glance_ceph_client }}'
|
||||
service: '{{ ceph_glance_service_names }}'
|
||||
- component: cinder_volume
|
||||
package:
|
||||
- ceph-common
|
||||
- python-ceph
|
||||
- "{{ python_ceph_package }}"
|
||||
client:
|
||||
- '{{ cinder_ceph_client }}'
|
||||
service: '{{ ceph_cinder_service_names }}'
|
||||
- component: cinder_backup
|
||||
package:
|
||||
- ceph-common
|
||||
- python-ceph
|
||||
- "{{ python_ceph_package }}"
|
||||
client:
|
||||
- '{{ cinder_backup_ceph_client }}'
|
||||
service: '{{ ceph_cinder_service_names }}'
|
||||
@ -41,13 +41,13 @@ ceph_components:
|
||||
package:
|
||||
- "{{ libvirt_package }}"
|
||||
- ceph-common
|
||||
- python-ceph
|
||||
- "{{ python_ceph_package }}"
|
||||
client:
|
||||
- '{{ nova_ceph_client }}'
|
||||
service: '{{ ceph_nova_service_names }}'
|
||||
- component: gnocchi_api
|
||||
package:
|
||||
- python-ceph
|
||||
- "{{ python_ceph_package }}"
|
||||
client:
|
||||
- '{{ gnocchi_ceph_client }}'
|
||||
service: '{{ ceph_gnocchi_service_names }}'
|
||||
|
@ -19,6 +19,8 @@ ceph_gpg_keys: 'https://download.ceph.com/keys/release.asc'
|
||||
libvirt_package: libvirt-daemon-kvm
|
||||
libvirt_service_name: libvirtd
|
||||
|
||||
python_ceph_package: python-ceph
|
||||
|
||||
ceph_repo_url_region: "download" # see here for other mirros http://docs.ceph.com/docs/master/install/mirrors/
|
||||
ceph_yum_repo_url: "https://{{ ceph_repo_url_region }}.ceph.com/rpm-{{ ceph_stable_release }}/el7"
|
||||
|
||||
|
23
vars/suse-42.yml
Normal file
23
vars/suse-42.yml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
# Copyright 2017, SUSE LINUX GmbH.
|
||||
#
|
||||
# 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.
|
||||
|
||||
libvirt_package: qemu-kvm
|
||||
libvirt_service_name: libvirtd
|
||||
|
||||
python_ceph_package: python-cephfs
|
||||
|
||||
# NOTE(hwoarang) Upstream does not provide openSUSE packages
|
||||
# so we always set ceph_pkg_source to 'distro' for openSUSE
|
||||
ceph_pkg_source: 'distro'
|
@ -39,6 +39,8 @@ uca_repo_dist: "{{ ansible_lsb.codename }}-updates/{{ uca_openstack_release }}"
|
||||
libvirt_package: libvirt-bin
|
||||
libvirt_service_name: libvirt-bin
|
||||
|
||||
python_ceph_package: python-ceph
|
||||
|
||||
# Apt repositories
|
||||
ceph_apt_repos:
|
||||
ceph:
|
||||
|
Loading…
x
Reference in New Issue
Block a user