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 208
208
}
209
209
210
210
if $has_systemd {
211
- exec { "systemd_service_ ${redis_name}_preset" :
211
+ exec { "systemd_service_server_ ${redis_name}_preset" :
212
212
command => " /bin/systemctl preset redis-server_${redis_name} .service" ,
213
213
notify => Service[" redis-server_${redis_name} " ],
214
214
refreshonly => true ,
222
222
File [$conf_file ],
223
223
File [" ${redis_dir} /redis_${redis_name} " ]
224
224
],
225
- notify => Exec[" systemd_service_ ${redis_name} _preset" ],
225
+ notify => Exec[" systemd_service_server_ ${redis_name} _preset" ],
226
226
}
227
227
} else {
228
228
$service_file = " /etc/init.d/redis-server_${redis_name} "
You can’t perform that action at this time.
0 commit comments