330 Commits

Author SHA1 Message Date
Mathieu Gagné
0f7601a358 Deprecate classes with hyphens
Puppet does not recommend the use of hyphens in class names.

This change deprecates classes with hyphens and inform the users
to use the new ones. Backward compatibility is preserved.

Change-Id: I4991c956e297d76423a805558d9b6731473a4a51
2013-08-28 20:19:14 -04:00
Jenkins
943c2f0c6e Merge "Fix puppet-lint warnings about ensure" 2013-08-28 18:10:27 +00:00
Dan Prince
c89e327fb8 Use swift_config to configure swift.conf
This change also adds an autorequire in the swift_config
type to ensure the /etc/swift/swift.conf exists.

Change-Id: Ic591a3ceb040c4599339ed7f750a5273d2052ac1
Implements: blueprint puppet-swift-ini-settings
2013-08-26 20:54:06 -04:00
Dan Prince
f10bcda7e6 Revert "Use swift_config"
This reverts commit e7bb58e6ba39d7daeee9069c83451f8898d8a424.

Fixes LP Bug #1216881.

Change-Id: I65109b8bfeeb2f59971dadbdb14ec47b1fc82a89
2013-08-26 08:12:07 -04:00
Jenkins
d9d0917112 Merge "Use swift_config" 2013-08-26 08:05:28 +00:00
Jenkins
706f23df65 Merge "Fix puppet-lint warnings about double quoted string" 2013-08-26 05:49:42 +00:00
Mathieu Gagné
e2ff7b2a7a Fix puppet-lint warning about top-scope variable
Fix "top-scope variable being used without an explicit namespace"

Change-Id: Id397dacd1072e31bfb21d9d0ed60cff1bc57f06e
2013-08-25 23:37:54 -04:00
Mathieu Gagné
b8a225c9a0 Fix puppet-lint warnings about double quoted string
Fix warning: "double quoted string containing no variables"

Change-Id: I649bdcf11273de631c0060178776d64e329e2445
2013-08-25 23:37:19 -04:00
Mathieu Gagné
0098067226 Fix puppet-lint warnings about ensure
Fix warning: "ensure found on line but it's not the first attribute"

Change-Id: Iecc0cd4fe267c40fbef9a84ff1da2eaff5aa45a7
2013-08-25 23:29:34 -04:00
Mathieu Gagné
e7bb58e6ba Use swift_config
Use swift_config to configure swift.conf

Implements: blueprint puppet-swift-ini-settings
Change-Id: I3cb4b4f6f5586216e503dfe9b66b5e2e457cc90f
2013-08-25 23:22:05 -04:00
Jenkins
97a921947b Merge "concat module was moved from ripienaar to puppetlabs" 2013-08-16 18:13:56 +00:00
Colleen Murphy
84d645883b concat module was moved from ripienaar to puppetlabs
Change-Id: I2fa378d99fd250fbfe77caa286db24ee968ec9be
2013-08-16 00:41:26 -07:00
Jenkins
bf34ca881b Merge "Improve Proxy Signing Directory Support" 2013-08-15 17:57:27 +00:00
William Van Hevelingen
64ff379fad Validate that swift zones are integers.
As per the docs, zones are numbers starting at 1.
http://docs.openstack.org/developer/swift/deployment_guide.html#preparing-the-ring

Change-Id: I9bcc1616ad266b09ae4be65bf35b31ea0a455af7
2013-08-13 16:19:04 -07:00
Mathieu Gagné
418e7c736b Disable 80chars/class_parameter_defaults checks
* Disable warnings for "line has more than 80 characters"
* Disable warnings for "parameterised class parameter without a default value"

We do not wish to track warnings for such violations.

Change-Id: Id4e7ab198575ebe8e0c6cb8803ab96495bac1d65
2013-08-12 17:50:21 -04:00
Daneyon Hansen
f71d159c4d Improve Proxy Signing Directory Support
1. The signing_dir was being created on every swift node
when it's only needed on proxies:

  http://docs.openstack.org/grizzly/openstack-compute/install/apt/content/installing-and-configuring-the-proxy-node.html

2. The signing_dir was not configurable, even though
the OpenStack doc's show multiple references
(/var/cache/swift and /home/swift/keystone-signing).

Change-Id: I3eb00046fc535a32d7a1800d15489e9fe071373b
2013-08-12 18:39:15 +00:00
Donovan Finch
a1a0a89ad1 Remove puppetlabs-create_resources dependency.
Puppet 2.7 includes this functionality in core, and 2.6 is EOL.

Change-Id: I59cc9a6775d0d8a9a146903d64d2891b5b677630
2013-08-09 16:54:01 -07:00
Robert Werfelmann
a08b743807 Fixed some spelling errors
Change-Id: I05f76d9b86aadc1a8d1f0d32d96b4c1bacde62cd
2013-08-09 13:14:02 -07:00
Connor Kaz
77ba94db56 Update fixtures.yml to use puppetlabs/xinetd
Change-Id: Ic168bb312f68b17f6c699d915f4d8d42f72613a9
2013-08-08 18:30:49 -07:00
Chris Hoge
f8b36489f4 Puppet Forge release 2.1.0
Updated README.md for Puppet Forge release 2.1.0
Updated Modulefile to version 2.1.0

