1a768d4d01
This package should be installed to use ironic virt driver. Closes-Bug: #2042383 Change-Id: I3b7ac19b347f3a5deb68d724de32246bb8dc1075
35 lines
726 B
Puppet
35 lines
726 B
Puppet
# == Class: nova::compute::ironic
|
|
#
|
|
# Configures Nova compute service to use Ironic.
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*ensure_package*]
|
|
# (optional) The state of nova packages
|
|
# Defaults to 'present'
|
|
#
|
|
# [*compute_driver*]
|
|
# (optional) Compute driver.
|
|
# Defaults to 'ironic.IronicDriver'
|
|
#
|
|
class nova::compute::ironic (
|
|
$ensure_package = 'present',
|
|
$compute_driver = 'ironic.IronicDriver',
|
|
) {
|
|
|
|
include nova::deps
|
|
require nova::ironic::common
|
|
include ironic::client
|
|
|
|
if($facts['os']['family'] == 'Debian') {
|
|
package { 'nova-compute-ironic':
|
|
ensure => $ensure_package,
|
|
tag => ['openstack', 'nova-package'],
|
|
}
|
|
}
|
|
|
|
nova_config {
|
|
'DEFAULT/compute_driver': value => $compute_driver;
|
|
}
|
|
}
|