 7268105cdf
			
		
	
	7268105cdf
	
	
	
		
			
			Fix "WARNING: there should be a single space before '=>'" newly detected by new puppet-lint. Note that [ssl] enable option in an example file is removed because the option no longer exists in keystone. Change-Id: I39f79e978220d889e6b1f06988c0ef9e20532a6c
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.5 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/v3
 | |
| #   $ keystone catalog
 | |
| #   Service: identity
 | |
| #   +-------------+----------------------------------------------+
 | |
| #   |   Property  |                    Value                     |
 | |
| #   +-------------+----------------------------------------------+
 | |
| #   |   adminURL  | http://keystone.local:80/v3                  |
 | |
| #   |      id     |       4f0f55f6789d4c73a53c51f991559b72       |
 | |
| #   | internalURL | http://keystone.local:80/v3                  |
 | |
| #   |  publicURL  | http://keystone.local:80/v3                  |
 | |
| #   |    region   |                  RegionOne                   |
 | |
| #   +-------------+----------------------------------------------+
 | |
| #
 | |
| 
 | |
| Exec { logoutput => 'on_failure' }
 | |
| 
 | |
| class { 'mysql::server': }
 | |
| class { 'keystone::db::mysql':
 | |
|   password => 'keystone',
 | |
| }
 | |
| class { 'keystone::db':
 | |
|   database_connection => 'mysql://keystone:keystone@127.0.0.1/keystone',
 | |
| }
 | |
| 
 | |
| class { 'keystone':
 | |
|   debug          => true,
 | |
|   catalog_driver => 'sql',
 | |
|   enabled        => true,
 | |
| }
 | |
| class { 'keystone::bootstrap':
 | |
|   password   => 'ChangeMe',
 | |
|   public_url => "https://${facts['networking']['fqdn']}:443/v3",
 | |
|   admin_url  => "https://${facts['networking']['fqdn']}:443/v3",
 | |
| }
 | |
| 
 | |
| include apache
 | |
| class { 'keystone::wsgi::apache':
 | |
|   ssl      => true,
 | |
|   api_port => 443,
 | |
| }
 |