Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples of how to use a non-default version of postgres #4

Closed
cprice404 opened this issue Sep 11, 2012 · 5 comments
Closed

Examples of how to use a non-default version of postgres #4

cprice404 opened this issue Sep 11, 2012 · 5 comments

Comments

@cprice404
Copy link

It would be nice to have some example manifests in the "tests" directory which demonstrated how to use a non-default version of postgres. So, e.g., on CentOS6, the default is postgres 8.4. However, if you add the postgres RPM package repos, you can install postgres 9.1. The module supports this but we don't illustrate how you'd go about configuring your setup to take advantage of it.

@blkperl
Copy link
Contributor

blkperl commented Nov 3, 2012

Looking at the source code its not obvious to me how to do this. If some gives me some hints I'll submit a pull request and add it to the tests and README.

@cprice404
Copy link
Author

So, peeking at the existing manifests, it looks like there is a little bit of missing plumbing. What probably need to happen is that types like postgresql::database need to allow an additional parameter called pg_version or something to that affect; it would default to the value of $::postgres_default_version. Then, we need to get rid of all of the direct references to $::postgres_default_version ; unfortunately, quite a few of those are in params.pp... so those might need to be moved into config.pp instead, since params.pp is inherited.

Maybe not quite as easy as I thought when I originally added the issue.

@cprice404
Copy link
Author

There is in an example of this in the tests directory now, as of pull req #43. Could still use some more examples and docs though, so I'll leave this open for the moment.

@cprice404
Copy link
Author

This needs at least one more example, for debian.

@cprice404
Copy link
Author

There are examples in the tests directory now. The example code is the same for redhat/debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants