Skip to content

Commit

Permalink
Multi-region support
Browse files Browse the repository at this point in the history
  • Loading branch information
jtopjian authored and Dan Bode committed Oct 25, 2012
1 parent cc6aadf commit 69746d0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions manifests/keystone/auth.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
type => 'compute',
description => "Openstack Compute Service",
}
keystone_endpoint { $auth_name:
keystone_endpoint { "${region}/${auth_name}":
ensure => present,
region => $region,
public_url => "http://${public_address}:${compute_port}/${compute_version}/%(tenant_id)s",
admin_url => "http://${admin_address}:${compute_port}/${compute_version}/%(tenant_id)s",
internal_url => "http://${internal_address}:${compute_port}/${compute_version}/%(tenant_id)s",
Expand All @@ -42,9 +41,8 @@
type => 'volume',
description => 'Volume Service',
}
keystone_endpoint { "${auth_name}_volume":
keystone_endpoint { "${region}/${auth_name}_volume":
ensure => present,
region => $region,
public_url => "http://${public_address}:${volume_port}/${volume_version}/%(tenant_id)s",
admin_url => "http://${admin_address}:${volume_port}/${volume_version}/%(tenant_id)s",
internal_url => "http://${internal_address}:${volume_port}/${volume_version}/%(tenant_id)s",
Expand All @@ -55,9 +53,8 @@
type => 'ec2',
description => 'EC2 Service',
}
keystone_endpoint { "${auth_name}_ec2":
keystone_endpoint { "${region}/${auth_name}_ec2":
ensure => present,
region => $region,
public_url => "http://${public_address}:${ec2_port}/services/Cloud",
admin_url => "http://${admin_address}:${ec2_port}/services/Admin",
internal_url => "http://${internal_address}:${ec2_port}/services/Cloud",
Expand Down

0 comments on commit 69746d0

Please sign in to comment.