![](/img/trans.png)
[英]FATAL: You must set node['postgresql']['password']['postgres'] in chef-solo mode when using posgtresql cookbook
[英]Setting postgresql password with Vagrant/Chef-solo
我克隆了您的gem並啟動了Vagrant(但是使用了已經下載的Debian Squeeze映像,並且禁用了除postgresql
和postgresql::server
之外的所有配方,並使用PostgreSQL 8.4而不是9.1),似乎空密碼是一個錯誤的選擇,使用
postgresql: {
password: {
postgres: 'foo'
}
}
與命令PGPASSWORD="foo" psql --username=postgres -h localhost
因此我懷疑空密碼有一些問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.