ceph::mon : tag cephx spec test

And add a comment to be interpreted by emacs and used as a reminder at
the end of the mon test file.

Change-Id: I665b233d89de964db9f84c308ab31beba1bb7fba
Signed-off-by: Loic Dachary <loic@dachary.org>
ceph::mon : control client.admin key generation

Creating an empty /etc/ceph/ceph.client.admin.keyring file disables the
automatic creation of the client.admin credentials when the first
monitor is created.

The creation of the key must be done via ceph::key, using the
mon. keyring, in the same way ceph-create-keys does.

Modify the client.volumes test to actually use cephx instead of
injecting a key in a non cephx cluster. It makes the client.something
test redundant and also demonstrates that the client.admin key can be
created by puppet instead of being automatically created by
ceph-create-keys.

Change-Id: I7060e418c27ea3f6f4e53604044f21865438382e
Signed-off-by: Loic Dachary <loic@dachary.org>
ceph::osd : do not hardcode the cluster name

And cleanup the content of the OSD when it is removed, before umounting it.

Change-Id: Ie255d4ae4012b995fd2fc0e6f643ed32a03ce165
Signed-off-by: Loic Dachary <loic@dachary.org>
ceph::osd : add support for mon data directories

The creation of the OSD is separated in two stages, ceph-disk prepare
and ceph-disk activate. When dealing with a device this is not
necessary. But it is necessary when mon data is a directory.

The mon data directory is created if it does not exist. Although this is
not necessary for versions >= dumpling, it is for cuttlefish.

The tests are unmodified : they are run once with the /dev/sdb device
and again with the /srv/data directory.

The filestore_xattr_use_omap = true is added because cuttlefish does not
set it by default and will fail if trying to OSD::mount a directory from
a file system with limited xattr capacity such as ext4.

Note: the indentation in the tests is intentionally incorrect to not
introduce white space changes and make a clean diff.

Change-Id: Ie40eea0908b0f2e14420e2b0df2ba26e1465d23e
Signed-off-by: Loic Dachary <loic@dachary.org>
ceph::osd : indent tests

Change-Id: I5cc8f9711b02a39e7a3dc6da47ff37bd551f75e9
Signed-off-by: Loic Dachary <loic@dachary.org>
Changing defaults to milestones m2.1 values
Use the milestone branch
Feature to set admin key mode via hiera
Adding ceph::pool from rochaporto

Adding the ceph::pool feature which is not yet part of upstream:
https://github.com/rochaporto/puppet-ceph/blob/master/manifests/pool.pp
First try at hiera rspec tests
Working version of rspec with hiera
Removing rspec hiera.yaml from git
Ensuring sane hiera.yaml for rspec

Setting the default to the current examples/hiera.yaml and
resetting after the rspec tests

Conflicts:
	spec/fixtures/hiera.yaml
	spec/spec_helper.rb
Moving all the spec hieradata into fixtures

Conflicts:
	spec/fixtures/hieradata/hiera.yaml
Cleaning up after introducing hiera into spec

Conflicts:
	examples/nodes/first.yaml
	examples/nodes/second.yaml
	tools/deploy_node.sh
Adding spec tests for all profiles
Adding spec tests for all roles
Removing unnecessary require from spec_helper
Enhancing compatibiliy of spec tests

Now supports ruby 1.8.7 through to 2.0.0
Fixing linter warnings