我在开放源代码项目chef-solo /github/influitive/apartment rel = nofollow>公寓,以便贡献者可以更轻松地启动并运行开发环境。
I'm trying my hand at a bit of chef-solo for the first time on a Vagrant box for my open source project apartment so that contributors can more easily get a dev env up and running.
一个我目前还无法实现的事情是覆盖postgresql 配方设置的默认密码cookbooks / postgresql rel = nofollow>此食谱
One thing I'm as of yet unable to achieve though is override the default password set by the postgresql recipe from this cookbook
文档中提到使用以下方式设置json配置:
The docs mention setting the json config with something like:
postgresql: { password: { postgres: '' } }我已经完成了此处,但我似乎无法使它覆盖由配方设置的默认加密密码。
which I've done here but I can't seem to get it to override the default encrypted password that's set by the recipe.
我是厨师的全新(截至今天)无所事事,所以我对接下来应该看的地方有些迷惑。
I'm brand new (as of today) to chef/vagrant so I'm a bit lost as to where I should even look next.
任何帮助将不胜感激。
推荐答案我克隆了您的gem并启动了Vagrant(但是使用了我已经下载的Debian Squeeze映像,并且禁用了除 postgresql 和 postgresql :: server ,并使用PostgreSQL 8.4而不是9.1),似乎空密码是一个错误的选择,使用
I cloned your gem and fired up Vagrant (but using a Debian Squeeze image I already downloaded and with all recipes disabled except postgresql and postgresql::server, and using PostgreSQL 8.4 instead of 9.1) and it seems that the empty password was a bad choice, using
postgresql: { password: { postgres: 'foo' } }使用命令 PGPASSWORD = foo psql --username = postgres -h localhost ,所以我怀疑空密码有一些问题。
works with the command PGPASSWORD="foo" psql --username=postgres -h localhost so I suspect that the empty password has some problems.
更多推荐
使用Vagrant / Chef
发布评论