gpt4 book ai didi

postgresql - 如何使用 chef `postgresql` Recipe 创建 postgres 角色?

转载 作者:行者123 更新时间:2023-11-29 12:21:05 25 4
gpt4 key购买 nike

在 CentOS 6.5 上

我正在使用这个 postgres community cookbook并且能够使用 chef here 安装 postgresql

现在我需要使用 Chef 创建一个角色,但我不知道如何操作。

应运行以下命令:

CREATE ROLE my_pg_role WITH ...

参见 pg doc

最佳答案

我在任何地方都找不到postgresql_role 资源,但是一个很好的起点是postgresql_user 的库。在database Recipe 。这包含了您已经在使用的 postgres Recipe 。

关于postgresql - 如何使用 chef `postgresql` Recipe 创建 postgres 角色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23739754/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com