Puppet Class: profile::arclamp::redis

Defined in:
modules/profile/manifests/arclamp/redis.pp

Overview



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/profile/manifests/arclamp/redis.pp', line 5

class profile::arclamp::redis() {

    redis::instance { '6379':
        settings => {
            maxmemory                   => '2Mb',
            stop_writes_on_bgsave_error => 'no',
            bind                        => '0.0.0.0',
        },
    }

    firewall::service { 'xenon_redis':
        proto    => 'tcp',
        port     => 6379,
        src_sets => ['DOMAIN_NETWORKS'],
    }

    prometheus::redis_exporter { '6379': }

    profile::auto_restarts::service { 'redis-instance-tcp_6379': }
}