Add exec post config and network refresh to n-compute
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
parent
c7b2f710a1
commit
204853a121
@ -1,4 +1,20 @@
|
|||||||
class { 'nova::compute':
|
class { 'nova::compute':
|
||||||
ensure_package => 'absent',
|
ensure_package => 'absent',
|
||||||
enabled => false,
|
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',
|
||||||
}
|
}
|
@ -46,4 +46,19 @@ class { 'nova::compute':
|
|||||||
default_availability_zone => $default_availability_zone,
|
default_availability_zone => $default_availability_zone,
|
||||||
default_schedule_zone => $default_schedule_zone,
|
default_schedule_zone => $default_schedule_zone,
|
||||||
internal_service_availability_zone => $internal_service_availability_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,
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user