This repository has been archived by the owner on May 14, 2019. It is now read-only.
/
proxy.pp
77 lines (63 loc) · 2.25 KB
/
proxy.pp
1
2
3
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
# The profile for installing the Swift Proxy
class openstack::profile::swift::proxy {
openstack::resources::firewall { 'Swift Proxy': port => '8080', }
class { 'swift::keystone::auth':
password => $::openstack::config::swift_password,
public_address => $::openstack::config::controller_address_api,
admin_address => $::openstack::config::controller_address_management,
internal_address => $::openstack::config::controller_address_management,
region => $::openstack::config::region,
}
class { '::swift':
swift_hash_suffix => $::openstack::config::swift_hash_suffix,
}
# sets up the proxy service
class { '::swift::proxy':
proxy_local_net_ip => $::openstack::config::controller_address_api,
pipeline => [
'catch_errors',
'healthcheck',
'cache',
'ratelimit',
'swift3',
'authtoken',
'keystone',
'proxy-server'
],
workers => 1,
require => Class['::swift::ringbuilder'],
}
### BEGIN Middleware Configuration (declared in pipeline for proxy)
class { [
'::swift::proxy::catch_errors',
'::swift::proxy::healthcheck',
]:
}
class { '::swift::proxy::cache':
memcache_servers => [ $::openstack::config::controller_address_management, ]
}
class { [
'::swift::proxy::ratelimit',
'::swift::proxy::swift3',
]:
}
class { '::swift::proxy::authtoken':
admin_password => $::openstack::config::swift_password,
auth_host => $::openstack::config::controller_address_management,
}
class { '::swift::proxy::keystone': }
### END Middleware Configuration
# collect all of the resources that are needed to balance the ring
Ring_object_device <<| |>>
Ring_container_device <<| |>>
Ring_account_device <<| |>>
class { 'swift::ringbuilder':
part_power => 18,
replicas => 3,
min_part_hours => 1,
require => Class['::swift'],
}
class { 'swift::ringserver':
local_net_ip => $::openstack::config::controller_address_management,
}
}