b97237db88
According to the multi-node install insturctions, the services should be started/restarted after the management objects are created and database is restarted.
24 lines
542 B
Puppet
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"]
|
|
}
|
|
}
|