With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.
With that we also update metdata to reflect current state.
Change-Id: Idb2dd6cd4bbf815e4b32c9bfbe9a66f33e1c4b97
All references to Gentoo, SUSE, Debian stretch and Centos-7 are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible
Change-Id: I8ccd8ef5cbb4a29b782418ffa33e635962f0941e
This patch updates the meta to reflect it's support
of Debian accordingly as well as rename ubuntu vars
file to debian.
Change-Id: I42191126a6e8e35d0ce5eddc55f9ac08caf9cdcf
Currently the apt_package_pinning default filename is used so there
is a risk that a subsequent invocation of that role will overwrite
the ceph_client apt pins.
Change-Id: I9ca45fdc18031611caf7d6b863afef8ace8e972a
Now that bionic testing is added into the tests repos, we can
start testing it in the repo.
The UCA repository is pointing to queens, as Q is supported on both
18.04 and 16.04
Depends-On: https://review.openstack.org/#/c/566959/
Change-Id: I0ba49abb963bde2e48d6456a8e60b949099d0b4c
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.
The role status isn't "Complete" because no functional test
of the ceph client has been implemented. (See also galera_client
role)
Change-Id: I84ea927feca9b030f16b17db78bdb79ecb215eac
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
Consolidate distro package install tasks into a
single task using the package module.
The minimum Ansible version is raised to 2.2 due to a
known bug [1] in Ansible's apt module which does not
update the cache properly if the cache update and the
install are combined in a single task.
[1] https://github.com/ansible/ansible-modules-core/issues/1497
Change-Id: I8f4ed2a836b118080bf4698786caab7847f6e799
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