puppet-nova/manifests/objectstore.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
542 B
Puppet

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