Closed Bug 1038956 Opened 7 years ago Closed 7 years ago

Add Postgres initialization to Vagrant

Categories

(Socorro :: Infra, task)

x86_64
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bramwelt, Assigned: bramwelt)

References

Details

There are two problems when booting a new VM related to Postgres:
1) The PATH is not correctly set to include `/usr/psql-9.3/bin`
2) The test role is not created in Postgres

#1 specifically, causes `make bootstrap` to fail as psycopg looks for `pg_config`. When peep fails, none of the downloaded packages are cached and all have to be downloaded again.

Both should be simple changes. #2 specifically should be done exactly as the docs say, but has yet to be added.

#2 - http://socorro.readthedocs.org/en/latest/installation/postgres.html#add-a-new-superuser-account-to-postgresql
Assignee: nobody → tbramwell
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Commit pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/878cd6b79c95fb3b937f08621a4789d4c2b63164
Wait for pg_hba to be updated before creating user

Puppet tries to create the postgres test user after postgres has been
initialized, but before pg_hba.conf has been updated and the service
restarted.

Fixes Bug 1038956
See Also: → 1039762
Target Milestone: --- → 95
You need to log in before you can comment on or make changes to this bug.