fix chown on /srv/node

This commit is contained in:
Ivan Ponovarev 2012-12-26 17:23:50 +04:00
parent bb3adb2264
commit 8d9e5d1450
2 changed files with 10 additions and 9 deletions

View File

@ -39,15 +39,6 @@ class swift(
ensure => $package_ensure,
name => $::swift::params::package_name,
}
file {'/srv/node':
ensure => 'directory',
owner => 'swift',
group => 'swift',
recurse => true,
recurselimit => 1,
require => Package['swift'],
}
}
File { owner => 'swift', group => 'swift', require => Package['swift'] }

View File

@ -31,6 +31,16 @@ class swift::storage::all(
storage_local_net_ip => $storage_local_net_ip,
}
if(!defined(File['/srv/node'])) {
file {'/srv/node':
ensure => 'directory',
owner => 'swift',
group => 'swift',
recurse => true,
recurselimit => 1,
}
}
Swift::Storage::Server {
swift_zone => $swift_zone,
devices => $devices,