Commit Graph

6 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
Andy McCrae b1cf342b27 Move to use filtered packages/services/clients
Instead of passing a huge dict lets filter the services so that only the
required packages are installed (in one command). Additionally, we can
perform a similar filtering for the services and clients that are used
as a part of the ceph_components var.

Change-Id: I64cced1bf82c9d7b4368873eff524603b91162c8
2017-08-10 15:55:08 +01:00
Miguel Alex Cantu 96b8a41312 Add ceph_extra_components, move gnocchi component
The telemetry roles within OSA are in the process of getting moved
out of the OSA integrated repo. As a result, the gnocchi groups
will no longer be part of the inventory by default.
This commit adds a new variable, called 'ceph_extra_components',
that will allow the deployer to specify any extra services
and packages that might not ship by default with OSA.

Change-Id: I5b1bcf670e6ed6018cd3de25f069b65747fb5532
2017-07-27 01:34:48 +00: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
Marc Gariepy b3f553e339 Fix deprecation warning for ceph_client role.
Bare variables in with_ loops should instead use the “{{ var }}” syntax,
which helps eliminate ambiguity.
https://docs.ansible.com/ansible/porting_guide_2.0.html#deprecated

Change-Id: I6d54aca88c6f2bf0e60ee6cc89d5f06fb8d680c1
2016-08-18 09:06:45 +00: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