6d54c0360b
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
54 lines
2.1 KiB
Puppet
54 lines
2.1 KiB
Puppet
$resource = hiera($::resource_name)
|
|
|
|
$ip = $resource['input']['ip']['value']
|
|
|
|
$type_drivers = $resource['input']['type_drivers']['value']
|
|
$tenant_network_types = $resource['input']['tenant_network_types']['value']
|
|
$mechanism_drivers = $resource['input']['mechanism_drivers']['value']
|
|
$flat_networks = $resource['input']['flat_networks']['value']
|
|
$network_vlan_ranges = $resource['input']['network_vlan_ranges']['value']
|
|
$tunnel_id_ranges = $resource['input']['tunnel_id_ranges']['value']
|
|
$vxlan_group = $resource['input']['vxlan_group']['value']
|
|
$vni_ranges = $resource['input']['vni_ranges']['value']
|
|
$enable_security_group = $resource['input']['enable_security_group']['value']
|
|
$package_ensure = $resource['input']['package_ensure']['value']
|
|
$supported_pci_vendor_devs = $resource['input']['supported_pci_vendor_devs']['value']
|
|
$sriov_agent_required = $resource['input']['sriov_agent_required']['value']
|
|
|
|
# LP1490438
|
|
file {'/etc/default/neutron-server':
|
|
ensure => present,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 644
|
|
} ->
|
|
|
|
class { 'neutron::plugins::ml2':
|
|
type_drivers => $type_drivers,
|
|
tenant_network_types => $tenant_network_types,
|
|
mechanism_drivers => $mechanism_drivers,
|
|
flat_networks => $flat_networks,
|
|
network_vlan_ranges => $network_vlan_ranges,
|
|
tunnel_id_ranges => $tunnel_id_ranges,
|
|
vxlan_group => $vxlan_group,
|
|
vni_ranges => $vni_ranges,
|
|
enable_security_group => $enable_security_group,
|
|
package_ensure => $package_ensure,
|
|
supported_pci_vendor_devs => $supported_pci_vendor_devs,
|
|
sriov_agent_required => $sriov_agent_required,
|
|
} ->
|
|
|
|
exec { 'neutron-db-sync':
|
|
provider => 'shell',
|
|
command => "${command} stamp head",
|
|
path => [ '/usr/bin', '/bin' ],
|
|
onlyif => "${command} current | grep -qE '^Current revision.*None$' "
|
|
}
|
|
|
|
include neutron::params
|
|
|
|
package { 'neutron':
|
|
ensure => $package_ensure,
|
|
name => $::neutron::params::package_name,
|
|
before => Exec['neutron-db-sync']
|
|
} |