Previously, debug logging was configurable for most openstack classes. This change adds the remaining classes that can be configured for debug-level logging. Defaults to false for backwards compatibility and to disable debug level logging. Change-Id: I51493f2bc536dd1923fd5f95b89cc9357a9ec0d2
		
			
				
	
	
		
			70 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
class openstack::cinder::storage(
 | 
						|
  $sql_connection,
 | 
						|
  $rabbit_password,
 | 
						|
  $rabbit_userid         = 'guest',
 | 
						|
  $rabbit_host           = '127.0.0.1',
 | 
						|
  $rabbit_hosts          = false,
 | 
						|
  $rabbit_port           = '5672',
 | 
						|
  $rabbit_virtual_host   = '/',
 | 
						|
  $package_ensure        = 'present',
 | 
						|
  $api_paste_config      = '/etc/cinder/api-paste.ini',
 | 
						|
  $volume_package_ensure = 'present',
 | 
						|
  $volume_group          = 'cinder-volumes',
 | 
						|
  $enabled               = true,
 | 
						|
  $rbd_user              = 'volumes',
 | 
						|
  $rbd_pool              = 'volumes',
 | 
						|
  $rbd_secret_uuid       = false,
 | 
						|
  $volume_driver         = 'iscsi',
 | 
						|
  $iscsi_ip_address      = '127.0.0.1',
 | 
						|
  $setup_test_volume     = false,
 | 
						|
  $debug                 = false,
 | 
						|
  $verbose               = false
 | 
						|
) {
 | 
						|
 | 
						|
  class {'::cinder':
 | 
						|
    sql_connection      => $sql_connection,
 | 
						|
    rabbit_userid       => $rabbit_userid,
 | 
						|
    rabbit_password     => $rabbit_password,
 | 
						|
    rabbit_host         => $rabbit_host,
 | 
						|
    rabbit_port         => $rabbit_port,
 | 
						|
    rabbit_hosts        => $rabbit_hosts,
 | 
						|
    rabbit_virtual_host => $rabbit_virtual_host,
 | 
						|
    package_ensure      => $package_ensure,
 | 
						|
    api_paste_config    => $api_paste_config,
 | 
						|
    debug               => $debug,
 | 
						|
    verbose             => $verbose,
 | 
						|
  }
 | 
						|
 | 
						|
 | 
						|
  class { '::cinder::volume':
 | 
						|
    package_ensure => $volume_package_ensure,
 | 
						|
    enabled        => $enabled,
 | 
						|
  }
 | 
						|
 | 
						|
  case $volume_driver {
 | 
						|
 | 
						|
    'iscsi': {
 | 
						|
      class { 'cinder::volume::iscsi':
 | 
						|
        iscsi_ip_address => $iscsi_ip_address,
 | 
						|
        volume_group     => $volume_group,
 | 
						|
      }
 | 
						|
      if $setup_test_volume {
 | 
						|
        class {'::cinder::setup_test_volume':
 | 
						|
          volume_name => $volume_group,
 | 
						|
        }
 | 
						|
      }
 | 
						|
    }
 | 
						|
    'rbd': {
 | 
						|
 | 
						|
      class { 'cinder::volume::rbd':
 | 
						|
        rbd_user        => $rbd_user,
 | 
						|
        rbd_pool        => $rbd_pool,
 | 
						|
        rbd_secret_uuid => $rbd_secret_uuid,
 | 
						|
      }
 | 
						|
    }
 | 
						|
    default:  {
 | 
						|
      warning("Unsupported volume driver: ${volume_driver}, make sure you are configuring this yourself")
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 |