diff --git a/deployment/memcached/memcached-container-puppet.yaml b/deployment/memcached/memcached-container-puppet.yaml index 2051ad547b..6124bd3e81 100644 --- a/deployment/memcached/memcached-container-puppet.yaml +++ b/deployment/memcached/memcached-container-puppet.yaml @@ -199,16 +199,6 @@ outputs: - is_ipv6 - 'notls:[::1]:11211' - 'notls:127.0.0.1:11211' - memcached::listen_ip_uri: - - if: - - is_ipv6 - - '::1' - - '127.0.0.1' - - str_replace: - template: - "%{lookup('$NETWORK_uri')}" - params: - $NETWORK: {get_param: [ServiceNetMap, MemcachedNetwork]} memcached::tcp_port: {get_param: MemcachedPort} memcached::max_connections: {get_param: MemcachedMaxConnections} memcached::max_memory: {get_param: MemcachedMaxMemory} @@ -238,7 +228,16 @@ outputs: - memcached collectd::plugin::memcached::instances: local: - host: "%{lookup('memcached::listen_ip_uri')}" + host: + - if: + - is_ipv6 + - '::1' + - '127.0.0.1' + - str_replace: + template: + "%{lookup('$NETWORK_uri')}" + params: + $NETWORK: {get_param: [ServiceNetMap, MemcachedNetwork]} port: # collectd has no support to Memcached+TLS yet. - if: - enable_non_tls_port