Role - tripleo-ceph-common

Role Documentation

Welcome to the “tripleo_ceph_common” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo_ceph_common” role.

# todo(fultonj): evolve this to derive more of these values from facts

ceph_ansible_group_vars_all:
  ceph_container_image: ceph/daemon
  ceph_container_image_tag: v4.0.1-stable-4.0-nautilus-centos-7-x86_64
  ceph_container_registry: 192.168.24.1:8787
  ceph_origin: distro
  ceph_stable: true
  cluster: ceph
  cluster_network: 192.168.24.0/24
  containerized_deployment: true
  configure_firewall: false
  fsid: b8df929e-7c29-11e9-b1bd-244253215215
  generate_fsid: false
  ip_version: ipv4
  monitor_address_block: 192.168.24.0/24
  ntp_service_enabled: false
  openstack_config: true
  pools: []
  public_network: 192.168.24.0/24
  user_config: true
  dashboard_enabled: false
blacklisted_hostnames: []
ceph_ansible_extra_vars:
  ireallymeanit: yes
  container_binary: podman
uuid_content: {}
ceph_ansible_playbook_verbosity: 3
ceph_ansible_playbooks_param: [default]
ceph_ansible_skip_tags: package-install,with_pkg
ceph_ansible_environment_variables: []
ceph_ansible_inherits_calling_ansible_environment: false

ceph_pools:
  gnocchi_pool:
    name: metrics
    enabled: true
  nova_pool:
    name: vms
    enabled: true
  glance_pool:
    name: images
    enabled: true
  cinder_pool:
    name: volumes
    enabled: true
    cinder_extra_pools: [altrbd, pool2, pool3]
  cinder_backup_pool:
    name: backups
    enabled: false
  extra_pools:
  - application: rbd
    name: altrbd
    pg_num: 1
    rule_name: replicated_rule
  pg_num: 32

manila_pools:
  data: manila_data
  data_pg_num: 16
  metadata: manila_metadata
  metadata_pg_num: 16

ceph_keys:
  openstack_client:
    name: openstack
    key: AQC+vYNXgDAgAhAAc8UoYt+OTz5uhV7ItLdwUw==
  manila:
    name: manila
    key: AQDVdVZeAAAAABAAhhhLNK3G8Bb8kShtnPBXnA==
  radosgw:
    name: radosgw
    key: AQDVdVZeAAAAABAAzv4Bo8gRRyuOvs2MaLtnYQ==
  extra_keys:
  - caps:
      mgr: allow *
      mon: profile rbd
      osd: profile rbd pool=images
    key: AQBRgQ9eAAAAABAAv84zEilJYZPNuJ0Iwn9Ndg==
    mode: '0600'
    name: client.glance

ceph_default_overrides:
  global:
    osd_pool_default_pg_num: 32
    osd_pool_default_pgp_num: 32
    osd_pool_default_size: 1

Molecule Scenarios

Molecule is being used to test the “tripleo_ceph_common” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      ubi8:
        ansible_python_interpreter: /usr/bin/python3
    vars:
      ansible_user: root
Example default playbook
- name: Converge
  hosts: all
  roles:
  - role: tripleo_ceph_common