207 Commits

Author SHA1 Message Date
Dan Bode
e9f9c99fe8 Merge pull request #73 from derekhiggins/https_endpoint
Adding the ability to specify https for the public endpoint
2012-12-03 14:42:38 -08:00
Dan Bode
c7051ff486 Merge pull request #75 from rubiojr/s3token-syntax-error
Fix syntax error in s3token manifest
2012-11-22 10:18:44 -08:00
Sergio Rubio
ec0d743e01 Fix syntax error in s3token manifest
[9506][rubiojr.napoleon] puppet parser validate manifests/proxy/s3token.pp
Error: Could not parse for environment production: Syntax error at
'auth_host'; expected ')' at
/home/rubiojr/Work/github/puppetlabs-swift/manifests/proxy/s3token.pp:25
Error: Try 'puppet help parser validate' for usage
2012-11-22 18:35:28 +01:00
Derek Higgins
9cc14a9042 Adding the ability to specify https for the public endpoint 2012-11-21 23:01:46 +00:00
Dan Bode
a6f98ad3e3 Merge pull request #61 from derekhiggins/jtopjian-puppetlabs-rebase
Jtopjian puppetlabs rebase
2012-11-15 12:59:44 -08:00
Derek Higgins
995ec33b13 Fixed tests 2012-11-15 11:46:05 +00:00
Derek Higgins
9dc035558c Adding the swift client package name to params.pp for RedHat 2012-11-06 06:52:57 -05:00
Joe Topjian
d585916565 Added logging support to proxy-server 2012-11-01 17:48:12 -06: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
Joe Topjian
87ab008565 Region changes 2012-11-01 17:48:12 -06:00
Dan Bode
f6e3ebb95f Merge pull request #54 from rubiojr/1.9-compat-fixes
String no longer has '.to_a', fixes compatibility with ruby 1.9,
2012-10-28 18:20:29 -07:00
Dan Bode
29e4c80895 Merge pull request #53 from rubiojr/add-missing-services
Manage missing Swift storage server services
2012-10-28 18:19:45 -07:00
Dan Bode
38c3995703 Merge pull request #55 from rubiojr/proxy-honor-bind-ip
proxy_local_net_ip is required but not being used in proxy-server.conf
2012-10-28 18:19:07 -07:00
Dan Bode
58d9d17e57 Merge pull request #56 from rubiojr/xfs-storage-improvements
swift::storage::xfs improvements
2012-10-28 18:18:51 -07:00
Dan Bode
3817446c0d Merge pull request #57 from rubiojr/storage-all-improvements
Add mount_check param to swift::storage::all (defaults to false)
2012-10-28 18:17:32 -07:00
Dan Bode
1a1377a05e Merge pull request #58 from rubiojr/create-cache-dir
Create /var/cache/swift directory
2012-10-28 18:17:15 -07:00
Sergio Rubio
2bb6be25bd Create /var/cache/swift directory
Default directory for middleware like Swift-recon
2012-10-02 11:13:45 +02:00
Sergio Rubio
f61af02d03 Add mount_check param to swift::storage::all (defaults to false) 2012-09-26 19:13:23 +02:00
Sergio Rubio
0a630c3c9e swift::storage::xfs improvements
* Create $mnt_base_dir if dir does not exist (useful when not using
* loopback)
* use 'xfs_admin -l' to check for an existing XFS instead of using
* refreshonly
* device param now defaults to '' for compat reasons since we'll be
  using '/dev/' + resource title when no device is specified
* use -f flag with mkfs.xfs so we can format RAW unpartitioned devices
* Does not break interface compatibility, tests OK
2012-09-26 18:37:11 +02:00
Sergio Rubio
a7c92b6138 According to the docs, proxy_local_net_ip is required but not used
Make the proxy-server honor proxy_local_net_ip using the bind_ip
setting in proxy-server.conf
2012-09-25 12:50:27 +02:00
Sergio Rubio
9f176a2df9 ruby 1.9 compat fix for spec/defines/swift_storage_server_spec.rb
Apparently the way 1.9 does string interpolation breaks the regexp:

ruby 1.8:

    [10008][rubiojr.blueleaf] irb
    irb(main):001:0> "#{['foo']}"
    => "foo"
    irb(main):002:0>

ruby 1.9:

    [10007][rubiojr.blueleaf] irb
    1.9.3p194 :001 > "#{['foo']}"
     => "[\"foo\"]"
    1.9.3p194 :002 >
2012-09-24 20:43:07 +02:00
Sergio Rubio
b1192564ea String no longer has '.to_a', fixes compatibility with ruby 1.9,
I believe the following patch fixes compat with ruby 1.9 while
preserving behaviour. The following test was broken:

      1) swift::proxy::cache with overridden memcache server
         Failure/Error: it { should contain_file(fragment_file).with_content(/memcache_servers = 10\.0\.0\.1:1/) }
         Puppet::Error:
           Failed to parse template swift/proxy/cache.conf.erb:
             Filepath: /tmp/puppetlabs-swift/spec/fixtures/modules/swift/templates/proxy/cache.conf.erb
             Line: 3
             Detail: undefined method `to_a' for "10.0.0.1:1":String
            at /tmp/puppetlabs-swift/spec/fixtures/modules/swift/manifests/proxy/cache.pp:32 on node blueleaf
         # ./spec/classes/swift_proxy_cache_spec.rb:39:in `block (3 levels) in <top (required)>'
