Ceph: cosmetic
Close bug #227 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
		@@ -36,7 +36,7 @@ class cloud::compute::hypervisor(
 | 
			
		||||
  $spice_port                 = $os_params::spice_port,
 | 
			
		||||
  $rbd_user                   = $os_params::cinder_rbd_user,
 | 
			
		||||
  $rbd_pool                   = $os_params::cinder_rbd_pool,
 | 
			
		||||
  $ceph_fsid                  = $os_params::ceph_fsid,
 | 
			
		||||
  $rbd_secret_uuid            = $os_params::ceph_fsid,
 | 
			
		||||
  $has_ceph                   = false
 | 
			
		||||
) {
 | 
			
		||||
 | 
			
		||||
@@ -116,7 +116,7 @@ Host *
 | 
			
		||||
      'DEFAULT/libvirt_images_rbd_pool':      value => $rbd_pool;
 | 
			
		||||
      'DEFAULT/libvirt_images_rbd_ceph_conf': value => '/etc/ceph/ceph.conf';
 | 
			
		||||
      'DEFAULT/rbd_user':                     value => $rbd_user;
 | 
			
		||||
      'DEFAULT/rbd_secret_uuid':              value => $ceph_fsid;
 | 
			
		||||
      'DEFAULT/rbd_secret_uuid':              value => $rbd_secret_uuid;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    # Extra config for nova-compute
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@ class cloud::volume::storage(
 | 
			
		||||
  $glance_api_version     = $os_params::glance_api_version,
 | 
			
		||||
  $cinder_rbd_pool        = $os_params::cinder_rbd_pool,
 | 
			
		||||
  $cinder_rbd_user        = $os_params::cinder_rbd_user,
 | 
			
		||||
  $ceph_fsid              = $os_params::ceph_fsid,
 | 
			
		||||
  $cinder_rbd_secret_uuid = $os_params::ceph_fsid,
 | 
			
		||||
) {
 | 
			
		||||
 | 
			
		||||
  include 'cloud::volume'
 | 
			
		||||
@@ -31,7 +31,7 @@ class cloud::volume::storage(
 | 
			
		||||
    rbd_pool           => $cinder_rbd_pool,
 | 
			
		||||
    glance_api_version => $glance_api_version,
 | 
			
		||||
    rbd_user           => $cinder_rbd_user,
 | 
			
		||||
    rbd_secret_uuid    => $ceph_fsid
 | 
			
		||||
    rbd_secret_uuid    => $cinder_rbd_secret_uuid
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Ceph::Key <<| title == $cinder_user |>>
 | 
			
		||||
 
 | 
			
		||||
@@ -48,7 +48,7 @@ describe 'cloud::compute::hypervisor' do
 | 
			
		||||
        :has_ceph                             => true,
 | 
			
		||||
        :rbd_user                             => 'cinder',
 | 
			
		||||
        :rbd_pool                             => 'cinder',
 | 
			
		||||
        :ceph_fsid                            => 'secrete',
 | 
			
		||||
        :rbd_secret_uuid                      => 'secrete',
 | 
			
		||||
        :nova_ssh_private_key                 => 'secrete',
 | 
			
		||||
        :nova_ssh_public_key                  => 'public',
 | 
			
		||||
        :ks_nova_internal_proto               => 'http',
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@ describe 'cloud::volume::storage' do
 | 
			
		||||
    let :params do
 | 
			
		||||
      { :cinder_rbd_pool         => 'ceph_cinder',
 | 
			
		||||
        :cinder_rbd_user         => 'cinder',
 | 
			
		||||
        :ceph_fsid               => 'secrete',
 | 
			
		||||
        :cinder_rbd_secret_uuid  => 'secrete',
 | 
			
		||||
        :glance_api_version      => '2' }
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user