10 Commits

Author SHA1 Message Date
Chris Ricker
2cce66ef44 swift classes need to include swift::params
Some of the swift classes use parameterized settings defined in
swift::params but do not include the swift::params class.

Change-Id: I7704bf42db4554566d27b510bbbedb8afe0fe7b3
Closes-Bug: #1288252
2014-03-05 08:58:10 -08: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é
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
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
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
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
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
Sergio Rubio
5d68f7e260 Prevent some race conditions by requiring the storage server package 2012-09-24 15:22:16 +02:00
Sergio Rubio
403a88a05f Manage missing Swift storage server services
Before this fix the following services where missing:

    root@swift-storage-01:~# swift-init status all|grep ^No
    No container-updater running
    No account-auditor running
    No object-auditor running
    No object-expirer running
    No container-auditor running
    No account-reaper running
    No container-sync running
    No object-updater running

After this commit:

    root@swift-storage-01:/etc/init# swift-init status all|grep ^No
    No proxy-server running
    No object-expirer running

It's OK for the proxy-server to be stopped since it's a storage
.
You only need to manage one object-expirer per cluster, so this not

place to manage it either. See:

http://docs.openstack.org/developer/swift/overview_expiring_objects.html
2012-09-20 11:10:18 +02: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