110 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
9ad39d5fdc Merge "Remove traling / from keystone admin_url endpoint" 2013-04-11 17:16:20 +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
Jenkins
adf2b988c4 Merge "Allow customise log_facility in storage server configuration" 2013-04-11 06:25:42 +00:00
Jenkins
d1f1e9b8c9 Merge "Ensure python-swiftclient is installed to use swift-dispersion" 2013-04-11 05:17:12 +00:00
Mehdi Abaakouk
e437b44d44 Allow to have a different internal address and public address
Change-Id: Id87323393a3bfd0ac3c9bc80fa2f46775e102eea
2013-04-10 10:03:41 +02:00
Mehdi Abaakouk
45edcd61de Ensure python-swiftclient is installed to use swift-dispersion
Change-Id: I03a27989bbcb957227ca2ab1f5c54420b29bb24a
2013-04-10 09:56:52 +02:00
Mehdi Abaakouk
b634c440ca Allow customise log_facility in storage server configuration
Change-Id: I4c698b7657dde1d0f1ba6b4043ca9ce992dcdb56
2013-04-10 09:54:05 +02:00
Dan Bode
0602fb5dfe fix failing tests
this fixes some tests that are failing b/c of some puppet 3.x changes
in the way that deps of containers propogate to the contained resources.
2013-03-21 23:15:10 -07:00
Dan Bode
26c270f164 Merge pull request #83 from enovance/sileht/pr/publicport
Allow to have a different internal port and public port
2013-01-15 13:33:45 -08:00
Dan Bode
3d2462bd78 add upstart symlink
the service upstart provider does not
work unless the init script is a symlink
to /lib/init/upstart-job for at least older
versions of Puppet.

This commit adds this symlink to avoid
run time apply failures.
2013-01-11 14:47:21 -08:00
Dan Bode
b5290c4f9b Remove leading set from config
one of the config settings previously
contained a leading set before a config
setting.

This does not convert to the ini file format AFAIK, so
it has been changed.
2013-01-11 14:12:04 -08:00
Dan Bode
a467efdc46 level up swift test file
improve the file used to test swift.

convert into a template.
create a class to configure and deploy it.
2013-01-11 12:21:16 -08:00
Dan Bode
b379804ca9 fix bug setting device
The device set for the storage mount point was
hard-coded to /dev/$name. This value is only
valid when no device is supplied to the storage
xfs setup.

This commit updates it to use the target_device
which is either the device that was passed, or
/dev/$name if not device is specified.
2013-01-07 11:07:20 -08:00
Mehdi Abaakouk
4f77fa42ad Allow to have a different internal port and public port 2012-12-20 11:58:10 +01:00
Dan Bode
908c82ed6b Merge pull request #74 from fcharlier/fc/dispersion_with_tenant
Update swift::keystone::dispersion
2012-12-12 10:32:23 -08:00
Dan Bode
11a841ee99 Merge pull request #78 from Mirantis/create-swift-user
Create swift user and home directory
2012-12-11 21:49:45 -08:00