木偶和Postgres烦人的警告:通过“版本”到postgresql :: server已过时 [英] Puppet and Postgres annoying warning: Passing "version" to postgresql::server is deprecated
问题描述
我正在使用puppet-postgresql模块来管理PostgreSQL。清单的那部分内容如下:
I'm using the puppet-postgresql module to manage PostgreSQL. That part of the manifest looks like this:
class { 'postgresql::server':
postgres_password => 'postgres',
}
postgresql::server::db { $db_name:
user => $db_user,
password => postgresql_password($db_user, $db_password),
}
工作正常,但令人讨厌警告:
Works fine but I get the annoying warning:
Warning: Scope(Class[Postgresql::Server]): Passing "version" to postgresql::server is deprecated; please use postgresql::globals instead.
编辑:
我什至将版本添加到全局变量中,但我仍然收到警告:
I even added the version to the globals, but I'm still getting the warning:
class { 'postgresql::globals':
version => '9.3',
}->
class { 'postgresql::server':
postgres_password => 'postgres',
}
postgresql::server::db { $db_name:
user => $db_user,
password => postgresql_password($db_user, $db_password),
}
但我没有通过版本 到 postgresql :: server
。我在这里做错了什么?
But I'm not passing any 'version' to postgresql::server
. What I'm doing wrong here?
文档 https ://forge.puppetlabs.com/puppetlabs/postgresql 在这种情况下并没有帮助我...
Docs https://forge.puppetlabs.com/puppetlabs/postgresql didn't helped me in this case...
推荐答案
这是3.4.x系列中puppetlabs-postgresql模块中的错误。此问题已在 PR 471 中修复,它将在下一个主要版本中发布(从外观上看是4.0.0)。
It's a bug in the puppetlabs-postgresql module in the 3.4.x series. It's since been fixed in PR 471 which will be released in the next major version (4.0.0 by the looks of it).
这篇关于木偶和Postgres烦人的警告:通过“版本”到postgresql :: server已过时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!