mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Correct postgresql encrypted vs cleartext passwords
This commit is contained in:
parent
b1bd52423a
commit
c8ef72e4d2
9
vagrant/Vagrantfile
vendored
9
vagrant/Vagrantfile
vendored
@ -4,9 +4,13 @@
|
||||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
||||
VAGRANTFILE_API_VERSION = '2'
|
||||
|
||||
require "digest/md5"
|
||||
POSTGRES_PASSWORD = 'securepass'
|
||||
postgres_password_md5 = Digest::MD5.hexdigest(POSTGRES_PASSWORD)
|
||||
|
||||
# Currently, chef postgress cookbook works with cleartext paswords,
|
||||
# unless the password begins with 'md5'
|
||||
# See https://github.com/hw-cookbooks/postgresql/issues/95
|
||||
require "digest/md5"
|
||||
postgres_password_md5 = 'md5'+Digest::MD5.hexdigest(POSTGRES_PASSWORD+'postgres')
|
||||
|
||||
# After starting the vagrant machine, the application is accessible via the URL
|
||||
# http://localhost:9999
|
||||
@ -29,6 +33,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
config.vm.provision :chef_solo do |chef|
|
||||
# run apt-get update before anything else (specifically postgresql)..
|
||||
chef.add_recipe 'apt'
|
||||
chef.add_recipe 'redash::redis_for_redash'
|
||||
chef.add_recipe 'postgresql::client'
|
||||
chef.add_recipe 'postgresql::server'
|
||||
chef.add_recipe 'redash::redash_pg_schema'
|
||||
|
Loading…
Reference in New Issue
Block a user