Thread: Scripted addition of servers?

Scripted addition of servers?

From
Shaheed Haque
Date:
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.

Thanks, Shaheed


Re: Scripted addition of servers?

From
Dave Page
Date:
Hi

On Fri, Mar 1, 2019 at 9:30 AM Shaheed Haque <srhaque@theiet.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.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: Scripted addition of servers?

From
Shaheed Haque
Date:

On Fri, 1 Mar 2019 at 09:40, Dave Page <dpage@pgadmin.org> wrote:
Hi

On Fri, Mar 1, 2019 at 9:30 AM Shaheed Haque <srhaque@theiet.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.


Perfect, thanks for the quick reply. Apologies for not having consulted the docs first.

Shaheed
 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company