puppet-nova/manifests/scheduler.pp
Dan Bode b97237db88 Service depends on nova-db-sync
According to the multi-node install insturctions,
the services should be started/restarted after the
management objects are created and database is 
restarted.
2011-06-24 09:06:55 -07:00

24 lines
524 B
Puppet

class nova::scheduler( $enabled ) {
Exec['post-nova_config'] ~> Service['nova-scheduler']
Exec['nova-db-sync'] -> Service['nova-scheduler']
if $enabled {
$service_ensure = 'running'
} else {
$service_ensure = 'stopped'
}
package { "nova-scheduler":
ensure => present,
require => Package["python-greenlet"]
}
service { "nova-scheduler":
ensure => $service_ensure,
enable => $enabled,
require => Package["nova-scheduler"],
#subscribe => File["/etc/nova/nova.conf"]
}
}