<commit_before>---
include:
  default:
    - profile::openstack::volume
    - profile::openstack::volume::api
    - profile::openstack::volume::scheduler
    - profile::openstack::volume::storage
    - profile::openstack::openrc
    - profile::logging::rsyslog::client

openstack_version: 'ocata' #FIXME

profile::base::common::packages:
  'python2-oslo-policy': {}
  'python2-keystonemiddleware': {}
  'bash-completion': {}
  'bash-completion-extras': {}
  'jq': {}
  'openstack-selinux': {}

profile::base::selinux::manage_selinux:   false
profile::openstack::openrc::password:     "%{hiera('cinder_api_password')}"
profile::openstack::openrc::username:     'cinder'
profile::openstack::openrc::project_name: 'services'

profile::openstack::volume::type:
  rbd:
    visibility: "public"
    properties:
      - 'volume_backend_name=rbd-volumes'
#  rbd-ssd:
#    visibility: "private"
#    properties:
#      - 'volume_backend_name=rbd-ssd'

profile::openstack::volume::manage_telemetry: true
profile::openstack::volume::manage_quotas:    true

profile::openstack::volume::backend::rbd:
  rbd-volumes:
    rbd_pool: 'volumes'
    rbd_user: 'cinder'
    rbd_secret_uuid: "%{hiera('client.cinder::secret')}"
    extra_options:
      rbd-volumes/report_discard_supported:
        value: 'True'

cinder::backends::enabled_backends:
  - rbd-volumes

# access glance to create volumes from images
cinder::glance::glance_api_servers: "%{hiera('endpoint__image__internal')}"
cinder::glance::glance_api_version: "2"

# openstack-cinder creates a sudoers.d file used to
# load backend drivers
sudo::purge: false

# Enable extra yum repo
profile::base::yumrepo::repo_hash:
  rdo-release:
    ensure: present
  ceph-%{hiera('ceph_version')}:
    ensure: present
  epel: # should be absent when using RDO, but whitelist can also work
    ensure:   present
    includepkgs: 'htop bash-completion-extras lttng-ust'

# Volume nodes need only cinder and glance keys
ceph::profile::params::client_keys:
  'client.cinder':
    secret: "%{hiera('client_cinder::secret')}"
    mode: '0600'
    user: 'cinder'
    group: 'cinder'
    cap_mon: 'profile rbd'
    cap_osd: 'profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images'
  'client.glance':
    secret: "%{hiera('client_glance::secret')}"
    mode: '0600'
    user: 'cinder'
    group: 'cinder'
    cap_mon: 'profile rbd'
    cap_osd: 'profile rbd pool=images'
<commit_msg>add required deps for ceph from epel<commit_after>---
include:
  default:
    - profile::openstack::volume
    - profile::openstack::volume::api
    - profile::openstack::volume::scheduler
    - profile::openstack::volume::storage
    - profile::openstack::openrc
    - profile::logging::rsyslog::client

openstack_version: 'ocata' #FIXME

profile::base::common::packages:
  'python2-oslo-policy': {}
  'python2-keystonemiddleware': {}
  'bash-completion': {}
  'bash-completion-extras': {}
  'jq': {}
  'openstack-selinux': {}

profile::base::selinux::manage_selinux:   false
profile::openstack::openrc::password:     "%{hiera('cinder_api_password')}"
profile::openstack::openrc::username:     'cinder'
profile::openstack::openrc::project_name: 'services'

profile::openstack::volume::type:
  rbd:
    visibility: "public"
    properties:
      - 'volume_backend_name=rbd-volumes'
#  rbd-ssd:
#    visibility: "private"
#    properties:
#      - 'volume_backend_name=rbd-ssd'

profile::openstack::volume::manage_telemetry: true
profile::openstack::volume::manage_quotas:    true

profile::openstack::volume::backend::rbd:
  rbd-volumes:
    rbd_pool: 'volumes'
    rbd_user: 'cinder'
    rbd_secret_uuid: "%{hiera('client.cinder::secret')}"
    extra_options:
      rbd-volumes/report_discard_supported:
        value: 'True'

cinder::backends::enabled_backends:
  - rbd-volumes

# access glance to create volumes from images
cinder::glance::glance_api_servers: "%{hiera('endpoint__image__internal')}"
cinder::glance::glance_api_version: "2"

# openstack-cinder creates a sudoers.d file used to
# load backend drivers
sudo::purge: false

# Enable extra yum repo
profile::base::yumrepo::repo_hash:
  rdo-release:
    ensure: present
  ceph-%{hiera('ceph_version')}:
    ensure: present
  epel: # should be absent when using RDO, but whitelist can also work
    ensure:   present
    includepkgs: 'htop bash-completion-extras lttng-ust userspace-rcu libbabeltrace leveldb'

# Volume nodes need only cinder and glance keys
ceph::profile::params::client_keys:
  'client.cinder':
    secret: "%{hiera('client_cinder::secret')}"
    mode: '0600'
    user: 'cinder'
    group: 'cinder'
    cap_mon: 'profile rbd'
    cap_osd: 'profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images'
  'client.glance':
    secret: "%{hiera('client_glance::secret')}"
    mode: '0600'
    user: 'cinder'
    group: 'cinder'
    cap_mon: 'profile rbd'
    cap_osd: 'profile rbd pool=images'

{'fraction_non_alphanumeric': 0.14734053393111882, 'fraction_numerical': 0.004483391073975953, 'mean_word_length': 4.822064056939502, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4103819', 'n_tokens_mistral': 1736, 'n_tokens_neox': 1715, 'n_words': 319}