Add exec post config and network refresh to n-compute

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya 2015-07-31 16:30:01 +02:00
parent c7b2f710a1
commit 204853a121
2 changed files with 31 additions and 0 deletions

View File

@ -1,4 +1,20 @@
class { 'nova::compute':
ensure_package => 'absent',
enabled => false,
}
include nova::params
exec { 'post-nova_config':
command => '/bin/echo "Nova config has changed"',
refreshonly => true,
}
exec { 'networking-refresh':
command => '/sbin/ifdown -a ; /sbin/ifup -a',
}
package { 'nova-common':
name => $nova::params::common_package_name,
ensure => 'absent',
}

View File

@ -46,4 +46,19 @@ class { 'nova::compute':
default_availability_zone => $default_availability_zone,
default_schedule_zone => $default_schedule_zone,
internal_service_availability_zone => $internal_service_availability_zone,
}
exec { 'networking-refresh':
command => '/sbin/ifdown -a ; /sbin/ifup -a',
}
exec { 'post-nova_config':
command => '/bin/echo "Nova config has changed"',
}
include nova::params
package { 'nova-common':
name => $nova::params::common_package_name,
ensure => $ensure_package,
}