aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile/manifests')
-rw-r--r--modules/profile/manifests/redis.pp34
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/profile/manifests/redis.pp b/modules/profile/manifests/redis.pp
new file mode 100644
index 0000000..79871b1
--- /dev/null
+++ b/modules/profile/manifests/redis.pp
@@ -0,0 +1,34 @@
1class profile::redis {
2 file { '/etc/systemd/system/redis.service.d/':
3 ensure => "directory",
4 path => "/etc/systemd/system/redis.service.d/",
5 mode => "0755",
6 owner => "root",
7 group => "root"
8 } ->
9 file { '/etc/systemd/system/redis.service.d/socket_shutdown.conf':
10 ensure => "present",
11 path => "/etc/systemd/system/redis.service.d/noclear.conf",
12 source => 'puppet:///modules/profile/redis/socket_shutdown_override.conf',
13 recurse => true,
14 mode => "0644",
15 owner => "root",
16 group => "root",
17 notify => Service["redis"],
18 }
19
20 package { "ruby-augeas":
21 ensure => installed,
22 } ->
23 class { '::redis':
24 unixsocket => "/run/redis/redis.sock",
25 unixsocketperm => "777",
26 ulimit => false,
27 daemonize => false,
28 config_file => "/etc/redis.conf",
29 config_file_orig => "/etc/redis.conf.puppet",
30 port => 0,
31 require => File["/etc/systemd/system/redis.service.d/socket_shutdown.conf"],
32 }
33
34}