Restart glance-glare service after installing murano-glance plugin

After installing package murano-glance-artifacts-plugin Glare service
must be restarted, otherwise Murano will not work correctly with Glare.

Change-Id: I773a1d778c33d66fed8a1f9cf6f5123ba90e9315
Closes-bug: #1637508
Related-bug: #1597368
This commit is contained in:
Denis Egorenko 2016-11-01 16:14:42 +03:00
parent 58f238fb63
commit 4adad7a984
2 changed files with 6 additions and 3 deletions

View File

@ -12,6 +12,11 @@ if has_key($murano_plugins, 'glance_artifacts_plugin') and $murano_plugins['glan
package {'murano-glance-artifacts-plugin':
ensure => 'latest',
}
include ::glance::params
ensure_resource('service', 'glance-glare',
{ ensure => running, name => $::glance::params::glare_service_name })
Package['murano-glance-artifacts-plugin'] ~> Service['glance-glare']
} else {
$use_glare = false
}
@ -27,8 +32,6 @@ include ::horizon::params
ensure_resource('service', 'httpd', {
'ensure' => 'running',
'enable' => true,
'restart' => true,
'name' => $::horizon::params::http_service,
})

View File

@ -99,7 +99,7 @@
type: puppet
groups: ['primary-controller','controller']
required_for: [murano-controller-end]
requires: [horizon]
requires: [horizon, glance]
condition:
yaql_exp: >
$.get('detach-murano', {}).get('metadata', {}).get('enabled', false) and