Skip to content

Commit 69746d0

Browse files
jtopjianDan Bode
authored andcommitted
Multi-region support
1 parent cc6aadf commit 69746d0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

manifests/keystone/auth.pp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
type => 'compute',
3030
description => "Openstack Compute Service",
3131
}
32-
keystone_endpoint { $auth_name:
32+
keystone_endpoint { "${region}/${auth_name}":
3333
ensure => present,
34-
region => $region,
3534
public_url => "http://${public_address}:${compute_port}/${compute_version}/%(tenant_id)s",
3635
admin_url => "http://${admin_address}:${compute_port}/${compute_version}/%(tenant_id)s",
3736
internal_url => "http://${internal_address}:${compute_port}/${compute_version}/%(tenant_id)s",
@@ -42,9 +41,8 @@
4241
type => 'volume',
4342
description => 'Volume Service',
4443
}
45-
keystone_endpoint { "${auth_name}_volume":
44+
keystone_endpoint { "${region}/${auth_name}_volume":
4645
ensure => present,
47-
region => $region,
4846
public_url => "http://${public_address}:${volume_port}/${volume_version}/%(tenant_id)s",
4947
admin_url => "http://${admin_address}:${volume_port}/${volume_version}/%(tenant_id)s",
5048
internal_url => "http://${internal_address}:${volume_port}/${volume_version}/%(tenant_id)s",
@@ -55,9 +53,8 @@
5553
type => 'ec2',
5654
description => 'EC2 Service',
5755
}
58-
keystone_endpoint { "${auth_name}_ec2":
56+
keystone_endpoint { "${region}/${auth_name}_ec2":
5957
ensure => present,
60-
region => $region,
6158
public_url => "http://${public_address}:${ec2_port}/services/Cloud",
6259
admin_url => "http://${admin_address}:${ec2_port}/services/Admin",
6360
internal_url => "http://${internal_address}:${ec2_port}/services/Cloud",

0 commit comments

Comments
 (0)