2012-09-24 20:07:51 +02: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
05d44d8e78 Merge pull request #52 from rubiojr/readme-improvements
Added some references to required storeconfigs, pluginsync
2012-09-14 10:43:56 -07:00
Sergio Rubio
d4b48b1f0e Added some references to required storeconfigs, pluginsync
Since pluginsync and storeconfigs settings are disabled in
some installs by default (Ubuntu being one of them), I believe
this will help newcomers to skip (some) false starts.
2012-09-14 17:05:33 +02:00
Dan Bode
5aaa8aeb70 Merge pull request #50 from derekhiggins/master
Adding support for ext4 storage devices
2012-08-22 17:53:46 -07:00
Derek Higgins
7034190780 Adding support for ext4 devices
XFS may not be available on all systems
2012-08-23 00:47:12 +01:00
Dan Bode
682c6931dc Merge pull request #48 from derekhiggins/devel
Starting the swift replicator with /usr/bin/swift-init
2012-08-22 05:46:28 -07:00
Derek Higgins
88c4954f0b Starting the swift replicator with /usr/bin/swift-init on RedHat
Should be changed back to init script when one becomes part of the
package. Includes test to ensure original functionality hasn't
changed on Ubuntu
2012-08-22 12:34:19 +01:00
Dan Bode
46a3e31f19 Merge pull request #49 from jtopjian/jtopjian-auth_file
Added manifest to generate swiftrc file
2012-08-20 21:33:45 -07:00
Joe Topjian
8524d615e7 Added manifest to generate swiftrc file 2012-08-21 02:02:56 +00:00
Branan Purvine-Riley
3fd9ac9b9d Merge pull request #47 from bodepd/node_regex
Update node blocks to use regex
2012-07-31 15:22:06 -07:00
Dan Bode
90c666326d Update node blocks to use regex
This commit updates node blocks to use regex.

This is so that I can actually use it for my testing.
2012-07-23 20:14:21 -07:00
Branan Purvine-Riley
b63a9dbe07 Merge pull request #46 from bodepd/add_loopback_mnt_param
Add loopback mnt param
2012-07-23 16:32:49 -07:00
Dan Bode
bb85c667cc Style related updates
This commit contains several style related updates:
- aligns class parameters for readibility
- removes trailing class params for 2.6.x compat
- deletes accidentally checked in swp file
2012-07-23 16:32:24 -07:00
Dan Bode
4691b3929d Add spec tests for additional loopback parameter.
This commit adds test coverage that verifies the
behavior of the loopback related class parameters.
2012-07-23 15:04:14 -07:00
Dan Bode
d268fd1d3f Merge pull request #45 from branan/fix_rspec_211
Fix failures tests on rspec 2.11
2012-07-12 16:10:04 -07:00
Branan Purvine-Riley
eef6b12f44 Replace expect..should with expect..to 2012-07-12 15:24:03 -07:00
Nan Liu
1c10f67a37 Merge pull request #44 from branan/puppet_26_compat
Remove trailing comma for puppet 2.6 compat
2012-07-10 13:20:52 -07:00
Branan Purvine-Riley
eb02382140 Remove trailing comma for puppet 2.6 compat 2012-07-10 11:10:10 -07:00
Dan Bode
ffdcaaf803 Merge pull request #43 from branan/single_replica_example
Use a single replica in the all-in-one example
2012-07-06 17:37:55 -07:00
Branan Purvine-Riley
337e7f83ab Use a single replica in the all-in-one example
Using multiple replicas for all-in-one requires special swift
configuration that is incompatible with multi-host swift setups.
2012-07-06 15:22:51 -07:00
Branan Purvine-Riley
12b8159941 Revert "Allow multiple instances of swift::storage::server on one host"
This reverts commit 02efd7afe06f029edee3bfcc6395857e1459b3ec.
2012-07-06 14:43:52 -07:00
Robert Starmer
1841771355 updated loopback, xfs, and mount to support non-loopback devices 2012-06-26 16:24:06 -07:00
Dan Bode
cfc0730556 Merge pull request #40 from fcharlier/fc/rsync_no_chroot
Disable 'use chroot' for rsync::server
2012-06-20 12:39:44 -07:00
François Charlier
a5788bae83 Disable 'use chroot' for rsync::server
Allow to keep the right username/groupname for rsync'ed files if the
uids and gids are not in sync on all the servers
2012-06-19 16:16:24 +02:00
Dan Bode
03d39f1663 Merge pull request #39 from branan/forge_release
Add SSH dependency to Modulefile
2012-06-15 12:07:01 -07:00
Branan Purvine-Riley
1b861d283a Add SSH dependency to Modulefile 2012-06-15 11:49:18 -07:00
Dan Bode
acb17d1497 Merge pull request #38 from branan/forge_release
Prepare for initial forge release
2012-06-15 11:22:28 -07:00