purge packages between integration tests

Otherwise cuttlefish won't be installed if emperor is already there,
which defeats the purpose of integration tests.

Change-Id: I1bf3a8aa9ae3447d424a70e97b57b4f63cf29228
Signed-off-by: Loic Dachary <loic@dachary.org>
Merge "purge packages between integration tests"
define ceph::osd

Prepare (i.e. create the file system) and activate (i.e. register the
OSD with the Ceph cluster and run the OSD daemon) a designated device on
the machine. It supports cephx and no authentication. It supports
external journals.

The activate part of the operation is implicit (triggered by udev rules
installed with the Ceph package).

The ensure absent implementation is probably not useful in production,
because it enough to remove the disk and let Ceph deal with the
consequences. It is however useful for integration tests to reset the
device permissions and declare it non existent to the Ceph cluster.

The shell snippets associated with present and absent are larger than
necessary. They will be reduced to oneliners when the features
required of ceph-disk are implemented. The issue tickets associated
idempotency and OSD removal are added as comments in the define
implementation to keep track of the progress of their implementation.

The spec tests are little more than syntax checking. The integration
tests verify ensure present/absent with and without cephx, with and
without an external journal.

Change-Id: I15e170b4e3b144da9c2061c0746411f65a744519
Signed-off-by: Loic Dachary <loic@dachary.org>
add gerritexec example in README

In the section about integration tests, document the actual gerritexec
oneliner used to trigger integration tests from review.openstack.org

Change-Id: I1b980bf40f66877cbb2bc65b40a82e2a7d2d3204
Signed-off-by: Loic Dachary <loic@dachary.org>
define ceph::key.

Provides keyring management.

Handles cephkeys (cephx), creating keyring files, injecting keys into
the keyring via ceph and ceph-autotool tools. Includes support for
multiple keys in the same keyring file (as this is supported by the
ceph-authtool tool).

Includes rspec system puppet for validation.

Change-Id: Ib3c4832ffcff61ab42ae221cdd5a5bfb76ee36c5
Implements: blueprint puppet-ceph#key
Merge "define ceph::key."