1 # == Class: keystone::endpoint
3 # Creates the auth endpoints for keystone
8 # (optional) Public url for keystone endpoint. (Defaults to 'http://127.0.0.1:5000')
9 # This url should *not* contain any version or trailing '/'.
12 # (optional) Internal url for keystone endpoint. (Defaults to $public_url)
13 # This url should *not* contain any version or trailing '/'.
16 # (optional) Admin url for keystone endpoint. (Defaults to 'http://127.0.0.1:35357')
17 # This url should *not* contain any version or trailing '/'.
20 # (optional) Region for endpoint. (Defaults to 'RegionOne')
23 # (optional) API version for endpoint. Appended to all endpoint urls. (Defaults to 'v2.0')
27 # class { 'keystone::endpoint':
28 # public_url => 'https://154.10.10.23:5000',
29 # internal_url => 'https://11.0.1.7:5000',
30 # admin_url => 'https://10.0.1.7:35357',
33 class keystone::endpoint (
34 $public_url = 'http://127.0.0.1:5000',
35 $internal_url = undef,
36 $admin_url = 'http://127.0.0.1:35357',
38 $region = 'RegionOne',
41 $public_url_real = "${public_url}/${version}"
42 $admin_url_real = "${admin_url}/${version}"
45 $internal_url_real = "${internal_url}/${version}"
47 $internal_url_real = "${public_url}/${version}"
50 keystone::resource::service_identity { 'keystone':
51 configure_user => false,
52 configure_user_role => false,
53 service_type => 'identity',
54 service_description => 'OpenStack Identity Service',
55 public_url => $public_url_real,
56 admin_url => $admin_url_real,
57 internal_url => $internal_url_real,