-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
How do you install from PostgresSQL YUM repository #38
Comments
I think I have answered this myself. I ran:
Then looking in So I followed the instructions at https://wiki.postgresql.org/wiki/YUM_Installation to exclude I then re-ran the playbook with the role and got 9.6 installed. To do this in Ansible I added these pre_tasks:
Is this the right way to do it or am I working around my own ineptitude? Thanks |
Hi @worldofchris, I ran into the same issue trying to install PostgreSQL 9.6 on CentOS 7 and your approach got me started down the correct road. However, I still ran into some problems because Postgres is not being installed from system packages. After several unsuccessful attempts, I noticed the section in the README that addresses using non-system packages and came up with the following:
It turns out that you have to be very specific about the version-specific variables but it all seems to work now and I did not have to make any changes to CentOS-Base.repo. Hopefully this helps you out. |
thanks @worldofchris @matthiase both helped me considerably! |
Awesome help. This should be documented in a wiki or something |
If someone wants to get PostgreSQL 10 running with ansible role, I managed to get it working with the following playbook:
|
|
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details. |
Hi,
I'm trying to use this role to install PostgresSQL 9.6 on Centos 7.
It's fine doing 9.2 which is in the base repos but I cannot work out how to configure it to use the PostgresSQL YUM repository in order to get 9.6.
What is the value that needs to go in the
postgresql_enablerepo
variable?I can only find the repository rpms e.g.
https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
When I set:
postgresql_enablerepo: "https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm"
It results in the error:
"Error setting/accessing repos: Error getting repository data for https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm, repository not found"
Can you see what I am doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: