Add a 'bind_host' parameter to keystone::wsgi::apache to allow binding to a specific IP address. Fixes Bug #1273697 Change-Id: I4e94336c15132900dbe42052e46d0c7f2e36f91f
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
# Example using apache to serve keystone
 | 
						|
#
 | 
						|
# To be sure everything is working, run:
 | 
						|
#   $ export OS_USERNAME=admin
 | 
						|
#   $ export OS_PASSWORD=ChangeMe
 | 
						|
#   $ export OS_TENANT_NAME=openstack
 | 
						|
#   $ export OS_AUTH_URL=http://keystone.local/keystone/main/v2.0
 | 
						|
#   $ keystone catalog
 | 
						|
#   Service: identity
 | 
						|
#   +-------------+----------------------------------------------+
 | 
						|
#   |   Property  |                    Value                     |
 | 
						|
#   +-------------+----------------------------------------------+
 | 
						|
#   |   adminURL  | http://keystone.local:80/keystone/admin/v2.0 |
 | 
						|
#   |      id     |       4f0f55f6789d4c73a53c51f991559b72       |
 | 
						|
#   | internalURL | http://keystone.local:80/keystone/main/v2.0  |
 | 
						|
#   |  publicURL  | http://keystone.local:80/keystone/main/v2.0  |
 | 
						|
#   |    region   |                  RegionOne                   |
 | 
						|
#   +-------------+----------------------------------------------+
 | 
						|
#
 | 
						|
 | 
						|
Exec { logoutput => 'on_failure' }
 | 
						|
 | 
						|
class { 'mysql::server': }
 | 
						|
class { 'keystone::db::mysql':
 | 
						|
  password => 'keystone',
 | 
						|
}
 | 
						|
class { 'keystone':
 | 
						|
  verbose        => true,
 | 
						|
  debug          => true,
 | 
						|
  sql_connection => 'mysql://keystone:keystone@127.0.0.1/keystone',
 | 
						|
  catalog_type   => 'sql',
 | 
						|
  admin_token    => 'admin_token',
 | 
						|
  enabled        => false,
 | 
						|
}
 | 
						|
class { 'keystone::roles::admin':
 | 
						|
  email    => 'test@puppetlabs.com',
 | 
						|
  password => 'ChangeMe',
 | 
						|
}
 | 
						|
class { 'keystone::endpoint':
 | 
						|
  public_url => "https://${::fqdn}:5000/",
 | 
						|
  admin_url  => "https://${::fqdn}:35357/",
 | 
						|
}
 | 
						|
 | 
						|
keystone_config { 'ssl/enable': value => true }
 | 
						|
 | 
						|
include apache
 | 
						|
class { 'keystone::wsgi::apache':
 | 
						|
  ssl => true
 | 
						|
}
 |