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:
parent
8156a87cd0
commit
7f49ebc23a
|
@ -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 {
|
||||
|
|
|
@ -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' |>
|
||||
|
|
Loading…
Reference in New Issue