fa8660917a
In Nova cells v1 has been deprecated since Ocata but we have no notices about it. This adds warnings about it being deprecated and will be removed. The functionality in nova::cells when passing create_cells parameter is broken and has therefore been removed and instead outputs a warning and is deprecated. A known issue has been added to the release notes to inform about this. It's probably safe to say that nobody is using it since it has been broken since we switched over to transport_url for rabbit, it's also safe to probably assume that no deployments that run cell v1 right now will be running a later version of Nova. Closes-Bug: 1687395 Change-Id: I564fc4f43a752b051280dce095a52ca4d477fb09
95 lines
2.8 KiB
Puppet
95 lines
2.8 KiB
Puppet
#
|
|
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
|
|
#
|
|
# Author: Emilien Macchi <emilien.macchi@enovance.com>
|
|
# Francois Charlier <francois.charlier@enovance.com>
|
|
#
|
|
# 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.
|
|
#
|
|
#
|
|
# Configuring the database in each cell
|
|
#
|
|
# CELL v1 IS DEPRECATED AND WILL BE REMOVED
|
|
#
|
|
# == Namevar
|
|
# The namevar will be the name of the cell
|
|
#
|
|
# == Parameters
|
|
# [*cell_type*]
|
|
# (optional) Whether the cell is a 'parent' or 'child'
|
|
# Defaults to 'parent'
|
|
#
|
|
# [*cell_parent_name*]
|
|
# (optional) If a child cell, this is the name of the 'parent' cell.
|
|
# If a parent cell, should be left to undef.
|
|
# Defaults to undef
|
|
#
|
|
# [*rabbit_username*]
|
|
# (optional) Username for the message broker in this cell
|
|
# Defaults to 'guest'
|
|
#
|
|
# [*rabbit_password*]
|
|
# (optional) Password for the message broker in this cell
|
|
# Defaults to 'guest'
|
|
#
|
|
# [*rabbit_hosts*]
|
|
# (optional) Address of the message broker in this cell
|
|
# Defaults to ['localhost']
|
|
#
|
|
# [*rabbit_port*]
|
|
# (optional) Port number of the message broker in this cell
|
|
# Defaults to '5672'
|
|
#
|
|
# [*rabbit_virtual_host*]
|
|
# (optional) The virtual host of the message broker in this cell
|
|
# Defaults to '/'
|
|
#
|
|
# [*weight_offset*]
|
|
# (optional) It might be used by some cell scheduling code in the future
|
|
# Defaults to '1.0'
|
|
#
|
|
# [*weight_scale*]
|
|
# (optional) It might be used by some cell scheduling code in the future
|
|
# Defaults to '1.0'
|
|
#
|
|
define nova::manage::cells (
|
|
$cell_type = 'parent',
|
|
$cell_parent_name = undef,
|
|
$rabbit_username = 'guest',
|
|
$rabbit_password = 'guest',
|
|
$rabbit_hosts = ['localhost'],
|
|
$rabbit_port = '5672',
|
|
$rabbit_virtual_host = '/',
|
|
$weight_offset = '1.0',
|
|
$weight_scale = '1.0'
|
|
) {
|
|
|
|
include ::nova::deps
|
|
|
|
warning('nova::cells v1 is deprecated and will be removed in a future release')
|
|
|
|
nova_cells { $name:
|
|
ensure => present,
|
|
cell_type => $cell_type,
|
|
cell_parent_name => $cell_parent_name,
|
|
rabbit_username => $rabbit_username,
|
|
rabbit_password => $rabbit_password,
|
|
rabbit_hosts => $rabbit_hosts,
|
|
rabbit_port => $rabbit_port,
|
|
rabbit_virtual_host => $rabbit_virtual_host,
|
|
weight_offset => $weight_offset,
|
|
weight_scale => $weight_scale
|
|
}
|
|
|
|
}
|