Hello,
I am a big fan of gerrit which I find incredibly useful and usable as far as code review tools go. There is one thing however I find extremely painful, it's gerrit installation.
I have tried to automate gerrit +postgresql installation and configuration and I am running into postgres authentication issue which I do not know exactly how to solve. Here are the scripts I have written (they are run as part of vagrant):
The postgresql.sh script:
#!/bin/sh
# install postgres
sudo yum install -y postgresql-server git
# start it
sudo service postgresql initdb
sudo chkconfig postgresql on
sudo service postgresql start
# allow connections from localhost
sudo sed -i -e '/127.0.0.1/i\
host reviewdb ciadmin 127.0.0.1/32 trust' /var/lib/pgsql/data/pg_hba.conf
sudo service postgresql start
# configure DB
sudo -u postgres createuser -ldrS ciadmin
If given, createuser will issue a prompt for the password of the new user. This is not necessary if you do not plan on using password authentication.
Thanks for your reply.Yes, I deliberately omitted this option because I do not want to be prompted for a password within the script.
@Arnaud Bailly
Willing to share your Vagrantfile for folks to poke around at?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/lHokbi3FDgA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Arnaud Bailly
Willing to share your Vagrantfile for folks to poke around at?