Create swift user and home directory

This commit is contained in:
Eugene Kirpichov
2012-11-19 18:47:03 +04:00
parent c7051ff486
commit 52753b9508
2 changed files with 9 additions and 1 deletions

View File

@@ -49,7 +49,13 @@ class swift(
ensure => directory,
mode => 2770,
}
user {'swift':
ensure => present,
}
file { '/var/lib/swift':
ensure => directory,
owner => 'swift'
}
file { '/var/run/swift':
ensure => directory,
}

View File

@@ -64,6 +64,8 @@ describe 'swift' do
}.merge(file_defaults)
)}
it {should contain_package('swift').with_ensure('present')}
it {should contain_user('swift')}
it {should contain_file('/var/lib/swift').with_ensure('directory')}
end
describe 'when overriding package_ensure parameter' do