Remove last bits of Glance Registry
authorEmilien Macchi <emilien@redhat.com>
Mon, 23 Jan 2017 13:01:37 +0000 (08:01 -0500)
committerEmilien Macchi <emilien@redhat.com>
Mon, 23 Jan 2017 13:01:37 +0000 (08:01 -0500)
Glance Registry has been removed in TripleO. So we can clean
puppet-tripleo and remove last bits that used to deploy this service.

Change-Id: Iea8f6340349ab366606205305a3ec9a6e4f11ba6

manifests/haproxy.pp
manifests/profile/base/glance/registry.pp [deleted file]

index 043e01e..e507dfb 100644 (file)
 #  (optional) Enable or not Glance API binding
 #  Defaults to hiera('glance_api_enabled', false)
 #
-# [*glance_registry*]
-#  (optional) Enable or not Glance registry binding
-#  Defaults to hiera('glance_registry_enabled', false)
-#
 # [*nova_osapi*]
 #  (optional) Enable or not Nova API binding
 #  Defaults to hiera('nova_api_enabled', false)
 #  (optional) Specify the network glance_api is running on.
 #  Defaults to hiera('glance_api_network', undef)
 #
-# [*glance_registry_network*]
-#  (optional) Specify the network glance_registry is running on.
-#  Defaults to hiera('glance_registry_network', undef)
-#
 # [*gnocchi_network*]
 #  (optional) Specify the network gnocchi is running on.
 #  Defaults to hiera('gnocchi_api_network', undef)
 #    'docker_registry_ssl_port' (Defaults to 13787)
 #    'glance_api_port' (Defaults to 9292)
 #    'glance_api_ssl_port' (Defaults to 13292)
-#    'glance_registry_port' (Defaults to 9191)
 #    'gnocchi_api_port' (Defaults to 8041)
 #    'gnocchi_api_ssl_port' (Defaults to 13041)
 #    'mistral_api_port' (Defaults to 8989)
@@ -512,7 +503,6 @@ class tripleo::haproxy (
   $sahara                      = hiera('sahara_api_enabled', false),
   $trove                       = hiera('trove_api_enabled', false),
   $glance_api                  = hiera('glance_api_enabled', false),
-  $glance_registry             = hiera('glance_registry_enabled', false),
   $nova_osapi                  = hiera('nova_api_enabled', false),
   $nova_placement              = hiera('nova_placement_enabled', false),
   $nova_metadata               = hiera('nova_api_enabled', false),
@@ -552,7 +542,6 @@ class tripleo::haproxy (
   $cinder_network              = hiera('cinder_api_network', undef),
   $docker_registry_network     = hiera('docker_registry_network', undef),
   $glance_api_network          = hiera('glance_api_network', undef),
-  $glance_registry_network     = hiera('glance_registry_network', undef),
   $gnocchi_network             = hiera('gnocchi_api_network', undef),
   $heat_api_network            = hiera('heat_api_network', undef),
   $heat_cfn_network            = hiera('heat_api_cfn_network', undef),
@@ -589,7 +578,6 @@ class tripleo::haproxy (
     docker_registry_ssl_port => 13787,
     glance_api_port => 9292,
     glance_api_ssl_port => 13292,
-    glance_registry_port => 9191,
     gnocchi_api_port => 8041,
     gnocchi_api_ssl_port => 13041,
     mistral_api_port => 8989,
@@ -922,16 +910,6 @@ class tripleo::haproxy (
     }
   }
 
-  if $glance_registry {
-    ::tripleo::haproxy::endpoint { 'glance_registry':
-      internal_ip     => hiera('glance_registry_vip', $controller_virtual_ip),
-      service_port    => $ports[glance_registry_port],
-      ip_addresses    => hiera('glance_registry_node_ips', $controller_hosts_real),
-      server_names    => hiera('glance_registry_node_names', $controller_hosts_names_real),
-      service_network => $glance_registry_network,
-    }
-  }
-
   $nova_api_vip = hiera('nova_api_vip', $controller_virtual_ip)
   if $nova_osapi {
     ::tripleo::haproxy::endpoint { 'nova_osapi':
diff --git a/manifests/profile/base/glance/registry.pp b/manifests/profile/base/glance/registry.pp
deleted file mode 100644 (file)
index cd40aeb..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 2016 Red Hat, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-# == Class: tripleo::profile::base::glance::registry
-#
-# Glance Registry profile for tripleo
-#
-# === Parameters
-#
-# [*bootstrap_node*]
-#   DEPRECATED
-#   (Optional) The hostname of the node responsible for bootstrapping tasks
-#   Defaults to hiera('bootstrap_nodeid')
-#
-# [*glance_backend*]
-#   (Optional) Glance backend(s) to use.
-#   Defaults to downcase(hiera('glance_backend', 'swift'))
-#
-# [*step*]
-#   (Optional) The current step in deployment. See tripleo-heat-templates
-#   for more details.
-#   Defaults to hiera('step')
-#
-class tripleo::profile::base::glance::registry (
-  $bootstrap_node = undef,
-  $glance_backend = downcase(hiera('glance_backend', 'swift')),
-  $step           = hiera('step'),
-) {
-
-  if $step >= 4 {
-    # TODO: notifications, scrubber, etc.
-    include ::glance
-    include ::glance::config
-    include ::glance::registry
-    include ::glance::notify::rabbitmq
-    include join(['::glance::backend::', $glance_backend])
-  }
-
-}