Fix could not find user glance on ensure files

commit 394661ec introduces a bug when the etc files ensure owner
'glance' run before the installation of the packages, and user glance
is not available, since this user is added by the package installation
after that.

This fix adds the dependency between packages and the ensure of etc
files.

Change-Id: Ia6523daf69f684c5bdb83255a8e6f6de3160ecc1
This commit is contained in:
Tri Hoang Vo 2014-05-16 15:29:36 +02:00
parent 8156a87cd0
commit 7f49ebc23a
2 changed files with 3 additions and 1 deletions

View File

@ -202,6 +202,7 @@ class glance::api(
ensure_packages([$glance::params::api_package_name])
}
Package[$glance::params::api_package_name] -> File['/etc/glance/']
Package[$glance::params::api_package_name] -> Glance_api_config<||>
Package[$glance::params::api_package_name] -> Glance_cache_config<||>
@ -219,7 +220,7 @@ class glance::api(
group => 'glance',
mode => '0640',
notify => Service['glance-api'],
require => Class['glance'],
require => Class['glance']
}
if $sql_connection {

View File

@ -147,6 +147,7 @@ class glance::registry(
ensure_packages([$glance::params::registry_package_name])
}
Package[$glance::params::registry_package_name] -> File['/etc/glance/']
Package[$glance::params::registry_package_name] -> Glance_registry_config<||>
Glance_registry_config<||> ~> Exec<| title == 'glance-manage db_sync' |>