Ceph has the ability to export it's filesystem via NFS using Ganesha.
Add a ceph-nfs role that will start Ganesha and export the Ceph
filesystems.
Note that, although support is going in to export RGW via NFS, this is
not working yet.
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
we now have the ability to enable the `cluster` variable with a specific
value that will determine the name of the cluster.
Signed-off-by: Sébastien Han <seb@redhat.com>
Add support for user prompt before purging the cluster. This
ensure that accidental invocation of purge-cluster won't
purge the cluster. Defaults to no purging, unless user either
says 'yes' on the prompt or invokes the playbook with:
`-e ireallymeanit=yes`. This also aligns neatly with ceph cli's
--yes-i-really-mean-it option
Signed-off-by: Deepak C Shetty <deepakcs@redhat.com>
People who use `osd_auto_discovery` feature will not have a devices
variable populated, so we first check for the existence of devices.
Signed-off-by: Sébastien Han <seb@redhat.com>
reworked the stop sequence by using ids instead of calling the 'all'
function which does not seem to be working all the time.
Signed-off-by: Sébastien Han <seb@redhat.com>
We don't necessary want to wipe and delete partition of the disks on the
monitor nodes, so we simply perform the operation on the OSD nodes.
Signed-off-by: Sébastien Han <seb@redhat.com>
We run a zap twice here since we can't combine with_items and
with_sequence yet. This will land in Ansible 2.0. We destroy all the
partitions and re-create new labels as well. We do this twice just
because sometimes one is not sufficient. We also call partprobe to make
sure that the kernel sees the changes.
Signed-off-by: leseb <seb@redhat.com>