简体   繁体   English

人偶使用postgres的先前版本

[英]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.

相关问题 您如何将现有数据库添加到Postgres? - How do you add a pre-existing database to Postgres? 使用 Spring 引导运行 Postgres 的预先存在的 Docker 容器接线 - Wiring Up pre-existing Docker container running Postgres with Spring Boot Postgres docker 容器外部访问问题,当使用绑定安装的数据目录和预先存在的数据库时 - Postgres docker container external access issue when using a bind mounted data directory with pre-existing database 将单个R对象列写入预先存在的postgres db表中 - Writing a single column of R object into pre-existing postgres db table 带有新Rails应用程序的现有数据库 - Pre-existing database with new rails application Windows中的RoR不适用于使用Linux中的RoR构建的现有应用 - RoR in Windows not working for pre-existing app built with RoR in linux 如何将Django模型与现有数据库同步? - how to sync django models with pre-existing database? PostgreSQL 逻辑复制 - 忽略预先存在的数据 - PostgreSQL logical replication - ignore pre-existing data 将我的 Fluent 模型链接到预先存在的数据库表 - Linking my Fluent model to a pre-existing database table 使用人偶模块的方法(postgres示例) - A way to use puppet module (postgres example)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM