Commit Graph

11 Commits

Author SHA1 Message Date
ZhongShengping 9334bf41cb Dissuade .gitignore references to personal tools
Developers run all sorts of different tools within Git repositories,
any of which can leave their own special trashfiles all over the
place. We can't every hope to catalog them all, so better to
recommend developers simply configure a global core.excludesfile to
filter the irrelevant files which tend to get created by their
personal choice of tools. Add a comment block explaining this, for
clarity, and remove the one current editor-specific entry present.

We can, and should of course, continue to list files created by the
tools recommended by our workflow (test frameworks, documentation
and packaging builds, et cetera).

This change is a port of Ib58a57267b064e4142686de6c37a70dbff04b9a7
from the openstack-dev/cookiecutter repository.

Change-Id: I818e0bdeb949c6e0adf062951c0716635fecf555
2018-10-08 11:39:23 +08:00
ZhongShengping c3b2738e72 Update .gitignore
This patch[1] already explains why updating .gitignore

[1]https://review.openstack.org/#/c/466356/

Change-Id: I172ef064c1ce1ebdab96ada429276b89a0211e5b
Depends-On: Ifeaaa14c63158d0318218ca62ee41e98fc4c0b57
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-04-11 08:55:11 +08:00
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
Keith Schincke 2e676077ad The ceph extras location is no more.
From http://ceph.com/packages/ceph-extras/debian/
"The requested resource /packages/ceph-extras/debian/
is no longer available on this server and there is no forwarding
address. Please remove all references to this resource."

Change-Id: Ic37b3b047568418d70a49a72f5b77b5c42a330e7
2016-02-08 20:39:18 -05:00
David Gurtner 45d9124a55 Drop deprecated rspec-system tests and releases
This drops the rspec-system tests as well as the tests for
CentOS 6 and Ubuntu Precise.

Change-Id: I99336ae9f12324e8a83f9e7c3e18ef3b0b4b1050
2016-02-06 17:52:04 +01:00
David Gurtner e998f5dd28 Adding base infrastructure for beaker CI tests
Change-Id: Iad5984bd9eab24d2ff589fd6d70b3ed46bab56ec
2015-02-03 23:47:47 +01:00
Sebastien Badia 0dbce0d980 Switch to metadata.json for Puppet forge releases
Since puppet 3.x, Puppet Labs Forge accept only the metadata.json file
for module description (Modulefile is now deprecated).

This patch :
 - convert the Modulefile to metadata.json.
 - switch to stackforge namespace.
 - relax pe version_requirement to 3.x.
 - switch to SPDX license name.
 - fix open ended module dependency versions.

Change-Id: I7a91a6d6627d71f589f1393b0c2cd6e4e38ad0a6
2015-02-02 15:43:19 +01:00
thomas folgueral 833be3b7e6 add Gemfile-rspec-system.lock to .gitignore
Closes-Bug: #1334140

Change-Id: Ib06ca0f8d87b6e29689f60cdfd409f9cb656d5b6
2014-06-26 17:13:45 +02: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
Andrew Woodward 0383a1aea2 Add ceph_config ini helper
* add a ini_file helper as ceph_config.
* set the seperator as ' = ' in order to be the same as ceph-deploy
* add path param so that seperator can be easily tested.
** also allows for users to change the default path if desired.
* add test case to prove spacing around seperator.
* add simple test case to ensure type works.

Closes-bug: #1243852
Change-Id: I0f3bb41d75d48d8af3b5b7cfb7768c4d3de2c002
2013-10-25 10:22:01 -07:00
Dan 2183e90cd6 Add project files
This commit adds the initial project files.

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