19 Commits

Author SHA1 Message Date
Takashi Kajinami
109cd356de Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I4c0a9357fcc4184df852024e1f6f36c0ed2e1440
2023-03-02 14:47:43 +09:00
Takashi Kajinami
be26baa863 Remove logic for CentOS < 9
... because RDO supports CentOS Stream 9 (aka CentOS 9) only since Zed.

Change-Id: I9f1faaaf8481da40992e5ccf3cc0c7a66f4811ea
2022-11-21 05:06:44 +00:00
Takashi Kajinami
5705d49a95 Remove logic for Puppet < 4.3
... because now only Puppet >= 6 is supported.

Change-Id: Ic422c350ce631f2a1d8f9133ee253219c86dbb74
2022-08-16 01:26:38 +09:00
Takashi Kajinami
5a7a299a54 CentOS9: Fix unit tests related to use_xinetd
This is a follow-up of 053a3a2a56723e0ec43d1855ac7615657a4de8f0 and
fixes the expected unit test failures in CentOS9.

Change-Id: I3554e2dcea18c9bd07afc46925051e230d14f2c8
2021-12-23 00:03:23 +09:00
Shi Yan
ff9608a8c1 Support to configure rsync max_connections and not use xinetd for rsync
Change-Id: I40f4e7f2c81cebf8213057a341ef81f7f3d09d1e
2020-05-27 09:38:55 +10:00
Tobias Urdin
e7d670b13a Fix rspec-puppet-facts testing
Moves all spec tests over to using rspec-puppet-facts
and runs the tests for all our supported operating systems.

Change-Id: Ie2d60acac835affaf46a5276c9755640a723bca4
2018-05-19 14:17:20 +02:00
Sofer Athlan-Guyot
a5e15bbf4a Include openstacklib defaults manifest.
This provides a mechanism for setting default across all modules.

Change-Id: Ie7e3ab180b8f55db698f14f269d5f50b4512b187
Related-Bug: 1599113
2016-07-11 11:24:57 +02:00
Iury Gregory Melo Ferreira
2d84cf4e16 Remove deprecated swift_hash_suffix
swift_hash_suffix was deprecated in Mitaka and
should be removed in Newton.

See http://docs.openstack.org/icehouse/config-reference/content/swift-general-service-configuration.html

Change-Id: I3b5c55607bcd8a2aa5288cdfefa96a152d1682cb
2016-06-03 12:55:02 +00:00
Denis Egorenko
5785a2895f Do not use any specific service provider for ubuntu
Let's do not hard code some service provider names for Debian
as it done for RedHat OS.

Change-Id: I95b52432723c1d2ed10fb7ab78df57869127cfeb
2016-05-13 18:59:59 +03:00
Gael Chamoulaud
80eff15738 Fix unit tests failing against Puppet 4.3.0
This patch only fixes the rspec tests issues related to PUP-2315 [1] but
others issues cannot be fixed right now because we are actually facing a
Puppet 4.3.x bug [2] which will be fixed in the Puppet 4.4.x release.

[1] - https://tickets.puppetlabs.com/browse/PUP-2315
[2] - https://tickets.puppetlabs.com/browse/PUP-1985

Change-Id: I52c58dfda16331bff176a7af46c912022fd684fa
Related-bug: #1518871
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2016-04-12 20:24:19 +02:00
Richard Raseley
00d10f1c3e Removal of SSH Components
This change removes all SSH-related components, their configuration
options, and tests.

SSH is such a low-level service (from the perspective of any operator
deploying a cloud), that it is reasonable to assume that (or provide
direction that) SSH must be installed and configured prior to usage of
the puppet-swift module.

Without this change, there is a significant liklihood of confusion
occurring in the likely case of SSH being managed elsewhere.

Change-Id: I0f695788b2784669a3fb285e4bedf0159c4cb89a
Closes-Bug: 1447259
2015-04-24 17:23:53 +02:00
Sebastien Badia
f4cfe8e8e4 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
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:
  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * 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)
  * Remove un-used puppet-lint (name_containing_dash config)

Change-Id: I5488507176d4665895eef65ddb4b6f0fb4eda3e7
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-03-24 15:22:16 +01:00
Branan Purvine-Riley
eef6b12f44 Replace expect..should with expect..to 2012-07-12 15:24:03 -07:00
François Charlier
a5788bae83 Disable 'use chroot' for rsync::server
Allow to keep the right username/groupname for rsync'ed files if the
uids and gids are not in sync on all the servers
2012-06-19 16:16:24 +02:00
Dan Bode
cd33a745c5 Add fedora support
This commit adds support for fedora.

It introduces a params namespace class
to hold data differences between ubuntu and fedora.

It also moves the xfs packages into their own class (swift::xfs)
2012-03-20 12:55:34 -07:00
Dan Bode
f07363b6af Update spec tests
This commit updates the spec tests so that they should work.

- the ssh module that they depend on had introduced a dependency on
  the operatingsystem fact
- tests had not been updated to reflect using xinetd and not the service
to run the rsync daemon
- update travis-ci to include the xinetd module
2012-03-13 16:30:19 -07:00
Dan Bode
5083e19bc4 Decouple storage server types from each other
Previously, all of the storage server types
(account, container, proxy) were always
configured to be installed on the same node.

It often makes sense to only have the account and
container together, and to put the object server on
a different node. (or its possible that other
configurations make sense)

This commit refactors the swift module so that
each of the types of nodes can be built
independently of each other.
2012-03-02 20:01:49 -08:00
Dan Bode
4775be3a5f Add rspec-puppet test coverage
This commit adds test coverage for almost all
swift classes and defines.

It does not quite add 100% coverage (probably
more like 85%)
2012-02-26 20:52:27 -08:00
Dan Bode
47d49e7780 Initial commit.
This initial commit only targets a single node
swift install on Natty based on 1.4.6
2012-01-19 18:58:37 -08:00