opened
lhoss
username_0
install postgresql 9.6 from the official postgres repo on redhat7 and…
issue
created
alexandruanghel
username_1
Hi, I only managed to test this and it looks good, thanks for the contribution!

I have a question about one bit which might not be needed: https://github.com/hortonworks/ansible-hortonworks/pull/67/files#diff-17537708d9884da712724464939a41eeR104

Is there a reason you have to execute that as the `bin/initdb` command which requires sudo?
From what I can see in the postgres [docs](https://www.postgresql.org/download/linux/redhat/) you only need to execute `/usr/pgsql-9.6/bin/postgresql96-setup initdb` which doesn't need sudo and looks better/simpler to me (main reason being because it's in the docs).


About the amazon linux, don't worry too much about it :) 
It's not supported in HDP2.6 anyway (although some HDP versions do work on amazon linux 1, but not 2).
HDP 3/Ambari 2.7 was supposed to introduce support for Amazon Linux, however there were some bugs in the initial version and it should only work starting with Ambari 2.7.1.0.

I've already done some work to bring Amazon Linux 2 into these playbooks and will commit soon (I'll also remove support for amazon linux 1 as that was never officially supported by HWX anyway).
comment
created
lhoss
username_0
Yeah the reason was I couldn't find  postgresql(96)-setup for the redhat-amazon case, so now I
reverted back to use 'postgresql96-setup initdb' (I had tested it initially) and reverted rh-amazon to original/old default postgres (as you will retire it soon anyway, and indeed the amazon-2 linux support is the one I'm also looking fwd too 👍 )
comment
created
alexandruanghel
username_1
resolves #61
comment