Skip to content

Commit

Permalink
Merge pull request #3584 from EnterpriseDB/docs/pge/initial-import
Browse files Browse the repository at this point in the history
Import of PGE docs
  • Loading branch information
drothery-edb authored Feb 14, 2023
2 parents a29e7cb + 51e286f commit 73e81d0
Show file tree
Hide file tree
Showing 68 changed files with 1,229 additions and 52 deletions.
1 change: 1 addition & 0 deletions build-sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"efm": true,
"epas": true,
"pgd": true,
"pge": true,
"eprs": true,
"hadoop_data_adapter": true,
"jdbc_connector": true,
Expand Down
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const sourceToPluginConfig = {
efm: { name: "efm", path: "product_docs/docs/efm" },
epas: { name: "epas", path: "product_docs/docs/epas" },
pgd: { name: "pgd", path: "product_docs/docs/pgd" },
pge: { name: "pge", path: "product_docs/docs/pge" },
eprs: { name: "eprs", path: "product_docs/docs/eprs" },
hadoop_data_adapter: {
name: "hadoop_data_adapter",
Expand Down
29 changes: 29 additions & 0 deletions install_template/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,35 @@ products:
- name: SLES 15
arch: ppc64le
supported versions: [11, 12, 13, 14]
- name: EDB Postgres Extended Server
platforms:
- name: CentOS 7
arch: x86_64
supported versions: [15]
- name: AlmaLinux 8 or Rocky Linux 8
arch: x86_64
supported versions: [15]
- name: RHEL 7 or OL 7
arch: x86_64
supported versions: [15]
- name: RHEL 8 or OL 8
arch: x86_64
supported versions: [15]
- name: Ubuntu 18.04
arch: x86_64
supported versions: [15]
- name: Debian 11
arch: x86_64
supported versions: [15]
- name: Debian 10
arch: x86_64
supported versions: [15]
- name: Ubuntu 22.04
arch: x86_64
supported versions: [15]
- name: Ubuntu 20.04
arch: x86_64
supported versions: [15]
- name: EDB*Plus
platforms:
- name: CentOS 7
Expand Down
27 changes: 3 additions & 24 deletions install_template/deploy.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -151,30 +151,9 @@ const moveDoc = async (product, platform, version) => {

// prettier-ignore
const destFilename = integralDeploymentPath || match(context,
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "CentOS 7"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository/${fmtArchPath(ctx)}/epas_centos7_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "AlmaLinux 8 or Rocky Linux 8"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_other_linux8_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "RHEL 7 or OL 7"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_rhel7_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "RHEL 8 or OL 8"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_rhel8_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "RHEL 8"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_rhel8_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "RHEL 7"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_rhel7_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "SLES 12"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository/${fmtArchPath(ctx)}/epas_sles12_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "SLES 15"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_sles15_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "Debian 10"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_deb10_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "Debian 11"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_deb11_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "Ubuntu 18.04"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_ubuntu18_${fmtArchFilename(ctx)}.mdx`),
when({product: {name: "EDB Postgres Advanced Server", version: 14}, platform: {name: "Ubuntu 20.04"}},
(ctx) => `epas/14/epas_inst_linux/installing_epas_using_edb_repository//${fmtArchPath(ctx)}/epas_ubuntu20_${fmtArchFilename(ctx)}.mdx`), );
when({product: {name: "xdb", version: 99}, platform: {name: "MS-DOS 4.0"}},
(ctx) => `xdb/99/installing/${fmtArchPath(ctx)}/xdb_centos7_${fmtArchFilename(ctx)}.mdx`),
);

function match(context, ...conditions) {
for (let test of conditions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
{% set packageManagerNoninteractive = "-y" %}
{% set epelRepo = "epel-release" %}
{% block redhatConfig %}# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools{% block mysqlfdw %}{% endblock mysqlfdw %}{% endblock redhatConfig %}
sudo dnf config-manager --set-enabled powertools{% block mysqlfdw %}{% endblock mysqlfdw %}{% endblock redhatConfig %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "products/edb-postgres-extended-server/base.njk" %}
{% set platformBaseTemplate = "almalinux-8-or-rocky-linux-8" %}
{% block installCommand %}
{{ super() }}
{% endblock installCommand %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% extends "platformBase/" + platformBaseTemplate + '.njk' %}
{% set packageName = packageName or 'edb-postgresextended<xx>-server edb-postgresextended<xx>-contrib' %}
{% import "platformBase/_deploymentConstants.njk" as deploy %}
{% block frontmatter %}
{#
If you modify deployment path here, please first copy the old expression
and add it to the list under "redirects:" below - this ensures we don't
break any existing links.
#}
deployPath: pge/{{ product.version }}/installing/linux_{{platform.arch}}/pge_{{deploy.map_platform[platform.name]}}.mdx
redirects:
{% endblock frontmatter %}
{% block installCommand %}
{{super()}}
Where `<xx>` is the version of EDB Postgres Extended Server you are installing. For example, if you are installing version 15, the package name would be `edb-postgresextended15`.

{% endblock installCommand %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "products/edb-postgres-extended-server/base.njk" %}
{% set platformBaseTemplate = "centos-7" %}
{% block installCommand %}
{{ super() }}
{% endblock installCommand %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "products/edb-postgres-extended-server/debian.njk" %}
{% set platformBaseTemplate = "debian-10" %}
{% set packageName %}edb-postgresextended-<xx> edb-postgresextended-<xx>-contrib{% endset %}
{% block installCommand %}
```shell
sudo {{ packageManager }} {{ packageManagerNoninteractive }} install {{ packageName }}
```

Where `<xx>` is the version of EDB Postgres Extended Server you are installing. For example, if you are installing version 15, the package name would be `edb-postgresextended-15`.

{% endblock installCommand %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "products/edb-postgres-extended-server/debian.njk" %}
{% set platformBaseTemplate = "debian-11" %}
{% set packageName %}edb-postgresextended-<xx> edb-postgresextended-<xx>-contrib{% endset %}
{% block installCommand %}
```shell
sudo {{ packageManager }} {{ packageManagerNoninteractive }} install {{ packageName }}
```

Where `<xx>` is the version of EDB Postgres Extended Server you are installing. For example, if you are installing version 15, the package name would be `edb-postgresextended-15`.

{% endblock installCommand %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% extends "products/edb-postgres-extended-server/debian.njk" %}
{% set platformBaseTemplate = "debian-9" %}
{% set packageName %}edb-postgresextended<xx>{% endset %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% extends "products/edb-postgres-extended-server/base.njk" %}
{% block debian_ubuntu %}This section steps you through getting started with your cluster including logging in, ensuring the installation was successful, connecting to your cluster, and creating the user password.

```shell{% endblock debian_ubuntu %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "products/edb-postgres-extended-server/base.njk" %}
{% set platformBaseTemplate = "rhel-7-or-ol-7" %}
{% block installCommand %}
{{ super() }}
{% endblock installCommand %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "products/edb-postgres-extended-server/rhel-7-or-ol-7.njk" %}
{% set includePPC = true %}
{% set packageName %}edb-postgresextended<xx>{% endset %}
{% block installCommand %}
{{ super() }}
{% endblock installCommand %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "products/edb-postgres-extended-server/base.njk" %}
{% set platformBaseTemplate = "rhel-8-or-ol-8" %}
{% block installCommand %}
{{ super() }}
{% endblock installCommand %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{% extends "products/edb-postgres-extended-server/rhel-8-or-ol-8.njk" %}
{% set includePPC = true %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% extends "products/edb-postgres-extended-server/base.njk" %}
{% set platformBaseTemplate = "sles-12" %}
{% set packageManager = "zypper" %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{% extends "products/edb-postgres-extended-server/sles-12.njk" %}
{% set includePPC = true %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% extends "products/edb-postgres-extended-server/base.njk" %}
{% set platformBaseTemplate = "sles-15" %}
{% set packageManager = "zypper" %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{% extends "products/edb-postgres-extended-server/sles-15.njk" %}
{% set includePPC = true %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% extends "products/edb-postgres-extended-server/ubuntu.njk" %}
{% set platformBaseTemplate = "ubuntu-18.04" %}
{% set packageName %}edb-postgresextended-<xx> edb-postgresextended-<xx>-contrib{% endset %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% extends "products/edb-postgres-extended-server/ubuntu.njk" %}
{% set platformBaseTemplate = "ubuntu-20.04" %}
{% set packageName %}edb-postgresextended-<xx> edb-postgresextended-<xx>-contrib{% endset %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "products/edb-postgres-extended-server/ubuntu.njk" %}
{% set platformBaseTemplate = "ubuntu-22.04" %}
{% set packageName %}edb-postgresextended-<xx> edb-postgresextended-<xx>-contrib{% endset %}
{% block frontmatter %}
{# remove this block when Ubuntu 22 is released #}
{% endblock frontmatter %}

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "products/edb-postgres-extended-server/base.njk" %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
{% set platformBaseTemplate = "rhel-8-or-ol-8" %}
{% block redhatConfig %}# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools

# Disable the built-in PostgreSQL module:
sudo dnf -qy module disable postgresql{% endblock redhatConfig %}
{% endblock redhatConfig %}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
{% block redhatConfig %}
# Enable additional repositories to resolve dependencies:
ARCH=$( /bin/arch ) subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms"

# Disable the built-in PostgreSQL module:
sudo dnf -qy module disable postgresql{% endblock redhatConfig %}
{% endblock redhatConfig %}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ Before you begin the installation process:
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools

# Disable the built-in PostgreSQL module:
sudo dnf -qy module disable postgresql
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ Before you begin the installation process:
# Enable additional repositories to resolve dependencies:
ARCH=$( /bin/arch ) subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms"

# Disable the built-in PostgreSQL module:
sudo dnf -qy module disable postgresql
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before you begin the installation process:
# Install the EPEL repository:
sudo dnf -y install epel-release
# Enable additional repositories to resolve dependencies:
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled powertools
```

## Install the package
Expand Down
Loading

0 comments on commit 73e81d0

Please sign in to comment.