cache: drop eth0 binding
Close bug #172 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
49cc4bd8ec
commit
bf375bc8c2
@ -21,11 +21,11 @@
|
||||
#
|
||||
# [*listen_ip*]
|
||||
# (optional) IP address on which memcached instance should listen
|
||||
# Default to $::ipaddress_eth0
|
||||
# Default in params.
|
||||
#
|
||||
|
||||
class cloud::cache (
|
||||
$listen_ip = $::ipaddress_eth0,
|
||||
$listen_ip = $os_params::api_eth,
|
||||
){
|
||||
|
||||
class { 'memcached':
|
||||
|
@ -22,6 +22,10 @@ describe 'cloud::cache' do
|
||||
|
||||
shared_examples_for 'cache server' do
|
||||
|
||||
let :params do
|
||||
{ :listen_ip => '10.0.0.1' }
|
||||
end
|
||||
|
||||
it 'configure memcached with some params' do
|
||||
should contain_class('memcached').with(
|
||||
:listen_ip => '10.0.0.1',
|
||||
@ -34,8 +38,7 @@ describe 'cloud::cache' do
|
||||
let :facts do
|
||||
{ :osfamily => 'Debian',
|
||||
:memorysize => '1000 MB',
|
||||
:processorcount => '1',
|
||||
:ipaddress_eth0 => '10.0.0.1' }
|
||||
:processorcount => '1' }
|
||||
end
|
||||
|
||||
it_configures 'cache server'
|
||||
@ -45,8 +48,7 @@ describe 'cloud::cache' do
|
||||
let :facts do
|
||||
{ :osfamily => 'RedHat',
|
||||
:memorysize => '1000 MB',
|
||||
:processorcount => '1',
|
||||
:ipaddress_eth0 => '10.0.0.1' }
|
||||
:processorcount => '1' }
|
||||
end
|
||||
|
||||
it_configures 'cache server'
|
||||
|
Loading…
x
Reference in New Issue
Block a user