Fix Swift deployment due to missing directory

A recent change in Swift will now check if the storage directories are
existing, and return an error if not. This requires that the storage
directory required by Swift is created in advance.

Closes-Bug: 1718454
Change-Id: I3b42dbc7185ee1c6f9f848ff0a491160f081c4eb
This commit is contained in:
Christian Schwede 2017-09-21 15:54:22 +02:00
parent 83bf89ee59
commit d899ac3deb
1 changed files with 7 additions and 0 deletions

View File

@ -450,6 +450,13 @@ if(!defined(File['/srv/node'])) {
require => Package['swift'],
}
}
# This is no longer automatically created by Swift itself
file { '/srv/node/1':
ensure => directory,
owner => 'swift',
group => 'swift',
require => File['/srv/node'],
}
$swift_components = ['account', 'container', 'object']
swift::storage::filter::recon { $swift_components : }
swift::storage::filter::healthcheck { $swift_components : }