Skip to content

Commit 216b1c6

Browse files
authored
Merge pull request echocat#113 from jplindquist/master
Make server and sentinel exec names unique echocat#111
2 parents e52954e + 9ed1ff0 commit 216b1c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

manifests/sentinel.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
# startup script
111111
if ($::osfamily == 'RedHat' and versioncmp($::operatingsystemmajrelease, '7') >=0 and $::operatingsystem != 'Amazon') {
112112
$service_file = "/usr/lib/systemd/system/redis-sentinel_${sentinel_name}.service"
113-
exec { "systemd_service_${sentinel_name}_preset":
113+
exec { "systemd_service_sentinel_${sentinel_name}_preset":
114114
command => "/bin/systemctl preset redis-sentinel_${sentinel_name}.service",
115115
notify => Service["redis-sentinel_${sentinel_name}"],
116116
refreshonly => true,
@@ -121,7 +121,7 @@
121121
mode => '0755',
122122
content => template('redis/systemd/sentinel.service.erb'),
123123
require => File[$conf_file],
124-
notify => Exec["systemd_service_${sentinel_name}_preset"],
124+
notify => Exec["systemd_service_sentinel_${sentinel_name}_preset"],
125125
}
126126
} else {
127127
$service_file = "/etc/init.d/redis-sentinel_${sentinel_name}"

manifests/server.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
}
217217

218218
if $has_systemd {
219-
exec { "systemd_service_${redis_name}_preset":
219+
exec { "systemd_service_server_${redis_name}_preset":
220220
command => "/bin/systemctl preset redis-server_${redis_name}.service",
221221
notify => Service["redis-server_${redis_name}"],
222222
refreshonly => true,
@@ -230,7 +230,7 @@
230230
File[$conf_file],
231231
File["${redis_dir}/redis_${redis_name}"]
232232
],
233-
notify => Exec["systemd_service_${redis_name}_preset"],
233+
notify => Exec["systemd_service_server_${redis_name}_preset"],
234234
}
235235
} else {
236236
file { $service_file:

0 commit comments

Comments
 (0)