File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 110
110
# startup script
111
111
if ($::osfamily == ' RedHat' and versioncmp($::operatingsystemmajrelease , ' 7' ) >=0 and $::operatingsystem != ' Amazon' ) {
112
112
$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" :
114
114
command => " /bin/systemctl preset redis-sentinel_${sentinel_name} .service" ,
115
115
notify => Service[" redis-sentinel_${sentinel_name} " ],
116
116
refreshonly => true ,
121
121
mode => ' 0755' ,
122
122
content => template (' redis/systemd/sentinel.service.erb' ),
123
123
require => File [$conf_file ],
124
- notify => Exec[" systemd_service_ ${sentinel_name} _preset" ],
124
+ notify => Exec[" systemd_service_sentinel_ ${sentinel_name} _preset" ],
125
125
}
126
126
} else {
127
127
$service_file = " /etc/init.d/redis-sentinel_${sentinel_name} "
Original file line number Diff line number Diff line change 216
216
}
217
217
218
218
if $has_systemd {
219
- exec { "systemd_service_ ${redis_name}_preset" :
219
+ exec { "systemd_service_server_ ${redis_name}_preset" :
220
220
command => " /bin/systemctl preset redis-server_${redis_name} .service" ,
221
221
notify => Service[" redis-server_${redis_name} " ],
222
222
refreshonly => true ,
230
230
File [$conf_file ],
231
231
File [" ${redis_dir} /redis_${redis_name} " ]
232
232
],
233
- notify => Exec[" systemd_service_ ${redis_name} _preset" ],
233
+ notify => Exec[" systemd_service_server_ ${redis_name} _preset" ],
234
234
}
235
235
} else {
236
236
file { $service_file:
You can’t perform that action at this time.
0 commit comments