[英]Puppet use pre-existing version of postgres
I am doing an RPM based install with the relevant bits as follows: 我正在使用相关位进行基于RPM的安装,如下所示:
RPM RPM
Requires: puppet => 3.7.4 , postgresql94 => 9.4.1
%post
puppet apply test.pp
test.pp test.pp
node 'foo'{
class{ 'postgresql::server':
}
}
I want to configure the version of postgres that gets installed by the Requires
element from my RPM. 我想配置由我的RPM中的
Requires
元素安装的postgres版本。 However, I have been unable to find a way to force puppet to use the one that already exists. 但是,我一直无法找到一种方法来强制木偶使用已经存在的木偶。
It sounds as if you are seeing PostgreSQL upgraded. 听起来好像您正在查看PostgreSQL升级。 In that case, the cause would be either your requires line (what is the version that already exists?), or something buried in puppet's globals (as noted in Puppet and PostgreSQL annoying warning: Passing “version” to postgresql::server is deprecated ).
在这种情况下,原因是,要么你需要行(什么是已经存在的版本?),或东西埋在木偶的全局变量(如指出的木偶和PostgreSQL恼人的警告:传递“版本”到PostgreSQL ::服务器已被弃用 )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.