18 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
12ce6b7631 dispersion: auth_key should be secret
Change-Id: Ida0029d1cfc9cf05db62e7b214098205f76d2c56
2022-04-25 18:52:09 +09:00
Tobias Urdin
801104f359 Change keystone v2.0 to v3
Change-Id: I54665604c9b9991e171cdae28cac57b0ec31735e
2019-02-24 13:56:44 +01: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
melissaml
93638f3696 fix typos in documentation
Change-Id: I3cfbd29b5fc9a5c6f53d2656b282f98a8d4df46c
2018-03-23 06:03:25 +08:00
Christian Schwede
e8f765dcde Tighten file permissions of dispersion.conf
The dispersion.conf contains a password, and should be readable only by
the swift user/group. The tool swift-dispersion-report also needs to
read swift.conf, and that file has already a mode of 640 - thus it makes
sense to use the same mode for this file.

Change-Id: Ia6b3c807b3103983a2dd370aad95c709358f43cc
2017-06-21 18:19:28 +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
Adam Vinsh
c659733d39 Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: I00cf4846bb933291469be94c9debed425eddf798
2016-05-25 08:52:47 -04:00
Adam Vinsh
056e2579bd Add keystone to swift-proxy, use dispersion-report
The existing acceptence test configures keystone on the swift node
but does not configure the swift service to use keystone.  This change
adds the neccesary middleware to the proxy node to actually use keystone.
Further proof of keystone working is acheived by enabling the
swift-dispersion-report class which uploads test objects to swift
after first authenticating with keystone.  This change also updates the
call to keystone used by the dispersion class to an updated format.

Change-Id: Ibf97762f9b19c0ccb72178b04a1a86028bab8bcf
2016-05-23 16:44:30 +00:00
Emilien Macchi
47ac5095b3 Stop managing file modes
File modes should be managed by packaging, not by Puppet.
This patch aims to stop managing File { mode => } parameters.

Partial-bug: #1458915
Change-Id: Ic38317521ac4a91bfdf234ecb4c74e4b00e3d887
2015-09-28 12:11:27 -04:00
Yanis Guenane
a72e27f83c Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: Icb3464cc0a747d40326d610d38806d059c9a0fc3
2015-08-13 09:54:06 +02:00
Sebastien Badia
dc8657e203 Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins. Most of these plugins are for 4.x compat, but some
just catch common errors.

Change-Id: I9b41f170a782fecf88f241dc12288670b552b433
2015-03-25 13:46:00 +01: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
Emilien Macchi
6aa573e49a dispersion: add endpoint_type parameter
This parameter is needed to perform a clean object dispersion.

Change-Id: I1c17f49b22fd2b30c022d27a2bc20ce0bd150240
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2014-01-27 22:28:08 +01:00
Mathieu Gagné
ba6abfa6c7 Use swift_dispersion_config
Use swift_dispersion_config to configure dispersion.conf

Implements: blueprint puppet-swift-ini-settings
Change-Id: I521eefa88e943858f850727f0e57ca35c6b695f2
2013-09-04 20:04:44 -04:00
Mehdi Abaakouk
45edcd61de Ensure python-swiftclient is installed to use swift-dispersion
Change-Id: I03a27989bbcb957227ca2ab1f5c54420b29bb24a
2013-04-10 09:56:52 +02:00
François Charlier
22d2f61289 Add swift-dispersion configuration
* Add config file for swift-dispersion-populate & swift-dispersion-report
* Add creation of keystone user for swift-dispersion
2012-06-04 21:46:18 +02:00