diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 8fe3f7c922a..6f4449270ae 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -1435,10 +1435,6 @@ jobs: trigger: true - get: mariadb-connector-c-resource trigger: true - - get: postgres-13-src - trigger: true - - get: postgres-15-src - trigger: true - get: ruby-release trigger: true - get: bosh-blobstore-dav @@ -1484,40 +1480,6 @@ jobs: options: credentials_source: static json_key: '((gcp_json_key))' - - task: bump-postgres-13-package - file: bosh-ci/ci/tasks/bump-postgres-packages.yml - image: integration-image - input_mapping: - bosh: bosh-out - postgres-src: postgres-13-src - output_mapping: - bosh: bosh-out - params: - GIT_USER_NAME: *git_user_name - GIT_USER_EMAIL: *git_user_email - MAJOR_VERSION: 13 - PRIVATE_YML: | - blobstore: - options: - credentials_source: static - json_key: '((gcp_json_key))' - - task: bump-postgres-15-package - file: bosh-ci/ci/tasks/bump-postgres-packages.yml - image: integration-image - input_mapping: - bosh: bosh-out - postgres-src: postgres-15-src - output_mapping: - bosh: bosh-out - params: - GIT_USER_NAME: *git_user_name - GIT_USER_EMAIL: *git_user_email - MAJOR_VERSION: 15 - PRIVATE_YML: | - blobstore: - options: - credentials_source: static - json_key: '((gcp_json_key))' - task: bump-ruby-package file: ruby-release/ci/tasks/shared/bump-ruby-package.yml input_mapping: @@ -1683,21 +1645,6 @@ resources: regex: '>(?P3\.\d+.\d+)\d{4}-\d{2}-\d{2}Stable' uri: "https://ftp.osuosl.org/pub/mariadb/connector-c-{version}/mariadb-connector-c-{version}-src.tar.gz" - - name: postgres-13-src - type: http-resource - source: - index: "https://ftp.postgresql.org/pub/source/" - regex: 'href="v(?P13\.[0-9.]+)/"' - uri: "https://ftp.postgresql.org/pub/source/v{version}/postgresql-{version}.tar.gz" - - - name: postgres-15-src - type: http-resource - source: - index: "https://ftp.postgresql.org/pub/source/" - regex: 'href="v(?P15\.[0-9.]+)/"' - uri: "https://ftp.postgresql.org/pub/source/v{version}/postgresql-{version}.tar.gz" - - - name: bosh-blobstore-dav type: s3 source: diff --git a/ci/tasks/bump-postgres-packages.sh b/ci/tasks/bump-postgres-packages.sh deleted file mode 100755 index e5c17fb0761..00000000000 --- a/ci/tasks/bump-postgres-packages.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -NEED_COMMIT=false - -echo "${PRIVATE_YML}" > bosh/config/private.yml - -set -e - -pushd bosh - CURRENT_BLOBS=$(bosh blobs) - BLOB_PATH=$(ls ../postgres-src/postgresql-*.tar.gz) - FILENAME=$( basename "${BLOB_PATH}" ) - OLD_BLOB_PATH=$(grep "postgresql-${MAJOR_VERSION}" config/blobs.yml | cut -f1 -d:) - if ! echo "${CURRENT_BLOBS}" | grep "${FILENAME}" ; then - NEED_COMMIT=true - echo "adding ${FILENAME}" - bosh add-blob --sha2 "${BLOB_PATH}" "postgres/${FILENAME}" - bosh remove-blob "${OLD_BLOB_PATH}" - bosh upload-blobs - fi - - if ${NEED_COMMIT}; then - echo "-----> $(date): Creating git commit" - git config user.name "${GIT_USER_NAME}" - git config user.email "${GIT_USER_EMAIL}" - git add . - - git --no-pager diff --cached - if [[ "$( git status --porcelain )" != "" ]]; then - git commit -am "Bump packages" - fi - fi -popd diff --git a/ci/tasks/bump-postgres-packages.yml b/ci/tasks/bump-postgres-packages.yml deleted file mode 100644 index e44357d0eff..00000000000 --- a/ci/tasks/bump-postgres-packages.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -platform: linux - -inputs: -- name: bosh-ci -- name: bosh -- name: postgres-src - -outputs: -- name: bosh - -run: - path: bosh-ci/ci/tasks/bump-postgres-packages.sh - -params: - PRIVATE_YML: - MAJOR_VERSION: - GIT_USER_NAME: - GIT_USER_EMAIL: - diff --git a/config/blobs.yml b/config/blobs.yml index b3ab8320f55..3fdb558ea8a 100644 --- a/config/blobs.yml +++ b/config/blobs.yml @@ -2,14 +2,14 @@ azure-storage-cli/azure-storage-cli-0.0.242-linux-amd64: size: 10703448 object_id: 997c7799-404b-4182-76d1-bcf626ea5fa4 sha: sha256:fd094f2cd94a35fdfe0871163e987500295ac1c6fbab495ad254b094dd6dfc8a -bosh-gcscli/bosh-gcscli-0.0.391-linux-amd64: - size: 46940632 - object_id: 423ed690-e2fc-4b73-7df7-867ed4aac50a - sha: sha256:493e7fa48248f78f5e8f7520b8574d20f18cb54a87846b2a85fbefeb47821242 -davcli/davcli-0.0.485-linux-amd64: +bosh-gcscli/bosh-gcscli-0.0.392-linux-amd64: + size: 46940408 + object_id: abc228ac-b0e3-415d-57d1-83ec51cce167 + sha: sha256:a5f2973b69bd628b4076bddf46b24a7d85d52008db7e1af338dbc330f7f388ff +davcli/davcli-0.0.486-linux-amd64: size: 10458919 - object_id: 9babdbdb-618a-4e61-6a50-8c4c6c5db917 - sha: sha256:3367c115ec4968a5660bdba20c658afe6eeb8e29a5739ae89a00451a13690e1a + object_id: a9b66b4f-ed7a-400e-5e48-3d30ae3d51dd + sha: sha256:124464ac1def1916c552f933f158f57451ed43e08341136b85e545686c6829ee mysql/mariadb-connector-c-3.4.9-src.tar.gz: size: 1383464 object_id: 6771a01b-5c33-4d68-4f63-29ae02498be5 @@ -18,22 +18,10 @@ nats/nats-server-v2.14.3-linux-amd64.tar.gz: size: 6843959 object_id: 9c3d83e2-f9d6-43e2-59d4-9c56e0e9cd3c sha: sha256:f3d0c820c749f81d717310fb00d4903919e70e3e66b268bd352a088b9788eb93 -postgres/postgresql-10.23.tar.gz: - size: 25493839 - object_id: 1549746f-1e8d-4ce5-5585-36eca41ab528 - sha: sha256:39886b7fbf375fdd79e94b676d8346a62c3c190ccf00b3f763002c8fc8fb71f0 -postgres/postgresql-13.23.tar.gz: - size: 28506793 - object_id: c2814297-9505-46e7-7b78-9adbd0d4b8f5 - sha: sha256:f5eb642f659d59a9a65df08a1364fed8e83db5df116eff17a2f063a02854069b -postgres/postgresql-15.18.tar.gz: - size: 30728818 - object_id: d0e42b9a-3281-4e39-77eb-32a0d6bdb131 - sha: sha256:d32a533516edc688ebbb96ae221b605be2712edd94d7428b42a4af5644250943 -s3cli/s3cli-0.0.412-linux-amd64: - size: 15998138 - object_id: 2a6c89d3-e918-44d2-5ea3-e98c6d0ac74e - sha: sha256:8c8c9c501644d29b875ac73b1b737a443f9ab50f732c387e07090a78a12c32bf +s3cli/s3cli-0.0.413-linux-amd64: + size: 15962472 + object_id: 8adb4196-1706-432a-40af-b371d7495881 + sha: sha256:d39f4b016d70626b5245b10222e8c91b0bd2c9140040e9049f8cf24f180f4b9f verify-multidigest/verify-multidigest-0.0.624-linux-amd64: size: 4305039 object_id: b9843724-b98b-4075-7c7d-f1cb9b51d64c diff --git a/docs/postgres-migration.md b/docs/postgres-migration.md new file mode 100644 index 00000000000..98aa27f0da5 --- /dev/null +++ b/docs/postgres-migration.md @@ -0,0 +1,85 @@ +# Migrating from bosh postgres jobs to cloudfoundry/postgres-release + +## Background + +The `postgres` and `postgres-13` jobs previously shipped inside the bosh release +have been removed. PostgreSQL is now provided by the +[cloudfoundry/postgres-release](https://github.com/cloudfoundry/postgres-release). + +This release ships PostgreSQL versions 15, 16, 17, and 18. + +## Switching from jobs/postgres (bosh release) + +In your director manifest, replace: + +```yaml +releases: +- name: bosh + version: latest + +instance_groups: +- name: bosh + jobs: + - name: postgres + release: bosh + properties: + postgres: + user: bosh + password: secret + database: bosh + listen_address: 127.0.0.1 + port: 5432 + max_connections: 200 +``` + +With: + +```yaml +releases: +- name: bosh + version: latest +- name: postgres + url: https://bosh.io/d/github.com/cloudfoundry/postgres-release + version: latest + +instance_groups: +- name: bosh + jobs: + - name: postgres + release: postgres + properties: + databases: + version: 15 # match your existing on-disk data version + port: 5432 + max_connections: 500 + databases: + - name: bosh + roles: + - name: bosh + password: secret +``` + +## Switching from jobs/postgres-13 + +Same as above, but set `databases.version: 13`. + +## In-place cutover procedure + +1. Set `databases.version: 15` (or 13 if still on postgres-13). + postgres-release detects the existing `/var/vcap/store/postgres-` + data directory and starts without reinitializing. +2. Deploy. BOSH will restart the postgres process using postgres-release. +3. To upgrade to a newer PostgreSQL major version, change `databases.version` + to 16, 17, or 18 and redeploy. postgres-release handles `pg_upgrade`. + +## Property mapping + +| Old (`bosh` release) | New (`postgres-release`) | +|---------------------------------|----------------------------------------------| +| `postgres.user` | `databases.roles[0].name` | +| `postgres.password` | `databases.roles[0].password` | +| `postgres.database` | `databases.databases[0].name` | +| `postgres.additional_databases` | additional `databases.databases` entries | +| `postgres.listen_address` | `databases.address` (default `127.0.0.1`) | +| `postgres.port` | `databases.port` (default `5432`) | +| `postgres.max_connections` | `databases.max_connections` (default `500`) | diff --git a/jobs/postgres/monit b/jobs/postgres/monit deleted file mode 100644 index 7c3ef102a37..00000000000 --- a/jobs/postgres/monit +++ /dev/null @@ -1,5 +0,0 @@ -check process postgres - with pidfile /var/vcap/sys/run/bpm/postgres/postgres.pid - start program "/var/vcap/jobs/bpm/bin/bpm start postgres" with timeout 300 seconds - stop program "/var/vcap/jobs/bpm/bin/bpm stop postgres" - group vcap diff --git a/jobs/postgres/spec b/jobs/postgres/spec deleted file mode 100644 index 6938ef83029..00000000000 --- a/jobs/postgres/spec +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: postgres - -templates: - bpm.yml: config/bpm.yml - pre-start.erb: bin/pre-start - create-database.erb: bin/create-database - postgres.erb: bin/postgres - postgresql.conf.erb: config/postgresql.conf - -packages: - - postgres-15 - - postgres-13 - -properties: - postgres.user: - description: Username clients must use to access Postgres - default: bosh - postgres.password: - description: Password clients must use to access Postgres - postgres.listen_address: - description: IP address Postgres listens on; use 0.0.0.0 to listen on all IP addresses - default: 127.0.0.1 - postgres.port: - description: TCP port Postgres listens on - default: 5432 - postgres.database: - description: Default Postgres database (it will be created during the startup process) - default: bosh - postgres.additional_databases: - description: Additional Postgres databases to be created (during the startup process) - default: [] - postgres.max_connections: - description: Set max concurrent connections for database - default: 200 diff --git a/jobs/postgres/templates/bpm.yml b/jobs/postgres/templates/bpm.yml deleted file mode 100644 index 65f3c3c4b03..00000000000 --- a/jobs/postgres/templates/bpm.yml +++ /dev/null @@ -1,24 +0,0 @@ -<%= - -postgres_config = { - "name" => "postgres", - "executable" => "/var/vcap/jobs/postgres/bin/postgres", - "shutdown_signal" => "INT", - "additional_volumes" => [ - { - "path" => "/var/vcap/store/postgres-15", - "writable" => true, - }, - ], - "limits" => { - "open_files" => 65536, - }, -} - -config = { - "processes" => [postgres_config], -} - -YAML.dump(config) - -%> diff --git a/jobs/postgres/templates/create-database.erb b/jobs/postgres/templates/create-database.erb deleted file mode 100644 index 14444ca4896..00000000000 --- a/jobs/postgres/templates/create-database.erb +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -e - -PACKAGE_DIR=/var/vcap/packages/postgres-15 - -HOST=<%= p("postgres.listen_address") %> -PORT=<%= p("postgres.port") %> -USER='<%= p("postgres.user") %>' -PASSWORD='<%= p("postgres.password") %>' -DBNAMES=(<%= p("postgres.additional_databases").join(" ") %>) -DBNAMES+=('<%= p("postgres.database") %>') - -export LD_LIBRARY_PATH="$PACKAGE_DIR/lib:$LD_LIBRARY_PATH" - -# wait for database to be running -for i in $( seq 0 30 ); do - if /var/vcap/packages/postgres-15/bin/oid2name -H ${HOST} -U ${USER} -d postgres -q ; then - break - fi - - sleep 1 -done - -set +e - -for DBNAME in "${DBNAMES[@]}"; do - echo "Trying to create database $DBNAME..." - $PACKAGE_DIR/bin/createdb $DBNAME -h $HOST -p $PORT -U vcap - if [ $? != 0 ]; then - echo "Warning: failed to create $DBNAME; ignoring" - fi - - echo "Trying to create user..." - $PACKAGE_DIR/bin/psql -d $DBNAME -h $HOST -p $PORT -U vcap -c "create role \"$USER\" NOSUPERUSER LOGIN INHERIT CREATEDB" - - echo "Trying to alter user (to change password)..." - $PACKAGE_DIR/bin/psql -d $DBNAME -h $HOST -p $PORT -U vcap -c "alter role \"$USER\" with password '$PASSWORD'" - - echo "Grant permission to user" - $PACKAGE_DIR/bin/psql -d $DBNAME -h $HOST -p $PORT -U vcap -c "grant all on schema public to \"$USER\";" -done diff --git a/jobs/postgres/templates/postgres.erb b/jobs/postgres/templates/postgres.erb deleted file mode 100644 index 3e7da7971d4..00000000000 --- a/jobs/postgres/templates/postgres.erb +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -e - -PACKAGE_DIR=/var/vcap/packages/postgres-15 - -STORE_DIR=/var/vcap/store - -# then we switched to including version so it is easier to detect version changes -DATA_DIR=$STORE_DIR/postgres-15 - -JOB_DIR=/var/vcap/jobs/postgres -RUN_DIR=/var/vcap/sys/run/bpm/postgres - -HOST=<%= p("postgres.listen_address") %> -PORT=<%= p("postgres.port") %> -USER='<%= p("postgres.user") %>' - -export LD_LIBRARY_PATH="$PACKAGE_DIR/lib:$LD_LIBRARY_PATH" - - -cp $JOB_DIR/config/postgresql.conf $DATA_DIR - -/var/vcap/jobs/postgres/bin/create-database & - -echo "Starting PostgreSQL:" -exec $PACKAGE_DIR/bin/postgres -h $HOST -p $PORT -D $DATA_DIR diff --git a/jobs/postgres/templates/postgresql.conf.erb b/jobs/postgres/templates/postgresql.conf.erb deleted file mode 100644 index ebd2e702d9b..00000000000 --- a/jobs/postgres/templates/postgresql.conf.erb +++ /dev/null @@ -1,18 +0,0 @@ -data_directory = '/var/vcap/store/postgres-15' - -listen_addresses = '<%= p('postgres.listen_address') %>' -port = <%= p('postgres.port') %> -max_connections = <%= p('postgres.max_connections') %> - -ssl = false - -log_line_prefix = '%t ' - -datestyle = 'iso, mdy' - -lc_messages = 'en_US.UTF-8' -lc_monetary = 'en_US.UTF-8' -lc_numeric = 'en_US.UTF-8' -lc_time = 'en_US.UTF-8' - -default_text_search_config = 'pg_catalog.english' diff --git a/jobs/postgres/templates/pre-start.erb b/jobs/postgres/templates/pre-start.erb deleted file mode 100755 index d320b5c0feb..00000000000 --- a/jobs/postgres/templates/pre-start.erb +++ /dev/null @@ -1,165 +0,0 @@ -#!/bin/bash - -set -eu -set -o pipefail - -CURRENT_POSTGRES_VERSION=15 -OBSOLETE_VERSIONS=(9.4 10) -## These MUST be in "newest supported to oldest supported" order! -UPGRADEABLE_VERSIONS=(13) - -PACKAGE_DIR=/var/vcap/packages/postgres-$CURRENT_POSTGRES_VERSION -PERSISTENT_DISK_DIR=/var/vcap/store -STORE_DIR=${PERSISTENT_DISK_DIR}/postgres-$CURRENT_POSTGRES_VERSION - -USER='<%= p("postgres.user") %>' - -sysctl -w "kernel.shmmax=67108864" - -function print_director_upgrade_recommendation_for { - case $1 in - "9.4") - echo "Please use a previous bosh release version (270.12) to migrate data from postgres-9.4 to postgres-10." - ;; - "10") - echo "Please use a previous bosh release version (280.1.10) to migrate data from postgres-10 to postgres-13." - ;; - # Uncomment once 13 is in ${OBSOLETE_VERSIONS} - # "13") - # echo "Please use a previous bosh release version (280.1.10) to migrate data from postgres-13 to postgres-15." - # ;; - *) - echo "Unknown obsolete postgres version: '$1'!" - echo "Try using a previous bosh release version to migrate data from postgres version '$1' to a supported one." - ;; - esac -} - -UPGRADEABLE_VERSION_INSTALLED=0 -for version in ${UPGRADEABLE_VERSIONS[@]}; do - if [ -d ${PERSISTENT_DISK_DIR}/postgres-${version} ]; then - UPGRADEABLE_VERSION_INSTALLED=1 - break - fi -done - -for version in ${OBSOLETE_VERSIONS[@]}; do - if [ -d ${PERSISTENT_DISK_DIR}/postgres-${version} ]; then - - # Do we have no supported versions installed and also do not have the latest Postgres installed? - if [ $UPGRADEABLE_VERSION_INSTALLED -eq 0 ] && [ ! -d $STORE_DIR ]; then - # We never upgraded this BOSH Director from this obsolete version to a supported one. - # Give a recommendation and exit. - print_director_upgrade_recommendation_for $version - exit 1 - fi - - # delete the obsolete directory to free up space - echo "Deleting obsolete old postgres directory." - rm -rf "${PERSISTENT_DISK_DIR}/postgres-${version}" - fi -done - -# If the latest Postgres has not yet been configured, configure it: -if [[ ! -d ${STORE_DIR} || ! -f ${STORE_DIR}/postgresql.conf ]]; then - mkdir -p "${STORE_DIR}" - chown vcap:vcap "${STORE_DIR}" - - # initdb creates data directories - su - vcap -c "${PACKAGE_DIR}/bin/initdb -E utf8 -D ${STORE_DIR}" - - touch "${STORE_DIR}/fresh" - - if [ $? != 0 ]; then - echo "ERROR: Unable to Initialize Postgres DB" - exit 1 - fi - - echo "host all ${USER} 0.0.0.0/0 md5" >> "${STORE_DIR}/pg_hba.conf" - - mkdir -p "${STORE_DIR}/pg_log" - chown vcap:vcap "${STORE_DIR}/pg_log" -fi - -# If we just configured the latest Postgres, import from the old version -if [[ -f ${STORE_DIR}/fresh ]] ; then - for version in ${UPGRADEABLE_VERSIONS[@]}; do - PACKAGE_DIR_OLD=/var/vcap/packages/postgres-$version - STORE_DIR_OLD=${PERSISTENT_DISK_DIR}/postgres-$version - - if [[ -d ${STORE_DIR_OLD} ]] ; then - echo "copying contents of postgres-$version to postgres-$CURRENT_POSTGRES_VERSION for postgres upgrade..." - su - vcap -c "${PACKAGE_DIR}/bin/pg_upgrade \ - --old-bindir=${PACKAGE_DIR_OLD}/bin \ - --new-bindir=${PACKAGE_DIR}/bin \ - --old-datadir=${STORE_DIR_OLD} \ - --new-datadir=${STORE_DIR}" - - echo "successfully upgraded from postgres-$version" - rm -rf "${STORE_DIR_OLD}" - break - fi - done - - rm "${STORE_DIR}/fresh" -fi - -# "bpm enforces its own locking around process operations to avoid race conditions" -# from docs: https://bosh.io/docs/bpm/runtime/ -# so postmaster.pid is stale if it still exists -# remove it to prevent running into: -# FATAL: lock file "postmaster.pid" already exists -if [[ -f ${STORE_DIR}/postmaster.pid ]] ; then - rm "${STORE_DIR}/postmaster.pid" -fi - -# The below code reindexes Postgres databases if the glibc version has changed since we last performed a reindex, -# or if we don't know when we reindexed and are running a version of glibc that made major changes to the system collation. -# See: -# -# for more information about why we do this, and why we consider glibc versions older than 2.28 to be unaffected. -# -# NOTE: If you edit this code, make sure to update the copies in all of the other Postgres versions. Extracting this into a common -# file and sharing that file amongst the Postgres releases was just as bad as having multiple copies, so this is what we did. - -rebuild_postgres_indexes() -{ - POSTGRES_DATABASE_USER="vcap" - for database in $(echo "select datname from pg_database" | su - vcap -c "${PACKAGE_DIR}/bin/postgres --single -D ${STORE_DIR} postgres | egrep -o '\".*\"'") - do - echo "Going to reindex database '$database' in '${STORE_DIR}'" - echo "REINDEX DATABASE $database" | su - vcap -c "${PACKAGE_DIR}/bin/postgres --single -D ${STORE_DIR} $database" - # This doesn't work on Postgres versions earlier than 15, because REFRESH COLLATION VERSION isn't a thing until 15. - echo "ALTER DATABASE $database REFRESH COLLATION VERSION" | su - vcap -c "${PACKAGE_DIR}/bin/postgres --single -D ${STORE_DIR} $database" || /bin/true - done -} - -PREVIOUS_GLIBC_VERSION_DIR=${PERSISTENT_DISK_DIR}/postgres-previous-glibc-tracking/ -PREVIOUS_GLIBC_VERSION_FILE=${PREVIOUS_GLIBC_VERSION_DIR}/previous-glibc-version.txt -BREAKING_GLIBC_MAJOR=2 -BREAKING_GLIBC_MINOR=28 - -previous_glibc_version=$(cat $PREVIOUS_GLIBC_VERSION_FILE 2>/dev/null || echo "") -previous_glibc_major=$(echo $previous_glibc_version | cut -d "." -f 1) -previous_glibc_minor=$(echo $previous_glibc_version | cut -d "." -f 2) - -current_glibc_version="$(dpkg-query --show --showformat '${Version}\n' libc6 | egrep -o '^[0-9.]+')" -current_glibc_major=$(echo $current_glibc_version | cut -d "." -f 1) -current_glibc_minor=$(echo $current_glibc_version | cut -d "." -f 2) - -if [[ -f $PREVIOUS_GLIBC_VERSION_FILE ]] -then - if [[ $current_glibc_version != $previous_glibc_version ]] - then - rebuild_postgres_indexes - fi -else - # If we're newer or equal to 2.28, we'll rebuild indexes to handle the issue we know about and any future ones. - if [[ $current_glibc_major -gt $BREAKING_GLIBC_MAJOR || $current_glibc_minor -ge $BREAKING_GLIBC_MINOR ]] - then - rebuild_postgres_indexes - fi -fi - -mkdir -p $PREVIOUS_GLIBC_VERSION_DIR 2>/dev/null -echo $current_glibc_version > $PREVIOUS_GLIBC_VERSION_FILE diff --git a/packages/postgres-15/README.md b/packages/postgres-15/README.md deleted file mode 100644 index d223d30096b..00000000000 --- a/packages/postgres-15/README.md +++ /dev/null @@ -1,5 +0,0 @@ -postgres-15 package -============ -Postgres! - -The blob contains source code, we probably got it [here?](https://www.postgresql.org/ftp/source/v15.1/) diff --git a/packages/postgres-15/packaging b/packages/postgres-15/packaging deleted file mode 100644 index 44b878bbe11..00000000000 --- a/packages/postgres-15/packaging +++ /dev/null @@ -1,29 +0,0 @@ -set -e -x - -tar xzf postgres/postgresql-15.*.tar.gz - -pushd postgresql-* - ./configure --prefix=${BOSH_INSTALL_TARGET} - - pushd src/bin/pg_config - make - make install - popd - - cp -LR src/include ${BOSH_INSTALL_TARGET} - - pushd src/interfaces/libpq - make - make install - popd - - pushd src - make - make install - popd - - pushd contrib - make - make install - popd -popd diff --git a/packages/postgres-15/spec b/packages/postgres-15/spec deleted file mode 100644 index 7faa07c0a7d..00000000000 --- a/packages/postgres-15/spec +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: postgres-15 - -files: -- postgres/postgresql-15.*.tar.gz diff --git a/spec/postgres_bpm_spec.rb b/spec/postgres_bpm_spec.rb deleted file mode 100644 index 589ca82a07f..00000000000 --- a/spec/postgres_bpm_spec.rb +++ /dev/null @@ -1,43 +0,0 @@ -require 'spec_helper' - -RSpec.shared_examples 'rendered postgres* bpm.yml' do - let(:release) { Bosh::Common::Template::Test::ReleaseDir.new(RELEASE_ROOT) } - let(:template) { job.template('config/bpm.yml') } - - subject(:rendered_template) do - YAML.load(template.render(properties)) - end - - context 'with standard config' do - let(:properties) do - { - postgres: { - adapter: "postgres", - database: "bosh", - host: "127.0.0.1", - listen_address: "127.0.0.1", - password: "secret", - user: "postgres", - }, - } - end - - it 'should use SIGINT as shutdown signal' do - expect(rendered_template['processes'][0]).to include('shutdown_signal' => 'INT') - end - end -end - -RSpec.describe 'postgres job rendering' do - describe 'postgres job' do - it_should_behave_like 'rendered postgres* bpm.yml' do - let(:job) { release.job('postgres') } - end - end - - describe 'postgres-13 job' do - it_should_behave_like 'rendered postgres* bpm.yml' do - let(:job) { release.job('postgres-13') } - end - end -end