Change-Id: Ia0c2d4c8079f825e163291e1d4ff23b0d16616e4
2013-08-07 18:19:12 -07:00
Bradley Rasmussen
63c3fc3463 Update modulefile and fixtures to use puppetlabs/inifile
cprice404/inifile was moved to the puppetlabs namespace on the forge
and github.

Change-Id: I853d6056273ccfeff7f03fc522afbaa6f4801b1f
2013-08-07 16:04:24 -07:00
Mathieu Gagné
178f4b18dc Various Puppet lint fixes
* Fix following warnings:
    * double quoted string containing no variables
    * indentation of => is not properly aligned
    * mode should be represented as a 4 digit octal value or symbolic mode
    * string containing only a variable
    * top-scope variable being used without an explicit namespace
    * unquoted file mode
    * variable not enclosed in {}
* Fix following errors:
    * trailing whitespace found
    * two-space soft tabs not used
* Remove quotes around class in include/require statements

Change-Id: Ia920d848e1955612a6486ec8731309e6d3a70f63
2013-08-02 11:51:57 -04:00
Dan Bode
cb2e06556d Add signing dir
Currently, my swift installation fails with the following
error message:

  [Errno 13] Permission denied: '/root/keystone-signing

and the proxy server can never service requests.

This is b/c by default the client side directory for
pki-signing seems to use $HOME. This commits sets the
directory to be /var/cache/swift/ and resolves my
swift-proxy issues.

Change-Id: Ice904a9d53432ba1a1ae9516cd0ee6204ade63bb
2013-07-29 07:21:48 -07:00
newptone
b4584daaae Add configurable log for proxy-server service
This patch add configurable log for swift proxy-server service.
And add related spec test.

Partially implements blueprint puppet-swift-log-support.

Change-Id: I385093b3e63f8210d83ec125e6d2578b06b631d4
2013-07-26 04:33:23 +00:00
Mathieu Gagné
e41a552afe Add ini_setting based custom types for configs
Previous configuration file management method used templates.
This method had limited flexibility and was cumbersome
to use and maintain between upstream versions.

This change introduces new custom types based on ini_setting:
  * swift_account_config: /etc/swift/account-server.conf
  * swift_bench_config: /etc/swift/swift-bench.conf
  * swift_config: /etc/swift/swift.conf
  * swift_container_config: /etc/swift/container-server.conf
  * swift_dispersion_config: /etc/swift/dispersion.conf
  * swift_object_config: /etc/swift/object-server.conf
  * swift_proxy_config: /etc/swift/proxy-server.conf

The use of ini_setting offers multiple advantages:
  * Ability to individually manage configuration settings without
    the need to modify templates. This allows the user to manage or
    override settings that aren't handled by the module.
  * Use upstream default values if none is provided.
  * Remove the need to maintain and synchronize templates
    to match upstream versions. Such maintenance could become
    problematic and complicated if multiple upstream versions
    are supported but have different base configuration files.

Implements: blueprint puppet-swift-ini-settings
Change-Id: Iba7be64581b81b8ab4f33cf7096df37e64ccc4b4
2013-07-25 10:19:30 -04:00
Jenkins
503d3e41c0 Merge "Added the allow_versions flag to enable/disable object versioning in swift object container" 2013-07-22 15:59:07 +00:00
Francesco Vollero
4d96d896ca Added the allow_versions flag to enable/disable object versioning in swift object container
Change-Id: Id78be1a8c3dccd550c92204c4aaa1cf32edcbf61
2013-07-19 16:40:13 +02:00
newptone
6a0e505ee9 Add configurable log for storage server
This patch add configurable log for swift account/container/object
server service.
Partially implements blueprint puppet-swift-log-support.

