Dato che stai usando Vagrant dovresti probabilmente aggiungere qualcosa come il seguente al tuo Vagrantfile nel config.vm.provision :chef_solo do |chef| sezione (dove uno o più chef.add_recipe esistono anche le chiamate):
config.vm.provision :chef_solo do |chef|
# other stuff... like: chef.add_recipe "postgresql::server"
chef.json = {
"postgresql" => {
"password" => {
"postgres" => "iloverandompasswordsbutthiswilldo"
}
}
}
end
Il chef.json hash è il luogo in cui vanno tutti gli attributi specifici del tuo nodo e che viene consegnato a chef-solo durante il provisioning gestito da Vagrant, vedi Documento Vagrant
per ulteriori informazioni.