Step 3 - Configuring PGD repositories v4
Configuring PGD repositories
To install and run PGD requires that you configure repositories so that the system can download and install the appropriate packages.
Perform the following operations on each host. For the purposes of this exercise, each host will be a standard data node, but the procedure would be the same for other node types, such as witness or subscriber-only nodes.
Use your EDB account.
- Obtain your EDB repository token from the EDB Repos 2.0 page.
Set environment variables.
Set the
EDB_SUBSCRIPTION_TOKEN
environment variable to the repository token:
Configure the repository.
Run the automated installer to install the repositories:
Red Hat
Ubuntu/Debian
Worked example
Use your EDB account
You need an EDB account to install Postgres Distributed.
Use your EDB account to sign in to the EDB Repos 2.0 page, where you can obtain your repo token.
On your first visit to this page, select Request Access to generate your repo token.
Copy the token to your clipboard using Copy Token, and store it safely.
Set environment variables
Set the EDB_SUBSCRIPTION_TOKEN
environment variable to the value of your EDB repo token, obtained in the EDB account step.
You can add this to your .bashrc
script or similar shell profile to ensure it's always set.
Note
Your preferred platform may support storing this variable as a secret, which can appear as an environment variable. If this is the case, don't add the setting to .bashrc
. Instead add it to your platform's secret manager.
Configure the repository
All the software you need is available from the EDB Postgres Distributed package repository. You have the option to simply download and run a script to configure the EDB Postgres Distributed repository. You can also download, inspect, and then run that same script. The following instructions also include the essential steps that the scripts take for any user wanting to manually run, or automate, the installation process.
RHEL/Other RHEL-based
You can autoinstall with automated OS detection:
If you want to inspect the script that's generated for you, run:
Then, inspect the resulting setup.rpm.sh
file. When you're ready to proceed, run:
If you want to perform all steps manually or use your own preferred deployment mechanism, you can use the following example as a guide.
You will need to pass details of your Linux distribution and version. You may need to change the codename to match the version of RHEL you're using. This example sets it for RHEL-compatible Linux version 9:
Now install the yum-utils
package:
The next step imports a GPG key for the repositories: