Add support for setting redis port and password

This commit adds options for setting redis port and password. Without this change it is not possible to specify the redis port or password.
This commit is contained in:
kirby@puppetlabs.com 2018-05-25 11:54:46 -07:00
parent 00970ffc9e
commit a9ca914832
2 changed files with 6 additions and 4 deletions

View file

@ -86,8 +86,8 @@ module Vmpooler
parsed_config
end
def self.new_redis(host = 'localhost')
Redis.new(host: host)
def self.new_redis(host = 'localhost', port = nil, password = nil)
Redis.new(host: host, port: port, password: password)
end
def self.new_logger(logfile)