puppet-cinder/manifests/volume.pp
Dan Bode d5f081ba58 set volume package dep to title
Manifest reps should be titles.
2012-10-29 12:55:56 -07:00

35 lines
840 B
Puppet

# $volume_name_template = volume-%s
class cinder::volume (
$package_ensure = 'latest',
$enabled = true
) {
include cinder::params
Package['cinder-volume'] -> Cinder_config<||>
Package['cinder-volume'] -> Cinder_api_paste_ini<||>
Package['cinder'] -> Package['cinder-volume']
Cinder_config<||> ~> Service['cinder-volume']
Cinder_api_paste_ini<||> ~> Service['cinder-volume']
package { 'cinder-volume':
name => $::cinder::params::volume_package,
ensure => $package_ensure,
}
if $enabled {
$ensure = 'running'
} else {
$ensure = 'stopped'
}
service { 'cinder-volume':
name => $::cinder::params::volume_service,
enable => $enabled,
ensure => $ensure,
require => Package['cinder-volume'],
subscribe => File[$::cinder::params::cinder_conf],
}
}