
Ironic needs to make some additions to the nova config file in order to run. The remaining configuraitons will be added to the nova plugin in packstack. Change-Id: I34c7c8a6001b0433aee9017ac571e3bd4f2f02b2
50 lines
1.3 KiB
Puppet
50 lines
1.3 KiB
Puppet
# == Class: nova::compute::ironic
|
|
#
|
|
# Configures Nova compute service to use Ironic.
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*admin_user*]
|
|
# Admin username
|
|
# The admin username for Ironic to connect to Nova.
|
|
# Defaults to 'admin'
|
|
#
|
|
# [*admin_passwd*]
|
|
# Admin password
|
|
# The admin password for Ironic to connect to Nova.
|
|
# Defaults to 'ironic'
|
|
#
|
|
# [*admin_url*]
|
|
# Admin url
|
|
# The address of the Keystone api endpoint.
|
|
# Defaults to 'http://127.0.0.1:35357/v2.0'
|
|
#
|
|
# [*admin_tenant_name*]
|
|
# Admin tenant name
|
|
# The Ironic Keystone tenant name.
|
|
# Defaults to 'services'
|
|
#
|
|
# [*api_endpoint*]
|
|
# Api endpoint
|
|
# The url for Ironic api endpoint.
|
|
# Defaults to 'http://127.0.0.1:6385/v1'
|
|
#
|
|
|
|
class nova::compute::ironic (
|
|
$admin_user = 'admin',
|
|
$admin_passwd = 'ironic',
|
|
$admin_url = 'http://127.0.0.1:35357/v2.0',
|
|
$admin_tenant_name = 'services',
|
|
$api_endpoint = 'http://127.0.0.1:6385/v1',
|
|
) {
|
|
|
|
nova_config {
|
|
'ironic/admin_username': value => $admin_user;
|
|
'ironic/admin_password': value => $admin_passwd;
|
|
'ironic/admin_url': value => $admin_url;
|
|
'ironic/admin_tenant_name': value => $admin_tenant_name;
|
|
'ironic/api_endpoint': value => $api_endpoint;
|
|
'DEFAULT/compute_driver': value => 'nova.virt.ironic.IronicDriver';
|
|
}
|
|
}
|