ceph-ansible/roles/ceph-osd
Sébastien Han 381af6c18d ceph-osd: get full link path when testing if a partition
This allows us to test devices set with persistent naming such as
/dev/disk/by-*
When registering devices we can use persisent (/dev/disk/by-*) or
non-persistent (/dev/sd*). Both declarations are supported by
ceph-ansible. There was just two tasks that were not compatible with
this. Since we support using partitions directly we need to test that
because the device activation will be different. To test if the device
is a partition we use a regular expression which wasn't compatible with
the persistent device naming format (/dev/disk/by-*).

This commit solves this issue by reading the path of the symlink since
devices like /dev/disk/by-* are symlinks to devices like /dev/sd*

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-09-20 10:15:06 +02:00
..
defaults docker: fix osd configuration 2016-08-24 09:05:14 +02:00
meta wip: galaxy roles dependencies 2016-03-02 13:52:56 +01:00
tasks ceph-osd: get full link path when testing if a partition 2016-09-20 10:15:06 +02:00
templates Add option to enable ntp 2016-08-08 10:16:48 -07:00
LICENSE Add READMEs for each roles 2015-07-25 10:51:53 +02:00
README.md Add contribution note 2015-07-25 11:10:39 +02:00

README.md

Ansible role: Ceph OSD

This role bootstraps Ceph OSD(s). It can bootstrap dockerized Ceph OSD(s).

Requirements

Nothing, it runs out of the box.

Role variables

Have a look at: defaults/main.yml.

Mandatory variables

Choose between the following scenario to configure your OSDs, choose only one:

  • journal_collocation
  • raw_multi_journal
  • osd_directory

Then:

  • devices
  • raw_journal_devices (only if you activated raw_multi_journal)
  • osd_directories (only if you activated osd_directory)

Dependencies

The role leseb.ceph-common must be installed.

Example Playbook

- hosts: servers
  remote_user: ubuntu
  roles:
     - { role: leseb.ceph-osd }

Contribution

THIS REPOSITORY DOES NOT ACCEPT PULL REQUESTS PULL REQUESTS MUST GO THROUGH CEPH-ANSIBLE

License

Apache

Author Information

This role was created by Sébastien Han.