简体   繁体   中英

Puppet use pre-existing version of postgres

I am doing an RPM based install with the relevant bits as follows:

RPM

Requires: puppet => 3.7.4 , postgresql94 => 9.4.1

%post  
puppet apply 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. 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. 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 ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM