Puppet Class: openstack::profile::swift::proxy
- Defined in:
- manifests/profile/swift/proxy.pp
Overview
The profile for installing the Swift Proxy
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 |
# File 'manifests/profile/swift/proxy.pp', line 2
class openstack::profile::swift::proxy {
openstack::resources::controller { 'swift': }
openstack::resources::firewall { 'Swift Proxy': port => '8080', }
class { 'swift::keystone::auth':
password => hiera('openstack::swift::password'),
public_address => hiera('openstack::controller::address::api'),
admin_address => hiera('openstack::controller::address::management'),
internal_address => hiera('openstack::controller::address::management'),
region => hiera('openstack::region'),
}
class { '::swift':
swift_hash_suffix => hiera('openstack::swift::hash_suffix'),
}
# sets up the proxy service
class { '::swift::proxy':
proxy_local_net_ip => hiera('openstack::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 => [ hiera('openstack::controller::address::management'), ]
}
class { ['::swift::proxy::ratelimit',
'::swift::proxy::swift3', ]: }
class { '::swift::proxy::authtoken':
admin_password => hiera('openstack::swift::password'),
auth_host => hiera('openstack::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 => hiera('openstack::controller::address::management'),
}
}
|