Commit Graph

15 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 94a58e398b Fix linters and metadata
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
2023-07-13 11:44:20 +00:00
Jonathan Rosser e4d8d7836e Remove references to unsupported operating systems
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
2021-03-21 21:06:47 +01:00
Jonathan Rosser 8e7d64641c Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I46311bb1fafb9d5c401c4899aab64d562117d658
2021-02-23 19:35:36 +00:00
Guilherme Steinmüller d8f071821f debian: add support
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
2019-04-09 00:43:33 +00:00
Markos Chandras f2772bd0eb SUSE: Add support for openSUSE Leap 15
Change-Id: Ic89ecb1310fda2826791f7d326c0377329fbeb71
2018-10-30 15:07:22 +00:00
Jonathan Rosser ba95c946d0 Ensure ceph_client specific apt pin config
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
2018-10-13 20:41:28 +01:00
Jonathan Rosser e67c08ca99 List ubuntu releases in release order
Change-Id: I17b7263d504cc20437bca6f34e16e1138880a3aa
2018-08-02 15:42:02 +00:00
Jean-Philippe Evrard ca48f99258 Add Bionic testing
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
2018-05-14 20:49:26 +02:00
Jean-Philippe Evrard 27e0b24482 Add OpenStack-Ansible metadata
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
2017-10-10 09:14:40 +00:00
Markos Chandras 71b9e924d7 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
2017-07-14 15:00:32 +01:00
Jesse Pretorius 8ce2ae13cf Use package module to install distro packages
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
2017-05-02 11:37:12 +01:00
Andy McCrae c7b17d4b0d Remove Trusty support from ceph_client role
Change-Id: I8a1fed14bd1107c6557c7e4a1c1bdce840a1160a
Implements: blueprint trusty-removal
2016-12-15 13:12:20 +00:00
Jesse Pretorius 30520409a9 Add missing meta information
This patch adds missing meta information and license
boilerplate to some files.

Change-Id: I5b48601dc50f5270b1cf781559dea73b7acd2e6e
2016-09-13 10:46:20 +01:00
Marc Gariepy 2c58ffeaa6 fix basic support to pass centos install
Add contitional for dependency
add redhat for Gather variables task

Change-Id: I794eda1c7b416219dc9b0e690f058bf5d863e858
2016-09-12 14:22:47 -04:00
Serge van Ginderachter c703195f67 Add Ceph/RBD support to playbooks
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
2015-08-01 19:49:00 +01:00