Require swift package installation before swift user.

- The user 'swift' is being ensured without any restriction on openstack-swift
package, so it is highly potential that the user is created before package is
installed with /bin/bash instead of /sbin/nologin as shell.

Closes-bug: #1525243
Change-Id: I4c7b7afb7eefeda0379db631f14eb8c32cbe8671
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud 2015-12-11 10:02:16 +01:00
parent 67df8085d0
commit b75290b54c

View File

@ -55,7 +55,8 @@ class swift(
ensure => directory,
}
user {'swift':
ensure => present,
ensure => present,
require => Package['swift'],
}
file { '/var/lib/swift':
ensure => directory,