Change-Id: Ib3db483dfbad97f23ab7ba2068632856b5e00f11
2013-07-18 02:33:07 +00:00
Mathieu Gagné
c8936fea9b Use @ notation for ERB template variables
Fix Puppet 3.2 deprecation warnings (see Puppet #19058)

Change-Id: I0da9696499bce281ad258cbf0e88bd57f7dde76f
2013-07-17 14:33:00 -04:00
Newptone
45cec2d3fb Add swift::bench to manage swift-bench.conf
This patch adds a conf file swift-bench.conf
for swift performance bench, and add a spec
test for it.

Fixed bug 1188968

Change-Id: Iafb67f116a9403bba96328be7c9c09d21a65a74c
2013-07-05 11:50:27 +08:00
William Van Hevelingen
75e29ee2be Fix Puppet 3.2.x deprecation warnings
Change-Id: I4f6075fb189474ee071fa9b80944a5fe5c062193
2013-07-12 15:40:02 -07:00
Mathieu Gagné
6d6e35d284 Remove "v" from mysql dependency version
Change-Id: Ia0b78d8307711e5acbfa001dacca969e7cf9d81a
2013-06-25 12:46:58 -04:00
Cody Herriges
ee80f1c7d6 Puppet Forge release 2.0.0
Marks the commit that the branch stable/grizzly and the 2.0.0 tag is
  cut from.  Also adds the pkg directory to .gitignore to prevent
  accidental committing of Forge artifacts to the repository.

Change-Id: Iada3bcfd9e685fcc9c54891244514a3303531114
2013-06-24 21:34:52 -07:00
Chris Ricker
fb293273ea Unset default signing dir
Unset default signing dir to allow the keystoneclient to set its own.
The specified /etc/swift location is not ideal and breaks on recent
keystoneclients

Change-Id: I16aadb77ee85e84645fe6745760a2c6edee49c2b
2013-06-24 19:57:24 -07:00
Cody Herriges
d945c1f979 Prepare repository for a Puppet Forge release
Commit updates README.md with a consistent template for documentation,
  removes travis.yml since we're on stackfoge now, updates the
  Modulefile for release, removes CHANGELOG in favor of summarized release
  notes in the README that will be viewable on Forge for the new
  release, and moves examples to tests to adhere to Puppet Labs Style
  Guide (http://docs.puppetlabs.com/guides/style_guide.html#tests).

Change-Id: Ic7e672eb6240b0acce7384706aa79b430bd2b003
2013-06-18 14:41:29 -07:00
Émilien Macchi
c1361de739 Add xinetd puppetlabs module as a new dependency
Change-Id: Ie0084a1ddacde3c8eba07472519784cf80129879
2013-06-18 20:33:31 +02:00
Jenkins
0d2ceb8d14 Merge "Add auth_admin_prefix and custom auth_uri params" 2013-06-17 04:48:57 +00:00
newptone
d339eb4937 Add swift::storage::disk to support disk device.
It aim to support to use the disk device as the swift storage backend,
this pathch contains:
    * a new define with three params
    * annotations and examples for this define
    * a new spec test

Change-Id: I92f13992a02b9cff0f29bde3266a92f37bf63d13
2013-06-12 14:14:17 +08:00
Newptone
b0f4834165 Fix dependency problem in class swift
Class swift requires class['ssh::server::install'], otherwise it will
complain and fail to compile the catalog.

Change-Id: Ieeef735cc3e78bb6a6b514c711e5b87a861ee31b
2013-06-10 18:32:41 +08:00
François Charlier
09a78bfd9d Add auth_admin_prefix and custom auth_uri params
auth_admin_prefix allows the prepend of a prefix to the URL used for
admin tasks.  See: https://review.openstack.org/#/c/7156/ for
implementation in Keystone.

auth_uri allows to specify the public authentication url (Keystone's
public endpoint) if it can't be guessed from $auth_host + $auth_protocol

Implements blueprint serve-keystone-from-wsgi

Change-Id: Ic66727f78406d70b5ab5bc07fcc074477df2303c
2013-06-05 20:50:37 +02:00
Jenkins
aac6528f70 Merge "Customizable allowed_sync_hosts in container-server.conf" 2013-06-05 04:58:25 +00:00
Jenkins
fad2a8fc40 Merge "Ensure xfsprogs and parted are not already installed" 2013-06-03 23:06:22 +00:00
Jenkins
003c15703e Merge "Use boolean instead of string" 2013-05-31 19:28:05 +00:00
Radim Kubacki
3a0413f7f5 Customizable allowed_sync_hosts in container-server.conf
Insert default value into .conf file (127.0.0.1) or use
custom value if specified.

Change-Id: I9caec9657a2a3ad789b7dab646e505f609c25655
2013-05-29 12:39:21 +02:00
Mehdi Abaakouk
ead48deedd Ensure xfsprogs and parted are not already installed
Change-Id: I9c26d9dca2c5e69112776fb033fca8d8660f6179
2013-05-23 12:07:22 +02:00
Jenkins
4c990fd894 Merge "Add puppet-lint to Gemfile" 2013-05-22 00:25:18 +00:00
Mathieu Gagné
f520d4e548 Add puppet-lint to Gemfile
Change-Id: I43a156e119742fe598796053da149e2f3c6dd465
2013-05-21 19:43:34 -04:00
Dan Prince
ee4a9d4859 Update swift_ring_builder to support replicator...
Updates swift_ring_builder rebalancing parsing to support the
latest upstream replicator_id and replicator_port changes.

This correspondes with swift 1.8+ upstream development.

Fixes LP Bug #1182197.

Change-Id: Ibbaf75ca22cad95b22f9b5f03b547db8c47a9ea4
2013-05-20 15:46:28 -04:00
Jenkins
c43a47a0ea Merge "Use new keystoneclient middleware." 2013-05-19 02:27:18 +00:00
Jenkins
63c550fbcd Merge "Fix swift-ring-builder for swift 1.8" 2013-05-18 07:09:28 +00:00