为什么puppet模块postgresql会产生这个目录中找不到的错误



我正在使用来自https://forge.puppet.com/modules/puppetlabs/postgresql/7.5.0和在层次结构中具有以下声明的

postgresql::server::pg_hba_rules:
"allow_subnet_1”:
description: 'Allow subnet 1'
type: 'host'
address: ’10.10.56.0/24'
database: 'foreman'
user: 'foreman'
auth_method: 'md5'
order: '201'

它会产生以下警告,

Warning: /Stage[main]/Postgresql::Server/Postgresql::Server::Pg_hba_rule[allow1]/Concat::Fragment[pg_hba_rule_allow1]/Concat_fragment[pg_hba_rule_allow1]: Target Concat_file with path of /var/lib/pgsql/14/data/pg_hba.conf not found in the catalog

存在创建hba规则的尝试,然后以"0"失败;在目录中找不到"-我能得到帮助了解为什么不能按预期工作吗?

如果需要,我可以提供更多日志。

感谢

这很有效。

添加规则:

postgresql::globals:
manage_pg_hba_conf: 'true'
postgresql::server::pg_hba_conf_path: "/nfs/pgsql/data/%{hiera('postgresql::globals::version')}/pg_hba.conf"
#postgresql::server::manage_pg_hba_conf: true
postgresql::server::pg_hba_rules:
"Allow xxx":
description: 'Allow trusted connection for the xxx server.'
type: 'host'
database: 'all'
user: 'postgres'
address: '10.10.10.1/32'
auth_method: 'trust'
"Allow xxx1":
description: 'Allow trusted connections from the monitoring host (xxx1).'
type: 'host'
database: 'postgres'
user: 'nagios'
address: '10.10.11.1/32'
auth_method: 'trust'

相关内容

最新更新