4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
# File 'modules/openstack/manifests/keystone/service.pp', line 4
class openstack::keystone::service(
$active,
$version,
$token_driver,
Array[Stdlib::Fqdn] $memcached_nodes,
Integer $max_active_keys,
$osm_host,
$db_name,
$db_user,
$db_pass,
$db_host,
$public_workers,
$admin_workers,
$ldap_hosts,
$ldap_base_dn,
$ldap_rw_host,
$ldap_user_id_attribute,
$ldap_user_name_attribute,
$ldap_user_dn,
$ldap_user_pass,
$region,
$keystone_admin_uri,
$wiki_status_page_prefix,
$wiki_status_consumer_token,
$wiki_status_consumer_secret,
$wiki_status_access_token,
$wiki_status_access_secret,
$wiki_consumer_token,
$wiki_consumer_secret,
$wiki_access_token,
$wiki_access_secret,
String $wsgi_server,
Array[Stdlib::IP::Address::V4::CIDR] $instance_ip_ranges,
String $wmcloud_domain_owner,
String $bastion_project_id,
Array[String] $prod_networks,
Array[String] $labs_networks,
Boolean $enforce_policy_scope,
Boolean $enforce_new_policy_defaults,
Stdlib::Port $public_bind_port,
Stdlib::Port $admin_bind_port,
Array[Stdlib::IP::Address::V4::Nosubnet] $prometheus_metricsinfra_reserved_ips,
Array[Stdlib::Port] $prometheus_metricsinfra_default_ports,
Stdlib::Fqdn $horizon_hostname,
) {
class { "openstack::keystone::service::${version}":
memcached_nodes => $memcached_nodes,
max_active_keys => $max_active_keys,
osm_host => $osm_host,
db_name => $db_name,
db_user => $db_user,
db_pass => $db_pass,
db_host => $db_host,
admin_workers => $admin_workers,
public_workers => $public_workers,
ldap_hosts => $ldap_hosts,
ldap_rw_host => $ldap_rw_host,
ldap_base_dn => $ldap_base_dn,
ldap_user_id_attribute => $ldap_user_id_attribute,
ldap_user_name_attribute => $ldap_user_name_attribute,
ldap_user_dn => $ldap_user_dn,
ldap_user_pass => $ldap_user_pass,
region => $region,
keystone_admin_uri => $keystone_admin_uri,
wiki_status_page_prefix => $wiki_status_page_prefix,
wiki_status_consumer_token => $wiki_status_consumer_token,
wiki_status_consumer_secret => $wiki_status_consumer_secret,
wiki_status_access_token => $wiki_status_access_token,
wiki_status_access_secret => $wiki_status_access_secret,
wiki_consumer_token => $wiki_consumer_token,
wiki_consumer_secret => $wiki_consumer_secret,
wiki_access_token => $wiki_access_token,
wiki_access_secret => $wiki_access_secret,
wsgi_server => $wsgi_server,
instance_ip_ranges => $instance_ip_ranges,
wmcloud_domain_owner => $wmcloud_domain_owner,
bastion_project_id => $bastion_project_id,
prod_networks => $prod_networks,
labs_networks => $labs_networks,
enforce_policy_scope => $enforce_policy_scope,
enforce_new_policy_defaults => $enforce_new_policy_defaults,
public_bind_port => $public_bind_port,
admin_bind_port => $admin_bind_port,
prometheus_metricsinfra_reserved_ips => $prometheus_metricsinfra_reserved_ips,
prometheus_metricsinfra_default_ports => $prometheus_metricsinfra_default_ports,
horizon_hostname => $horizon_hostname,
}
group { 'keystone':
ensure => 'present',
require => Package['keystone'],
}
user { 'keystone':
ensure => 'present',
require => Package['keystone'],
}
if $token_driver == 'redis' {
package { 'python-keystone-redis':
ensure => 'present';
}
}
$require = [
Package['keystone'],
Group['keystone'],
User['keystone'],
]
file {
'/var/log/keystone':
ensure => 'directory',
owner => 'keystone',
group => 'keystone',
mode => '0775',
require => $require;
'/etc/keystone':
ensure => 'directory',
owner => 'keystone',
group => 'keystone',
mode => '0755',
require => $require;
'/etc/keystone/domains':
ensure => 'directory',
owner => 'keystone',
group => 'keystone',
mode => '0755',
require => $require,
}
}
|