Specifying a source in puppet doesn't seem to work

Posted by Mr Wilde on Server Fault See other posts from Server Fault or by Mr Wilde
Published on 2012-12-18T22:09:51Z Indexed on 2012/12/18 23:04 UTC
Read the original article Hit count: 296

Filed under:
|
|
|

I have been attempting to create a manifest for installing postgres 9.1 using puppet on a Centos 5 server. I have been trying to adapt the instructions at http://wiki.postgresql.org/wiki/YUM_Installation in order to achieve this and when I go through a manual process, I have been able to.

It would seem to me therefore that a puppet manifest containing

package { 'postgresql91-server':
  ensure => installed,
  source => 'http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-centos91-9.1-4.noarch.rpm'
}

however on attempting to apply this manifest I get

err: /Stage[main]//Package[postgresql91-server]/ensure: change from absent to present failed: Could not find package postgresql91-server

Any expert puppeteers out there able to help me?

© Server Fault or respective owner

Related posts about postgresql

Related posts about yum