Files
puppet-neutron/manifests/plugins/ml2/arista.pp
Clayton O'Neill 8b2319e210 Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: Idb1332dd498bb3065720f2ccaf68e6b0e9fa80c3
2016-06-09 09:55:27 -04:00

67 lines
1.9 KiB
Puppet

#
# Copyright (C) 2016 Matthew J. Black
#
# Author: Matthew J. Black <mjblack@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# == Class: neutron::plugins::ml2::arista
#
# === Parameters
#
# [*eapi_host*]
# (required) The Arista EOS IP address.
#
# [*eapi_username*]
# (required) The Arista EOS api username.
#
# [*eapi_password*]
# (required) The Arista EOS api password.
#
# [*region_name*]
# (optional) Region name that is assigned to the OpenStack controller.
# This setting must be set if multiple regions are using the same Arista
# hardware.
# Defaults to $::os_service_default
#
# [*sync_interval*]
# (optional) Sync interval in seconds between neutron plugin and EOS.
# Defaults to $::os_service_default
#
# [*use_fqdn*]
# (optional) Defines if hostnames are sent to Arista EOS as FQDNS
# Defaults to $::os_service_default
#
class neutron::plugins::ml2::arista(
$eapi_host,
$eapi_username,
$eapi_password,
$region_name = $::os_service_default,
$sync_interval = $::os_service_default,
$use_fqdn = $::os_service_default,
) {
include ::neutron::deps
require ::neutron::plugins::ml2
neutron_plugin_ml2 {
'ml2_arista/eapi_host' : value => $eapi_host;
'ml2_arista/eapi_username': value => $eapi_username;
'ml2_arista/eapi_password': value => $eapi_password;
'ml2_arista/region_name' : value => $region_name;
'ml2_arista/sync_interval': value => $sync_interval;
'ml2_arista/use_fqdn' : value => $use_fqdn;
}
}