debops.memcached default variables

Installation and packages

memcached__base_packages

List of required APT packages to install for memcached service.

memcached__base_packages: [ 'memcached' ]
memcached__packages

List of additional APT packages to install with memcached.

memcached__packages: []
memcached__version

The installed memcached version. This variable is autodetected using Ansible local facts.

memcached__version: '{{ ansible_local.memcached.version
                        if (ansible_local|d() and ansible_local.memcached|d() and
                            ansible_local.memcached.version|d())
                        else "0.0.0" }}'

Memcached configuration

memcached__bind

IP address on which memcached listens for new connections. To listen on all interfaces, set it to 0.0.0.0.

memcached__bind: '127.0.0.1'
memcached__allow

List of IP addresses or CIDR subnets which are allowed to connect to this memcached. If the list is empty, remote connections are denied.

memcached__allow: []
memcached__memory

Maximum amount of RAM memcached is allowed to use.

memcached__memory: '{{ (memcached__memory_available  | float *
                        memcached__memory_multiplier | float) | int }}'
memcached__memory_available

Amount of RAM which debops.memcached takes into account while calculating memcached__memory variable.

memcached__memory_available: '{{ ansible_memtotal_mb }}'
memcached__memory_multiplier

Value which is multiplied by amount of available RAM to limit memory accessible to memcached. 1.0 will allow access to all available memory, values bigger than 1.0 don't make much sense.

memcached__memory_multiplier: '0.3'
memcached__connections

Maximum number of allowed connections.

memcached__connections: '1024'
memcached__options

Additional memcached options, specified as YAML text block.

memcached__options: ''

Configuration for other Ansible roles

memcached__etc_services__dependent_list

Configuration for the debops.etc_services Ansible role.

memcached__etc_services__dependent_list:

  - name: 'memcache'
    port: '11211'
memcached__ferm__dependent_rules

Configuration for the debops.ferm Ansible role.

memcached__ferm__dependent_rules:

  - type: 'accept'
    dport: [ 'memcache' ]
    protocol: [ 'tcp', 'udp' ]
    saddr: '{{ memcached__allow }}'
    accept_any: False
    weight: '50'
    role: 'memcached'