Puppet Class: neutron::plugins::ml2::cisco::vts
- Defined in:
- manifests/plugins/ml2/cisco/vts.pp
Overview
Define: neutron::plugins::ml2::cisco::vts
Install the Cisco VTS driver and generate the ML2 config file from parameters in the other classes.
Parameters
- vts_username
-
(optional) The VTS controller username Example: ‘admin’ Defaults to $facts
- vts_password
-
(optional) The VTS controller password Example: ‘admin’ Defaults to $facts
- vts_url
-
(optional) The VTS controller neutron URL Example: ‘127.0.0.1:8888/api/running/openstack’ Defaults to $facts
- vts_timeout
-
(optional) Timeout for connection to vts host REST interface. Defaults to $facts
- vts_sync_timeout
-
(optional) Timeout for synchronization to VTS. Defaults to $facts
- vts_retry_count
-
(optional) Number of retries for synchronization with VTS. Defaults to $facts
- vts_vmmid
-
(optional) Virtual Machine Manager ID as assigned by VTS Defaults to $facts
- package_ensure
-
(optional) The intended state of the cisco-vts-ml2-driver package, i.e. any of the possible values of the ‘ensure’ property for a package resource type. Defaults to ‘present’
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'manifests/plugins/ml2/cisco/vts.pp', line 45
class neutron::plugins::ml2::cisco::vts (
$vts_username = $facts['os_service_default'],
$vts_password = $facts['os_service_default'],
$vts_url = $facts['os_service_default'],
$vts_vmmid = $facts['os_service_default'],
$vts_timeout = $facts['os_service_default'],
$vts_sync_timeout = $facts['os_service_default'],
$vts_retry_count = $facts['os_service_default'],
$package_ensure = 'present'
) {
include neutron::deps
require neutron::plugins::ml2
ensure_resource('package', 'python-cisco-controller',
{
ensure => $package_ensure,
tag => ['openstack', 'neutron-plugin-ml2-package']
}
)
neutron_plugin_ml2 {
'ml2_cc/username': value => $vts_username;
'ml2_cc/password': value => $vts_password, secret => true;
'ml2_cc/url': value => $vts_url;
'ml2_cc/timeout': value => $vts_timeout;
'ml2_cc/sync_timeout': value => $vts_sync_timeout;
'ml2_cc/retry_count': value => $vts_retry_count;
'ml2_cc/vmm_id': value => $vts_vmmid;
}
}
|