puppet-nova/manifests/cell_v2/simple_setup.pp
Carlos Camacho 0e9ef8324b Fix lint issues to upgrade to puppet-lint 2.3
2017-07-20 14:41:18.752841 | manifests/cell_v2/simple_setup.pp:52:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:18.752941 | manifests/cell_v2/simple_setup.pp:53:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:18.752974 | manifests/deps.pp:85:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:18.753009 | manifests/deps.pp:96:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:18.753044 | manifests/deps.pp:105:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:18.753079 | manifests/deps.pp:106:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:18.753114 | manifests/deps.pp:114:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:18.753154 | manifests/wsgi/apache_placement.pp:121:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:18.753189 | manifests/wsgi/apache_placement.pp:122:WARNING: arrow should be on the right operand's line

Change-Id: Ic6233d66c4fee0564b646c21984db230eaf859b0
2017-07-20 20:29:14 +02:00

57 lines
1.8 KiB
Puppet

# == Class: nova::cell_v2::simple_setup
#
# Class to execute minimal nova cell_v2 setup. This is a manual implementation
# of the cell_v2 simple_cell_setup in puppet.
#
# === Parameters
#
# [*transport_url*]
# (optional) This is the transport url to use for the cell_v2 commands.
# By default the command should look for the DEFAULT/transport_url from
# the nova configuration. If not available, you need to provide the
# transport url via the parameters. Prior to Ocata, the transport-url
# was a required parameter.
# Defaults to 'default' (nova.conf value).
#
# [*database_connection*]
# (optional) This is the database url to use for the cell_v2 create command
# for the initial cell1 cell.
# By default the command should look for the DEFAULT/database_connection from
# the nova configuration. If not available, you need to provide the database
# url via the parameters.
# Defaults to 'default' (nova.conf value).
#
# [*database_connection_cell0*]
# (optional) This is the database url to use for the cell_v2 cell0.
# By default the command should look for the DEFAULT/database_connection from
# the nova configuration and append '_cell0'. If not available, you need to provide the database
# url via the parameters.
# Defaults to 'default' (nova.conf value).
#
class nova::cell_v2::simple_setup (
$transport_url = 'default',
$database_connection = 'default',
$database_connection_cell0 = 'default',
) {
include ::nova::deps
include ::nova::cell_v2::map_cell0
nova_cell_v2 { 'cell0':
database_connection => $database_connection_cell0
}
nova_cell_v2 { 'default':
transport_url => $transport_url,
database_connection => $database_connection
}
include ::nova::cell_v2::discover_hosts
Class['nova::cell_v2::map_cell0']
-> Nova_cell_v2 <| |>
~> Class['nova::cell_v2::discover_hosts']
}