Skip to content

Commit

Permalink
Specify custom pidfile when testing sentinel on 16.04
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjfisher committed Mar 11, 2019
1 parent fbe284d commit 000d519
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
$redis_master = '127.0.0.1'
$failover_timeout = '10000'
# We're testing with `manage_repo` true. In redis-sentinel 5, the daemon has its own rundir
if $::operatingsystem == 'Ubuntu' && $::operatingsystemmajrelease == '16.04' {
$pidfile = '/var/run/sentinel/redis-sentinel.pid'
} else {
$pidfile = undef
}
class { 'redis':
manage_repo => true,
}
Expand All @@ -24,6 +31,7 @@ class { 'redis::sentinel':
master_name => $master_name,
redis_host => $redis_master,
failover_timeout => $failover_timeout,
pid_file => $pidfile,
}
EOS

Expand Down

0 comments on commit 000d519

Please sign in to comment.