
This commit is a refactor of work performed by Derek Higgins that adds fedora 16 support to these openstack modules. It contains the following: - creates a params class to store all of the data differences. - installs all packages on all nova nodes - introuces an anchor that is used to specify ordering for things that need to occur before nova is installed. - manages libvirt package and service in the nova::compute::libvirt class
22 lines
530 B
Puppet
22 lines
530 B
Puppet
class nova::objectstore( $enabled=false ) {
|
|
|
|
include nova::params
|
|
|
|
Exec['post-nova_config'] ~> Service['nova-objectstore']
|
|
Exec['nova-db-sync'] ~> Service['nova-objectstore']
|
|
|
|
if $enabled {
|
|
$service_ensure = 'running'
|
|
} else {
|
|
$service_ensure = 'stopped'
|
|
}
|
|
|
|
service { "nova-objectstore":
|
|
name => $::nova::params::objectstore_service_name,
|
|
ensure => $service_ensure,
|
|
enable => $enabled,
|
|
require => Package[$::nova::params::package_names],
|
|
#subscribe => File["/etc/nova/nova.conf"]
|
|
}
|
|
}
|