X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fneutron%2Fmanifests%2Fagents%2Flinuxbridge.pp;fp=3rdparty%2Fmodules%2Fneutron%2Fmanifests%2Fagents%2Flinuxbridge.pp;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=4a800fdae07561a9ac03d46502d7729d5b27e392;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/neutron/manifests/agents/linuxbridge.pp b/3rdparty/modules/neutron/manifests/agents/linuxbridge.pp deleted file mode 100644 index 4a800fdae..000000000 --- a/3rdparty/modules/neutron/manifests/agents/linuxbridge.pp +++ /dev/null @@ -1,79 +0,0 @@ -# == Class: neutron::agents::linuxbridge -# -# Setups linuxbridge neutron agent. -# -# === Parameters -# -# [*physical_interface_mappings*] -# (required) Comma-separated list of : -# tuples mapping physical network names to agent's node-specific physical -# network interfaces. -# -# [*firewall_driver*] -# (optional) Firewall driver for realizing neutron security group function. -# Defaults to 'neutron.agent.linux.iptables_firewall.IptablesFirewallDriver'. -# -# [*package_ensure*] -# (optional) Ensure state for package. Defaults to 'present'. -# -# [*enable*] -# (optional) Enable state for service. Defaults to 'true'. -# -# [*manage_service*] -# (optional) Whether to start/stop the service -# Defaults to true -# -class neutron::agents::linuxbridge ( - $physical_interface_mappings, - $firewall_driver = 'neutron.agent.linux.iptables_firewall.IptablesFirewallDriver', - $package_ensure = 'present', - $enable = true, - $manage_service = true -) { - - include neutron::params - - Neutron_config<||> ~> Service['neutron-plugin-linuxbridge-service'] - Neutron_plugin_linuxbridge<||> ~> Service<| title == 'neutron-plugin-linuxbridge-service' |> - - if $::neutron::params::linuxbridge_agent_package { - Package['neutron'] -> Package['neutron-plugin-linuxbridge-agent'] - Package['neutron-plugin-linuxbridge-agent'] -> Neutron_plugin_linuxbridge<||> - Package['neutron-plugin-linuxbridge-agent'] -> Service['neutron-plugin-linuxbridge-service'] - package { 'neutron-plugin-linuxbridge-agent': - ensure => $package_ensure, - name => $::neutron::params::linuxbridge_agent_package, - } - } else { - # Some platforms (RedHat) do not provide a separate neutron plugin - # linuxbridge agent package. The configuration file for the linuxbridge - # agent is provided by the neutron linuxbridge plugin package. - Package['neutron-plugin-linuxbridge'] -> Neutron_plugin_linuxbridge<||> - - if ! defined(Package['neutron-plugin-linuxbridge']) { - package { 'neutron-plugin-linuxbridge': - ensure => $package_ensure, - name => $::neutron::params::linuxbridge_server_package, - } - } - } - - neutron_plugin_linuxbridge { - 'LINUX_BRIDGE/physical_interface_mappings': value => $physical_interface_mappings; - 'SECURITYGROUP/firewall_driver': value => $firewall_driver; - } - - if $manage_service { - if $enable { - $service_ensure = 'running' - } else { - $service_ensure = 'stopped' - } - } - - service { 'neutron-plugin-linuxbridge-service': - ensure => $service_ensure, - name => $::neutron::params::linuxbridge_agent_service, - enable => $enable, - } -}