使用Vagrant / Chef

编程入门 行业动态 更新时间:2024-10-28 00:20:01
本文介绍了使用Vagrant / Chef-solo设置postgresql密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在开放源代码项目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

本文发布于:2023-10-20 01:03:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1509366.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Vagrant   Chef

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!