ruby on rails - FATAL: You must set node['postgresql']['password']['postgres'] in chef-solo mode when using posgtresql cookbook -
so included cookbook 'postgresql', {}
in cheffile. have box downloaded , installed vagrant, when run vagrant provision
, gives me error:
fatal: must set node['postgresql']['password']['postgres'] in chef-solo mode
i saw somewhere should add together line:
default['postgresql']['password']['postgres'] = "mypassword"
in default.rb
file in postgresql
cookbook. if add together , vagrant provision
again, line gets deleted , run same error again.
what problem here?
you can set node info in vagrantfile using chef.json
. example:
vagrant.configure("2") |config| # ... config.vm.provision "chef_solo" |chef| # ... chef.json = { postgresql: { password: { postgres: "mypassword" } } } end end
see vagrant docs more information.
ruby-on-rails postgresql vagrant chef
No comments:
Post a Comment