Minor fixes

This commit is contained in:
vic 2013-02-23 04:16:04 +04:00
parent 8bd0a61367
commit 032a3ab3d4
6 changed files with 11 additions and 10 deletions

View File

@ -26,8 +26,8 @@ define l23network::l2::bridge (
ensure => $ensure,
external_ids => $external_ids,
skip_existing=> $skip_existing,
require => Service<| title == 'openvswitch-service' |>,
}
Service<| title == 'openvswitch-service' |> -> L2_ovs_bridge[$name]
}
}

View File

@ -34,7 +34,7 @@ define l23network::l2::port (
bridge => $bridge,
type => $type,
skip_existing => $skip_existing,
require => Service<| title == 'openvswitch-service' |>,
}
Service<| title == 'openvswitch-service' |> -> L2_ovs_port[$name]
}
}

View File

@ -41,8 +41,8 @@ define nova::generic_service(
name => $package_name,
ensure => $ensure_package,
}
Stdlib::Safe_package[$nova_title] -> Service[$nova_title]
Stdlib::Safe_package[$nova_title] ~> Service[$nova_title]
Package[$nova_title] -> Service[$nova_title]
Package[$nova_title] ~> Service[$nova_title]
}
if ($service_name) {

View File

@ -30,12 +30,13 @@ class nova::metadata_api (
Package['nova-metadata-api'] -> Nova_config<||>
Nova_config<||> ~> Service['nova-metadata-api']
stdlib::safe_package {'nova-metadata-api':
name => $::nova::params::meta_api_package_name,
ensure => present,
if ! defined(Package['nova-metadata-api']) {
package {'nova-metadata-api':
name => $::nova::params::meta_api_package_name,
ensure => present,
}
}
service { 'nova-metadata-api':
name => $::nova::params::meta_api_service_name,
ensure => 'running',

View File

@ -2,7 +2,7 @@ define quantum::plugins::ovs::bridge {
$mapping = split($name, ":")
$bridge = $mapping[1]
if !defined(l23network::l2::bridge[$bridge]) {
if !defined(L23network::L2::Bridge[$bridge]) {
l23network::l2::bridge {$bridge:
ensure => present,
external_ids => "bridge-id=${bridge}",

View File

@ -3,7 +3,7 @@ define quantum::plugins::ovs::port {
$bridge = $mapping[0]
$port = $mapping[1]
if !defined(l23network::l2::port[$port]) {
if !defined(L23network::L2::Port[$port]) {
l23network::l2::port {$port:
ensure => present,
bridge => $bridge,