Commit Graph

8 Commits

Author SHA1 Message Date
Emilien Macchi fb88544ab5 Re-boostrap beaker tests
Current puppet-ceph CI is broken for all functional jobs.
I would like to restart from scratch the way we test the module.

1) centos7: deploy Jewel using buildlogs.centos.org repo
CentOS SIG does not provide packaging to deploy the Jewel repository,
let's install it by hand.

2) Remove RGW tests for now. We'll re-add them later, in a
puppet-openstack-integration scenario.

3) Reset spec files to match with other Puppet OpenStack modules.

4) On CentOS, use systemd resource and not sysvinit.

5) Fix keyring idempotency with SElinux.

Change-Id: Ie9ba521cdb4ac6823746d37bb5d1697e274e4119
2016-07-07 16:27:14 -04:00
Gael Chamoulaud c287e4a0e9 Remove class_parameter_defaults puppet-lint check
Change-Id: I03ff193cac487e9564d53438699f66eaf3b3d412
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-12 12:30:39 +01:00
David Gurtner a8bccf57dd Clean the documentation for rspec-beaker
* remove warning when running without rspec-system
* make README.md and existing nodesets match
* remove the BUNDLE_PATH variable
* update gerritexec invocation

Change-Id: Ibe9c12dc4977f8c45077fb68cb3d0858cca44577
2015-08-05 12:53:12 +02:00
Sebastien Badia 94c8f1edfc Add puppet metadata.json lint
This commit adds the rake task `metadata_lint` for checks and lint
of puppet metadata.json file.

Change-Id: I68cb07dc8a7719325634a0c57fcb649f5379aec6
2015-02-28 22:10:53 +00:00
Sebastien Badia cf6478490e spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the new
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
in order to be prepared for rspec 3.x move.

In details:

  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)

Change-Id: I512ffe4ac12763ec5a4bea935001088bad231cc1
2015-02-27 13:41:44 +00:00
David Moreau Simard 1b884bdb38 Introduction of ceph installation and configuration management
* ceph is used to do the installation and configuration of
common dependencies across classes (such as ceph package
installation, global configuration namespaces in ceph.conf).

* ceph::params is meant to hold defaults/constants for various
classes and manage operating system differences in the future.

* ceph::osd, ceph::mon, ceph::mds are introduced solely to manage
their respective 'global' configuration for the time being.

It was decided that we leave most default configurations up to Ceph
unless they are necessary in installing the cluster.
As such, the configurations that are probably most likely to be
changed are available as parameters but optional. If they are not
set (undef), the ceph_config provider will not write them to
ceph.conf and thus, Ceph will handle the defaults.

Other configuration options (exotic or otherwise) can always be
set through the users' manifests with the help of ceph_config.
If support is required, we can always add them if necessary.

Change-Id: I0020a65fe1caada8bc46f6dc63254bcfefb64dbb
2013-11-15 17:08:59 -05:00
Loic Dachary 7557d5e8ee integration tests environment
Use https://github.com/puppetlabs/rspec-system-puppet to implement
vagrant based integration tests. The README.md is updated with
instructions to run the integration tests locally. These tests could be
run by a deamon listening to the gerrit stream, when a changeset is
submitted for review, to prove that they do not introduce a regression.

The dependencies from .fixtures.yml have been manually replicated to
spec/spec_helper_system.rb . rspec system puppet is still young and
people do this. It will be a burden only for long term maintenance. And
when it does, in a few months from now, it is safe to assume that rspec
system puppet will have support for reading from an existing file. The
alternative is that rspec system puppet is obsoleted / dead, in which
case this is even a bigger problem. In any case, if work had to be done
to fix this, it should be a patch against rspec system puppet and not
part of puppet-ceph.
https://github.com/puppetlabs/rspec-system-puppet/issues/5

A test for the ceph::repo class is included to demonstrate the
environment actually works. It is not meant to fully test the ceph::repo
integration this would require a separate patch. rspec-system-puppet
requires at least one file in spec/system otherwise it will fail with
an unrelated error:

   Could not autoload puppet/provider/ceph_config/ini_setting: undefined
   method `provider' for nil:NilClass (Puppet::Error)

This test can be removed as soon as another is added.

Change-Id: Ib65120a58ce203126be5897f602e280c474642dc
Signed-off-by: Loic Dachary <loic@dachary.org>
2013-10-27 13:44:11 +01:00
Dan 2183e90cd6 Add project files
This commit adds the initial project files.

Change-Id: If26c9a8d19e26181d568d615dc71bb4721fc4aa1
2013-10-20 22:45:54 -07:00