Files
puppet-nova/manifests/cell_v2/map_cell_and_hosts.pp
Alex Schultz 290b6422df Additional cell_v2 commands
This change exposes additional cell v2 management commands that can be
used as part of managing cell v2. The map_instances and
map_cell_and_hosts commands can be pulled in to be run as part of
upgrades or general management.

Change-Id: Ie731f3d5b8396786f579f80d87714ce2e949a5df
2017-01-24 23:21:16 +00:00

23 lines
519 B
Puppet

# == Class: nova::cell_v2::map_cell_and_hosts
#
# Class to run the map_cell_and_hosts action for cell v2
#
# === Parameters
#
# [*extra_params*]
# (String) Extra parameters to pass to the nova-manage commands.
# Defaults to ''.
#
class nova::cell_v2::map_cell_and_hosts (
$extra_params = '',
) {
include ::nova::deps
exec { 'nova-cell_v2-map_cell_and_hosts':
path => ['/bin', '/usr/bin'],
command => "nova-manage ${extra_params} cell_v2 map_cell_and_hosts",
refreshonly => true,
}
}