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*]
|
# [*listen_ip*]
|
||||||
# (optional) IP address on which memcached instance should listen
|
# (optional) IP address on which memcached instance should listen
|
||||||
# Default to $::ipaddress_eth0
|
# Default in params.
|
||||||
#
|
#
|
||||||
|
|
||||||
class cloud::cache (
|
class cloud::cache (
|
||||||
$listen_ip = $::ipaddress_eth0,
|
$listen_ip = $os_params::api_eth,
|
||||||
){
|
){
|
||||||
|
|
||||||
class { 'memcached':
|
class { 'memcached':
|
||||||
|
@ -22,6 +22,10 @@ describe 'cloud::cache' do
|
|||||||
|
|
||||||
shared_examples_for 'cache server' do
|
shared_examples_for 'cache server' do
|
||||||
|
|
||||||
|
let :params do
|
||||||
|
{ :listen_ip => '10.0.0.1' }
|
||||||
|
end
|
||||||
|
|
||||||
it 'configure memcached with some params' do
|
it 'configure memcached with some params' do
|
||||||
should contain_class('memcached').with(
|
should contain_class('memcached').with(
|
||||||
:listen_ip => '10.0.0.1',
|
:listen_ip => '10.0.0.1',
|
||||||
@ -34,8 +38,7 @@ describe 'cloud::cache' do
|
|||||||
let :facts do
|
let :facts do
|
||||||
{ :osfamily => 'Debian',
|
{ :osfamily => 'Debian',
|
||||||
:memorysize => '1000 MB',
|
:memorysize => '1000 MB',
|
||||||
:processorcount => '1',
|
:processorcount => '1' }
|
||||||
:ipaddress_eth0 => '10.0.0.1' }
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'cache server'
|
it_configures 'cache server'
|
||||||
@ -45,8 +48,7 @@ describe 'cloud::cache' do
|
|||||||
let :facts do
|
let :facts do
|
||||||
{ :osfamily => 'RedHat',
|
{ :osfamily => 'RedHat',
|
||||||
:memorysize => '1000 MB',
|
:memorysize => '1000 MB',
|
||||||
:processorcount => '1',
|
:processorcount => '1' }
|
||||||
:ipaddress_eth0 => '10.0.0.1' }
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'cache server'
|
it_configures 'cache server'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user