From 6c21f1572d7f0cc937404dc8c5aad4d6210972bb Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Fri, 21 Dec 2012 12:06:50 -0500 Subject: [PATCH] Create the /srv/node for storage devices /srv/node wasn't being created for swift storage devices this will need to go into the swift puppet module --- packstack/puppet/templates/swift_storage.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packstack/puppet/templates/swift_storage.pp b/packstack/puppet/templates/swift_storage.pp index 339009cbb..ac48a21bb 100644 --- a/packstack/puppet/templates/swift_storage.pp +++ b/packstack/puppet/templates/swift_storage.pp @@ -5,6 +5,14 @@ class { 'swift::storage::all': require => Class['swift'], } +if(!defined(File['/srv/node'])) { + file { '/srv/node': + owner => 'swift', + group => 'swift', + ensure => directory, + } +} + swift::ringsync{["account","container","object"]: ring_server => '%(CONFIG_SWIFT_BUILDER_HOST)s', notify => Class['swift::storage::all']