From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Shaheed Haque <srhaque(at)theiet(dot)org> |
Cc: | pgAdmin Support <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: Scripted addition of servers? |
Date: | 2019-03-01 09:39:23 |
Message-ID: | CA+OCxozj6RzhNXZUXRZ+VjQGKnSuZmFnphUX+gcSUQcUxNzirw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hi
On Fri, Mar 1, 2019 at 9:30 AM Shaheed Haque <srhaque(at)theiet(dot)org> wrote:
> Elsewhere [1], I mentioned that I have pgAdmin running in server mode
> behind nginx and gunicorn in an embedded role, to provide admin access to a
> pre-determined set of servers.
>
> As part of that, the initial user is pre-configured programmatically like
> this:
>
> PGADMIN_SETUP_EMAIL=$SUPERUSER PGADMIN_SETUP_PASSWORD=$PW python3 .../setup.py
>
> Is it possible to programatically set up servers? At a minimum, I'd guess
> I'd need to specify the server name, the username and password for each
> server.
>
Yes. See
https://www.pgadmin.org/docs/pgadmin4/4.x/export_import_servers.html.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Elizabeth Mytko | 2019-03-01 15:18:44 | pgAdmin Download as CSV |
Previous Message | Shaheed Haque | 2019-02-28 22:38:15 | Re: Hosting pgAdmin4 behind nginx and at /pgdmin, for mortals |