aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/redis.pp
blob: 79871b1a59694af03b9096aa6080f154e80fb35e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class profile::redis {
  file { '/etc/systemd/system/redis.service.d/':
    ensure => "directory",
    path   => "/etc/systemd/system/redis.service.d/",
    mode   => "0755",
    owner  => "root",
    group  => "root"
  } ->
  file { '/etc/systemd/system/redis.service.d/socket_shutdown.conf':
    ensure  => "present",
    path    => "/etc/systemd/system/redis.service.d/noclear.conf",
    source  => 'puppet:///modules/profile/redis/socket_shutdown_override.conf',
    recurse => true,
    mode    => "0644",
    owner   => "root",
    group   => "root",
    notify  => Service["redis"],
  }

  package { "ruby-augeas":
    ensure => installed,
  } ->
  class { '::redis':
    unixsocket       => "/run/redis/redis.sock",
    unixsocketperm   => "777",
    ulimit           => false,
    daemonize        => false,
    config_file      => "/etc/redis.conf",
    config_file_orig => "/etc/redis.conf.puppet",
    port             => 0,
    require          => File["/etc/systemd/system/redis.service.d/socket_shutdown.conf"],
  }

}