added support for configuring nova, neutron, cinder
This commit is contained in:
parent
90eb2845ac
commit
11a9b08259
59
manifests/compute/nova.pp
Normal file
59
manifests/compute/nova.pp
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# == Class: manila::nova
|
||||||
|
#
|
||||||
|
# Setup and configure Nova communication
|
||||||
|
#
|
||||||
|
# === Parameters
|
||||||
|
#
|
||||||
|
# [*nova_catalog_info*]
|
||||||
|
# (optional) Info to match when looking for nova in the service
|
||||||
|
# catalog. Format is : separated values of the form:
|
||||||
|
# <service_type>:<service_name>:<endpoint_type>
|
||||||
|
#
|
||||||
|
# [*nova_catalog_admin_info*]
|
||||||
|
# (optional) Same as nova_catalog_info, but for admin endpoint.
|
||||||
|
#
|
||||||
|
# [*os_region_name*]
|
||||||
|
# (optional) region name of this node
|
||||||
|
#
|
||||||
|
# [*nova_ca_certificates_file*]
|
||||||
|
# (optional) Location of ca certicates file to use for nova client
|
||||||
|
# requests.
|
||||||
|
#
|
||||||
|
# [*nova_api_insecure*]
|
||||||
|
# (optional) Allow to perform insecure SSL requests to nova
|
||||||
|
#
|
||||||
|
# [*nova_admin_username*]
|
||||||
|
# (optional) Nova admin username
|
||||||
|
#
|
||||||
|
# [*nova_admin_password*]
|
||||||
|
# (optional) Nova admin password
|
||||||
|
#
|
||||||
|
# [*nova_admin_tenant_name*]
|
||||||
|
# (optional) Nova admin tenant name
|
||||||
|
#
|
||||||
|
# [*nova_admin_auth_url*]
|
||||||
|
# (optional) Identity service url
|
||||||
|
#
|
||||||
|
|
||||||
|
class manila::compute::nova (
|
||||||
|
$nova_catalog_info = 'compute:nova:publicURL',
|
||||||
|
$nova_catalog_admin_info = 'compute:nova:adminURL',
|
||||||
|
$nova_ca_certificates_file = undef,
|
||||||
|
$nova_api_insecure = false,
|
||||||
|
$nova_admin_username = 'nova',
|
||||||
|
$nova_admin_password = undef,
|
||||||
|
$nova_admin_tenant_name = 'service',
|
||||||
|
$nova_admin_auth_url = 'http://localhost:5000/v2.0',
|
||||||
|
) {
|
||||||
|
|
||||||
|
manila_config {
|
||||||
|
'DEFAULT/nova_catalog_info': value => $nova_catalog_info;
|
||||||
|
'DEFAULT/nova_catalog_admin_info': value => $nova_catalog_admin_info;
|
||||||
|
'DEFAULT/nova_ca_certificates_file':value => $nova_ca_certificates_file;
|
||||||
|
'DEFAULT/nova_api_insecure': value => $nova_api_insecure;
|
||||||
|
'DEFAULT/nova_admin_username': value => $nova_admin_username;
|
||||||
|
'DEFAULT/nova_admin_password': value => $nova_admin_password;
|
||||||
|
'DEFAULT/nova_admin_tenant_name': value => $nova_admin_tenant_name;
|
||||||
|
'DEFAULT/nova_admin_auth_url': value => $nova_admin_auth_url;
|
||||||
|
}
|
||||||
|
}
|
70
manifests/network/neutron.pp
Normal file
70
manifests/network/neutron.pp
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# == Class: manila::neutron
|
||||||
|
#
|
||||||
|
# Setup and configure Neutron communication
|
||||||
|
#
|
||||||
|
# === Parameters
|
||||||
|
#
|
||||||
|
# [*neutron_url*]
|
||||||
|
# (optional) URL for connecting to neutron
|
||||||
|
#
|
||||||
|
# [*neutron_url_timeout*]
|
||||||
|
# (optional) timeout value for connecting to neutron in seconds
|
||||||
|
#
|
||||||
|
# [*neutron_admin_username*]
|
||||||
|
# (optional) username for connecting to neutron in admin context
|
||||||
|
#
|
||||||
|
# [*neutron_admin_password*]
|
||||||
|
# (optional) password for connecting to neutron in admin context
|
||||||
|
#
|
||||||
|
# [*neutron_admin_tenant_name*]
|
||||||
|
# (optional) tenant name for connecting to neutron in admin context
|
||||||
|
#
|
||||||
|
# [*neutron_region_name*]
|
||||||
|
# (optional) region name for connecting to neutron in admin context
|
||||||
|
#
|
||||||
|
# [*neutron_admin_auth_url*]
|
||||||
|
# (optional) auth url for connecting to neutron in admin context
|
||||||
|
#
|
||||||
|
# [*neutron_api_insecure*]
|
||||||
|
# (optional) if set, ignore any SSL validation issues
|
||||||
|
#
|
||||||
|
# [*neutron_auth_strategy*]
|
||||||
|
# (optional) auth strategy for connecting to
|
||||||
|
# neutron in admin context
|
||||||
|
#
|
||||||
|
# [*neutron_ovs_bridge*]
|
||||||
|
# (optional) Name of Integration Bridge used by Open vSwitch
|
||||||
|
#
|
||||||
|
# [*neutron_ca_certificates_file*]
|
||||||
|
# (optional) Location of ca certificates file to use for
|
||||||
|
# neutron client requests.
|
||||||
|
#
|
||||||
|
|
||||||
|
class manila::network::neutron (
|
||||||
|
$neutron_url = 'http://127.0.0.1:9696',
|
||||||
|
$neutron_url_timeout = 30,
|
||||||
|
$neutron_admin_username = 'neutron',
|
||||||
|
$neutron_admin_password = undef,
|
||||||
|
$neutron_admin_tenant_name = 'service',
|
||||||
|
$neutron_region_name = undef,
|
||||||
|
$neutron_admin_auth_url = 'http://localhost:5000/v2.0',
|
||||||
|
$neutron_api_insecure = false,
|
||||||
|
$neutron_auth_strategy = 'keystone',
|
||||||
|
$neutron_ovs_bridge = 'br-int',
|
||||||
|
$neutron_ca_certificates_file = undef,
|
||||||
|
) {
|
||||||
|
|
||||||
|
manila_config {
|
||||||
|
'DEFAULT/neutron_url': value => $neutron_url;
|
||||||
|
'DEFAULT/neutron_url_timeout': value => $neutron_url_timeout;
|
||||||
|
'DEFAULT/neutron_admin_username': value => $neutron_admin_username;
|
||||||
|
'DEFAULT/neutron_admin_password': value => $neutron_admin_password;
|
||||||
|
'DEFAULT/neutron_admin_tenant_name': value => $neutron_admin_tenant_name;
|
||||||
|
'DEFAULT/neutron_region_name': value => $neutron_region_name;
|
||||||
|
'DEFAULT/neutron_admin_auth_url': value => $neutron_admin_auth_url;
|
||||||
|
'DEFAULT/neutron_api_insecure': value => $neutron_api_insecure;
|
||||||
|
'DEFAULT/neutron_auth_strategy': value => $neutron_auth_strategy;
|
||||||
|
'DEFAULT/neutron_ovs_bridge': value => $neutron_ovs_bridge;
|
||||||
|
'DEFAULT/neutron_ca_certificates_file': value => $neutron_ca_certificates_file;
|
||||||
|
}
|
||||||
|
}
|
65
manifests/volume/cinder.pp
Normal file
65
manifests/volume/cinder.pp
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# == Class: manila::cinder
|
||||||
|
#
|
||||||
|
# Setup and configure Cinder communication
|
||||||
|
#
|
||||||
|
# === Parameters
|
||||||
|
#
|
||||||
|
# [*cinder_catalog_info*]
|
||||||
|
# (optional) Info to match when looking for cinder in the service
|
||||||
|
# catalog. Format is : separated values of the form:
|
||||||
|
# <service_type>:<service_name>:<endpoint_type>
|
||||||
|
#
|
||||||
|
# [*os_region_name*]
|
||||||
|
# (optional) region name of this node
|
||||||
|
#
|
||||||
|
# [*cinder_ca_certificates_file*]
|
||||||
|
# (optional) Location of ca certificates file to use for cinder
|
||||||
|
# client requests.
|
||||||
|
#
|
||||||
|
# [*cinder_http_retries*]
|
||||||
|
# (optional) Number of cinderclient retries on failed http calls
|
||||||
|
#
|
||||||
|
# [*cinder_api_insecure*]
|
||||||
|
# (optional) Allow to perform insecure SSL requests to cinder
|
||||||
|
#
|
||||||
|
# [*cinder_cross_az_attach*]
|
||||||
|
# (optional) Allow attach between instance and volume in different
|
||||||
|
# availability zones.
|
||||||
|
#
|
||||||
|
# [*cinder_admin_username*]
|
||||||
|
# (optional) Cinder admin username
|
||||||
|
#
|
||||||
|
# [*cinder_admin_password*]
|
||||||
|
# (optional) Cinder admin password
|
||||||
|
#
|
||||||
|
# [*cinder_admin_tenant_name*]
|
||||||
|
# (optional) Cinder admin tenant name
|
||||||
|
#
|
||||||
|
# [*cinder_admin_auth_url*]
|
||||||
|
# (optional) Identity service url
|
||||||
|
#
|
||||||
|
|
||||||
|
class manila::volume::cinder (
|
||||||
|
$cinder_catalog_info = 'volume:cinder:publicURL',
|
||||||
|
$cinder_ca_certificates_file = undef,
|
||||||
|
$cinder_http_retries = 3,
|
||||||
|
$cinder_api_insecure = false,
|
||||||
|
$cinder_cross_az_attach = true,
|
||||||
|
$cinder_admin_username = 'cinder',
|
||||||
|
$cinder_admin_password = undef,
|
||||||
|
$cinder_admin_tenant_name = 'service',
|
||||||
|
$cinder_admin_auth_url = 'http://localhost:5000/v2.0',
|
||||||
|
) {
|
||||||
|
|
||||||
|
manila_config {
|
||||||
|
'DEFAULT/cinder_catalog_info': value => $cinder_catalog_info;
|
||||||
|
'DEFAULT/cinder_ca_certificates_file': value => $cinder_ca_certificates_file;
|
||||||
|
'DEFAULT/cinder_http_retries': value => $cinder_http_retries;
|
||||||
|
'DEFAULT/cinder_api_insecure': value => $cinder_api_insecure;
|
||||||
|
'DEFAULT/cinder_cross_az_attach': value => $cinder_cross_az_attach;
|
||||||
|
'DEFAULT/cinder_admin_username': value => $cinder_admin_username;
|
||||||
|
'DEFAULT/cinder_admin_password': value => $cinder_admin_password;
|
||||||
|
'DEFAULT/cinder_admin_tenant_name': value => $cinder_admin_tenant_name;
|
||||||
|
'DEFAULT/cinder_admin_auth_url': value => $cinder_admin_auth_url;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user