The previous LWRP used HTTP/S to interrogate and modify opentstack-identity data. As the API is somewhat of a moving target, migrate the register provider to include everything it had previously, combine that with the credentials provider, and rework all the identity calls to use the Identity (keystone) CLI tools. This logic follows the same logic that was found in the previous provider. In fact, code was recycled where appropriate - much of the same log messages and branch logic remain. The two functions that power this methodology are: identity_command - calls the identity client with the parameters supplied and returns stdout upon success. Upon failure, raise a RuntimeException with the message being stderr. identity_uuid - wrapper around identity_command that given a type of resource to interrogate and an index for the data returned, will provide the UUID of the target or nil if not found. Upon error, this function will bubble up an exception. These changes are accompanied by some spec tests to test the various function of the LWRP itself. Bumping the openstack-common dependency to 0.2.1. All tests pass. Change-Id: I4230f047ee9c26d076ad14c48afac73f0e92c4ad
		
			
				
	
	
		
			20 lines
		
	
	
		
			756 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			756 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
name             "openstack-identity"
 | 
						|
maintainer       "Opscode, Inc."
 | 
						|
maintainer_email "matt@opscode.com"
 | 
						|
license          "Apache 2.0"
 | 
						|
description      "The OpenStack Identity service Keystone."
 | 
						|
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
 | 
						|
version          "2012.2.1"
 | 
						|
 | 
						|
recipe           "openstack-identity::db", "Configures database for use with keystone"
 | 
						|
recipe           "openstack-identity::server", "Installs and Configures Keystone Service"
 | 
						|
recipe           "openstack-identity::registration", "Adds user, tenant, role and endpoint records to Keystone"
 | 
						|
 | 
						|
%w{ ubuntu fedora redhat centos }.each do |os|
 | 
						|
  supports os
 | 
						|
end
 | 
						|
 | 
						|
depends          "database"
 | 
						|
depends          "mysql"
 | 
						|
depends          "openstack-common", ">= 0.2.1"
 |