32cbeb6f60
resolves misspelling of nova::generic_service Also fixes Redhat specific dependency tgtd.
25 lines
732 B
Puppet
25 lines
732 B
Puppet
class nova::volume(
|
|
$enabled=false
|
|
) inherits nova {
|
|
|
|
exec { 'volumes':
|
|
command => 'dd if=/dev/zero of=/tmp/nova-volumes.img bs=1M seek=20k count=0 && /sbin/vgcreate nova-volumes `/sbin/losetup --show -f /tmp/nova-volumes.img`',
|
|
onlyif => 'test ! -e /tmp/nova-volumes.img',
|
|
path => ["/usr/bin", "/bin", "/usr/local/bin"],
|
|
before => Service['nova-volume'],
|
|
}
|
|
|
|
nova::generic_service { 'volume':
|
|
enabled => $enabled,
|
|
package_name => $::nova::params::volume_package_name,
|
|
service_name => $::nova::params::volume_service_name,
|
|
}
|
|
|
|
# TODO is this fedora specific?
|
|
service {'tgtd':
|
|
ensure => $service_ensure,
|
|
enable => $enabled,
|
|
require => Nova::Generic_service['volume'],
|
|
}
|
|
}
|