Redis: Enable authentication
Change-Id: Ie8b903d1b6e60d7c8f718f92d25907b5f638e888
This commit is contained in:
parent
c25cf05431
commit
3a27628625
@ -55,14 +55,12 @@ class openstack_integration::config (
|
||||
# different: https://bugs.launchpad.net/swift/+bug/1610064
|
||||
$memcached_servers = ["inet6:[${host}]:11211"]
|
||||
$swift_memcached_servers = ["[${host}]:11211"]
|
||||
$tooz_url = "redis://[${host}]:6379"
|
||||
} else {
|
||||
$host = '127.0.0.1'
|
||||
$hostname = 'localhost'
|
||||
$ip_version = '4'
|
||||
$memcached_servers = ["${host}:11211"]
|
||||
$swift_memcached_servers = $memcached_servers
|
||||
$tooz_url = "redis://${host}:6379"
|
||||
}
|
||||
|
||||
# in URL, brackets are needed
|
||||
@ -71,4 +69,5 @@ class openstack_integration::config (
|
||||
$base_url = "${proto}://${ip_for_url}"
|
||||
$keystone_auth_uri = "${base_url}:5000"
|
||||
$keystone_admin_uri = "${base_url}:5000"
|
||||
$tooz_url = "redis://:a_big_secret@${ip_for_url}:6379"
|
||||
}
|
||||
|
@ -4,5 +4,6 @@ class openstack_integration::redis {
|
||||
class { 'redis':
|
||||
bind => $::openstack_integration::config::host,
|
||||
ulimit_managed => false,
|
||||
requirepass => 'a_big_secret',
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user