 178f4b18dc
			
		
	
	178f4b18dc
	
	
	
		
			
			* Fix following warnings:
    * double quoted string containing no variables
    * indentation of => is not properly aligned
    * mode should be represented as a 4 digit octal value or symbolic mode
    * string containing only a variable
    * top-scope variable being used without an explicit namespace
    * unquoted file mode
    * variable not enclosed in {}
* Fix following errors:
    * trailing whitespace found
    * two-space soft tabs not used
* Remove quotes around class in include/require statements
Change-Id: Ia920d848e1955612a6486ec8731309e6d3a70f63
		
	
		
			
				
	
	
		
			58 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
| class swift::params {
 | |
|   case $::osfamily {
 | |
|     'Debian': {
 | |
|       $package_name                      = 'swift'
 | |
|       $client_package                    = 'python-swiftclient'
 | |
|       $proxy_package_name                = 'swift-proxy'
 | |
|       $proxy_service_name                = 'swift-proxy'
 | |
|       $object_package_name               = 'swift-object'
 | |
|       $object_service_name               = 'swift-object'
 | |
|       $object_auditor_service_name       = 'swift-object-auditor'
 | |
|       $object_replicator_service_name    = 'swift-object-replicator'
 | |
|       $object_updater_service_name       = 'swift-object-updater'
 | |
|       $container_package_name            = 'swift-container'
 | |
|       $container_service_name            = 'swift-container'
 | |
|       $container_auditor_service_name    = 'swift-container-auditor'
 | |
|       $container_replicator_service_name = 'swift-container-replicator'
 | |
|       $container_updater_service_name    = 'swift-container-updater'
 | |
|       $account_package_name              = 'swift-account'
 | |
|       $account_service_name              = 'swift-account'
 | |
|       $account_auditor_service_name      = 'swift-account-auditor'
 | |
|       $account_reaper_service_name       = 'swift-account-reaper'
 | |
|       $account_replicator_service_name   = 'swift-account-replicator'
 | |
|       $swift3                            = 'swift-plugin-s3'
 | |
|       if $::operatingsystem == 'Ubuntu' {
 | |
|         $service_provider = 'upstart'
 | |
|       } else {
 | |
|         $service_provider = undef
 | |
|       }
 | |
|     }
 | |
|     'RedHat': {
 | |
|       $package_name                      = 'openstack-swift'
 | |
|       $client_package                    = 'python-swiftclient'
 | |
|       $proxy_package_name                = 'openstack-swift-proxy'
 | |
|       $proxy_service_name                = 'openstack-swift-proxy'
 | |
|       $object_package_name               = 'openstack-swift-object'
 | |
|       $object_service_name               = 'openstack-swift-object'
 | |
|       $object_auditor_service_name       = 'openstack-swift-object-auditor'
 | |
|       $object_replicator_service_name    = 'openstack-swift-object-replicator'
 | |
|       $object_updater_service_name       = 'openstack-swift-object-updater'
 | |
|       $container_package_name            = 'openstack-swift-container'
 | |
|       $container_service_name            = 'openstack-swift-container'
 | |
|       $container_auditor_service_name    = 'openstack-swift-container-auditor'
 | |
|       $container_replicator_service_name = 'openstack-swift-container-replicator'
 | |
|       $container_updater_service_name    = 'openstack-swift-container-updater'
 | |
|       $account_package_name              = 'openstack-swift-account'
 | |
|       $account_service_name              = 'openstack-swift-account'
 | |
|       $account_auditor_service_name      = 'openstack-swift-account-auditor'
 | |
|       $account_reaper_service_name       = 'openstack-swift-account-reaper'
 | |
|       $account_replicator_service_name   = 'openstack-swift-account-replicator'
 | |
|       $service_provider                  = undef
 | |
|       $swift3                            = 'openstack-swift-plugin-swift3'
 | |
|     }
 | |
|     default: {
 | |
|         fail("Unsupported osfamily: ${::osfamily} for os ${::operatingsystem}")
 | |
|     }
 | |
|   }
 | |
| }
 |