20 Commits

Author SHA1 Message Date
Sebastien Badia
21f9eff35c Add client_package_ensure parameter and swift::client class
In the actual state of the manifest we can only setup package_ensure to
absent|present|latest. This commit allow end users to pin swift* and
swift-client to a specific version. (note that swift* and
python-swiftclient version are not the same).

A new class (swift::client) manage now client packages, and we keep the
retro-compatibility of commit 020b7723cbbe75fbcae89514a1e1882ae807fb27.

Change-Id: I9bcc5a0f9d0a93a812fb574c4571fb9584077e4a
2014-03-06 02:09:52 +01:00
David Moreau Simard
449fd78f48 Remove redundant user ownership declaration and ensure spec test coherency
swift is already set as a owner for File[] resources. This is a
simple cleanup that removes a redundant user declaration. The spec
tests did not verify that default File[] values were applied to
/var/lib/swift.

Change-Id: I608ef39ca8bbf78ca8029a65979db659184baa3f
2014-01-09 11:48:04 -05: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
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
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
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
Dan Bode
f97f8c5412 Merge pull request #77 from Mirantis/avoid-duplicate-package-swift
Avoid duplicate package swift.
2012-12-11 21:50:09 -08:00
Eugene Kirpichov
52753b9508 Create swift user and home directory 2012-11-30 19:44:17 +04:00
Vladimir Kuklin
31aa020b0f Avoid duplicate package swift.
A duplicate can appear if installed on the same node with
openstack::glance with glance_backend=swift, which also installs
this package for client utilities and libraries.
2012-11-30 19:37:44 +04:00
Joe Topjian
020b7723cb Several changes:
* `python-swiftclient` is now installed by default.
* Fixed swift3.
* Fixed s3token.
* Recreated authtoken - it used to be configured in the Keystone module.
* Created proxy-logging filter
2012-11-01 17:48:12 -06:00
Sergio Rubio
2bb6be25bd Create /var/cache/swift directory
Default directory for middleware like Swift-recon
2012-10-02 11:13:45 +02:00
Dan Bode
cd33a745c5 Add fedora support
This commit adds support for fedora.

It introduces a params namespace class
to hold data differences between ubuntu and fedora.

It also moves the xfs packages into their own class (swift::xfs)
2012-03-20 12:55:34 -07:00
Dan Bode
954e6c0357 Remove reference to ssh keys
Swift does not need to have keys. This commit
removes the ssh keys.
2012-03-02 10:35:02 -08:00
Dan Bode
e9dfe0f8e5 Improve documentation
Improves README and inline docs, comments
2012-02-14 15:05:35 -08:00
Dan Bode
18d681943e Add inline docs to manifests
This commit adds some initial inline documentation
of the manifests.

It also performs some basic whitespace cleanup.
2012-02-13 15:39:18 -08:00
Dan Bode
47d49e7780 Initial commit.
This initial commit only targets a single node
swift install on Natty based on 1.4.6
2012-01-19 18:58:37 -08:00