puppet-nova/manifests/volume.pp
Dan Bode 32cbeb6f60 Update nova::volume
resolves misspelling of nova::generic_service

Also fixes Redhat specific dependency tgtd.
2012-04-08 22:45:16 +00:00

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'],
}
}