aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/glance/registry.pp
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2016-12-07 15:38:28 +0100
committerEmilien Macchi <emilien@redhat.com>2017-01-04 09:41:51 -0500
commitb09f7a6c80de65c53c8af3a3a84024a19fa320fe (patch)
treef3a01b2175132e0b0f0c47fab0f5817f5e2487f5 /manifests/profile/base/glance/registry.pp
parent71af301fc5c60c1cccb66dbfc630713c947a94d3 (diff)
Sync the db as part of the glance-api install
The glance database should be created as part of the glance-api service installation and not the registry. Move the db_sync param to the glance-api class call. Change-Id: Ib9f511219e8cb9a7322745b6bd7c4f9c9cc0c198
Diffstat (limited to 'manifests/profile/base/glance/registry.pp')
-rw-r--r--manifests/profile/base/glance/registry.pp14
1 files changed, 4 insertions, 10 deletions
diff --git a/manifests/profile/base/glance/registry.pp b/manifests/profile/base/glance/registry.pp
index 9e2be9d..cd40aeb 100644
--- a/manifests/profile/base/glance/registry.pp
+++ b/manifests/profile/base/glance/registry.pp
@@ -19,6 +19,7 @@
# === Parameters
#
# [*bootstrap_node*]
+# DEPRECATED
# (Optional) The hostname of the node responsible for bootstrapping tasks
# Defaults to hiera('bootstrap_nodeid')
#
@@ -32,23 +33,16 @@
# Defaults to hiera('step')
#
class tripleo::profile::base::glance::registry (
- $bootstrap_node = hiera('bootstrap_nodeid', undef),
+ $bootstrap_node = undef,
$glance_backend = downcase(hiera('glance_backend', 'swift')),
$step = hiera('step'),
) {
- if $::hostname == downcase($bootstrap_node) {
- $sync_db = true
- } else {
- $sync_db = false
- }
- if $step >= 4 or ( $step >= 3 and $sync_db ) {
+ if $step >= 4 {
# TODO: notifications, scrubber, etc.
include ::glance
include ::glance::config
- class { '::glance::registry' :
- sync_db => $sync_db,
- }
+ include ::glance::registry
include ::glance::notify::rabbitmq
include join(['::glance::backend::', $glance_backend])
}