303 Commits

Author SHA1 Message Date
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
François Charlier
ff2c6fc3b9 Fix a typo to define Debian's service provider.
Plus, the special case being Ubuntu, set a special service provider on
Ubuntu and keep undef for Debian, which is the way it behaved because of
the typo :)

Change-Id: I724ac07c96de6b9242721fb2915805024646c769
2013-05-14 09:39:02 +02:00
Mathieu Gagné
3e4835f340 Remove swift::params include
This class does not need swift::params. Furthermore,
swift::params is already provided by parent class swift.

Change-Id: I351331b01f81e224a37c4f5df64aa09d17939605
2013-05-13 13:50:34 -04:00
Mathieu Gagné
163c7b1abc Use boolean instead of string
Change-Id: Ieb768a79d6b4fd4f574b71c51e64f828f8d3316b
2013-05-09 23:21:06 -04:00
Mathieu Gagné
93f5765bb2 Replace deprecated :rubygems source
Fix deprecation warnings thrown by bundler:

  The source :rubygems is deprecated because HTTP requests are insecure.
  Please change your source to 'https://rubygems.org' if possible,
  or 'http://rubygems.org' if not.

Fixes: bug #1175767
Change-Id: I9d8b0a39a81feda0d406e397cda01e8c6aad1f27
2013-05-02 16:30:38 -04:00
Mehdi Abaakouk
a9ec8e1c2d Fix swift-ring-builder for swift 1.8
In some case, there are no spaces before - of the balance in swift 1.8.
The change fix this.

/etc/swift/object.builder, build version 9
32768 partitions, 3.000000 replicas, 1 regions, 3 zones, 9 devices, 200.00 balance
The minimum number of hours before a partition can be reassigned is 24
Devices:    id  region  zone      ip address  port      name weight partitions balance meta
             0     1     1      10.68.0.45  6000       sdd 100.00      32768 200.00
             1     1     2      10.68.0.46  6000       sdd 100.00          0-100.00
...

Change-Id: Ic7757a22ce94e4d51ae11780d4626c90a9ed430f
2013-05-02 14:17:26 +02:00
Derek Higgins
e6591fdd49 Use new keystoneclient middleware.
Change-Id: I04bba12dbe765b4ee16d026a37dbb26f737822f1
2013-05-01 06:12:19 -04:00
Jenkins
a8f84b5548 Merge "Add the ceilometer middleware" 2013-05-01 03:37:56 +00:00
Jenkins
7ce927d417 Merge "Add address params to the swift::keystone::auth" 2013-05-01 02:49:40 +00:00
François Charlier
015be53c81 Add the ceilometer middleware
Change-Id: Ibcdaa1218c8d027dc3e4b6d2cd394e9d0af8c6da
2013-04-29 10:30:33 +02:00
Derek Higgins
90f58f8f92 Start swift support services on Red Hat
Now starting these services on all distros
swift-account-auditor swift-container-auditor swift-object-auditor
swift-account-reaper swift-container-updater swift-object-updater

Change-Id: I98cfcef3b43a2bdad6f359e4e4098a6113245353
2013-04-24 06:16:59 -04:00
newptone
004b8b4148 Add address params to the swift::keystone::auth
Fix bug 1170194

   This patch contains:
       * add param admin_address and internal_address
       * fix tab misusing

Change-Id: Id3865240a3d5d289c557fd8cc51d6f1d77057ed8
2013-04-24 16:13:04 +08:00
Jenkins
9a3a0b7c24 Merge "Fix warnings in storage/server.pp." 2013-04-22 11:50:21 +00:00
Dan Prince
4d73d3a6cd Drop the swift TODO file.
This file looks pretty outdated. Lets just drop it to avoid
confusing people.

Change-Id: I84c8c85e3cf73224bfb4983f284e1a8e57d23e5d
2013-04-20 22:33:16 -04:00
Dan Prince
bdbcf5ca88 Fix warnings in storage/server.pp.
Updates the swift storage/server class so that we quote $pipeline
before doing a comparison check for the server type. This fixes
an issue where warnings would always get printed when using the
default $pipeline variable.

Fixes LP Bug #1171052.

Change-Id: I3076b6110f1a42c0e6c179d18952b0b013908f01
2013-04-20 22:29:57 -04:00
Derek Higgins
9759682213 Set hasstatus => true for proxy services
Fix bug 1170711

notifies to proxy services on RHEL were not causing a restart of the service

Change-Id: Ia2c4df9135daa80380c4aec0627605d5afb88386
2013-04-19 10:07:46 -04:00
Jenkins
3daaef0ea0 Merge "Drop Swift requirement on keystone:python." 2013-04-16 02:25:12 +00:00
Dan Prince
d384093080 Set config_file_path in storage::node.
This change makes it so that storage::node sets config_file_path
for each of the services correctly. Previously this would cause
swift config file fragments to get written to
/etc/swift/<service>/600?.conf instead of /etc/swift/<service>.conf.

Fixes config issues for me on Fedora when using swift::storage::node.

Change-Id: I8d0ce87a545af805e24c5594b437483f9b479c9d
2013-04-12 08:05:48 -04:00
Dan Prince
9d7ba981d1 Drop Swift requirement on keystone:python.
I believe this requirement was added to obtain support auth_token
middleware (keystone auth support). This is now provided via
keystoneclient.

Since this requirement no longer works we should drop it since
it is heavyweight to install keystone source code on all the
swift proxies.

Most packages automatically require keystoneclient as well so
we can probably ignore automatically adding this dep in here. I'm open
to doing that if we thing it worthwhile... but we'll first need to
make a keystone::client module to support it.

Change-Id: I2a85ea964d2b9e1a93c3ec0ba8de31b188c140ea
2013-04-12 08:05:00 -04:00
Jenkins
879f310836 Merge "Fix swift_ring_builder output parsing." 2013-04-11 19:34:01 +00:00
Jenkins
58da32e498 Merge "Fix swift storage service start on debian" 2013-04-11 18:25:24 +00:00
Jenkins
9ad39d5fdc Merge "Remove traling / from keystone admin_url endpoint" 2013-04-11 17:16:20 +00:00
Jenkins
33918e1978 Merge "RHEL/Fedora replicator updates." 2013-04-11 16:54:06 +00:00
Jenkins
3c741a78d5 Merge "Update keystone fragment to use egg." 2013-04-11 16:48:36 +00:00
Dan Prince
bee081b5b6 Fix swift_ring_builder output parsing.
Updates the swift_ring_builder so that it parses ring builder output
from the most recent Swift releases correctly (1.7.6 or greated).

Backward compat for the previous parsing is still supported.

Change-Id: I4263b349310e16f6825960805eb27e4bfe3ff002
2013-04-11 11:37:38 -04:00
François Charlier
e8a478df59 Remove traling / from keystone admin_url endpoint
Change-Id: I567c3dbb4f4e498365074fd64a5f70395c6f7cd7
2013-04-11 16:14:38 +02:00
Dan Prince
ab00ec58e2 Update keystone fragment to use egg.
Update keystone.conf.erb to use egg:swift#keystoneauth.

This resolves issues in trying to configure keystone with the
latest Swift releases.

Change-Id: Idf160eb143150bed9a9c7081a6900c6169887be8
2013-04-11 10:03:43 -04:00
Mehdi Abaakouk
0dcde3563a Fix swift storage service start on debian
Some services only start on ubuntu system,
so add debian support for that services

Change-Id: I6e050af98fda5e162278130b4e1116402c3d2ae3
2013-04-11 08:50:55 +02:00