~james-w/python-oops-tools/prod-deploy

« back to all changes in this revision

Viewing changes to src/oopstools/README.txt

  • Committer: Tarmac
  • Author(s): Robert Collins
  • Date: 2012-07-27 05:15:52 UTC
  • mfrom: (36.1.2 report-address)
  • Revision ID: launchpad@pqm.canonical.com-20120727051552-e8q325t5lo9oe72q
Allow a custom email address on each report.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
Create a new cluster for lpoops:
107
107
 
108
 
    $ LC_ALL=C sudo pg_createcluster 8.4 lpoops --encoding UNICODE --port 5433
 
108
    $ LC_ALL=C sudo pg_createcluster 9.1 lpoops --encoding UNICODE --port 5433
109
109
 
110
 
Apply the following patch to /etc/postgresql/8.4/lpoops/pg_hba.conf. Note that
 
110
Apply the following patch to /etc/postgresql/9.1/lpoops/pg_hba.conf. Note that
111
111
this configuration change needs to be before the "DO NOT DISABLE!" line in the
112
112
pg_hba.conf file.
113
113
 
114
 
    sudo patch /etc/postgresql/8.4/lpoops/pg_hba.conf <<'EOF'
 
114
    sudo patch /etc/postgresql/9.1/lpoops/pg_hba.conf <<'EOF'
115
115
    --- pg_hba.conf 2005-11-02 17:33:08.000000000 -0800
116
116
    +++ /tmp/pg_hba.conf    2005-11-03 07:32:46.932400423 -0800
117
117
    @@ -58,7 +58,9 @@
132
132
 
133
133
Start the cluster.
134
134
 
135
 
    $ sudo pg_ctlcluster 8.4 lpoops start
 
135
    $ sudo pg_ctlcluster 9.1 lpoops start
136
136
 
137
137
Add your own user to the cluster:
138
138
 
139
 
    $ sudo -u postgres /usr/lib/postgresql/8.4/bin/createuser -a -d $USER --port
140
 
    5433
 
139
    $ sudo -u postgres createuser -a -d $USER --port 5433
141
140
 
142
141
To create the new db:
143
142
 
144
143
    $ createuser lpoops --createdb --no-superuser --no-createrole --port 5433
145
 
    $ createdb -O lpoops lpoops --host localhost --port 5433
 
144
    $ createdb -O lpoops lpoops  --port 5433
146
145
 
147
146
Note that this command creates a password-less database. Use --password to
148
147
create a db with a password.