Add pv for psql + upgrade postgres to 13.3

This commit is contained in:
Quentin 2021-07-02 17:06:58 +02:00
parent e97496e09d
commit 4fdc4a5144
Signed by untrusted user: quentin
GPG key ID: A98E9B769E4FF428
2 changed files with 9 additions and 8 deletions

View file

@ -1,4 +1,4 @@
job "postgres9.6" { job "postgres13.3" {
datacenters = ["dc1"] datacenters = ["dc1"]
type = "system" type = "system"
priority = 90 priority = 90
@ -20,12 +20,12 @@ job "postgres9.6" {
driver = "docker" driver = "docker"
config { config {
image = "superboum/amd64_postgres:v5" image = "superboum/amd64_postgres:v10"
network_mode = "host" network_mode = "host"
readonly_rootfs = false readonly_rootfs = false
command = "/usr/local/bin/stolon-sentinel" command = "/usr/local/bin/stolon-sentinel"
args = [ args = [
"--cluster-name", "pissenlit", "--cluster-name", "chelidoine",
"--store-backend", "consul", "--store-backend", "consul",
"--store-endpoints", "http://consul.service.2.cluster.deuxfleurs.fr:8500", "--store-endpoints", "http://consul.service.2.cluster.deuxfleurs.fr:8500",
] ]
@ -39,12 +39,12 @@ job "postgres9.6" {
driver = "docker" driver = "docker"
config { config {
image = "superboum/amd64_postgres:v5" image = "superboum/amd64_postgres:v10"
network_mode = "host" network_mode = "host"
readonly_rootfs = false readonly_rootfs = false
command = "/usr/local/bin/stolon-proxy" command = "/usr/local/bin/stolon-proxy"
args = [ args = [
"--cluster-name", "pissenlit", "--cluster-name", "chelidoine",
"--store-backend", "consul", "--store-backend", "consul",
"--store-endpoints", "http://consul.service.2.cluster.deuxfleurs.fr:8500", "--store-endpoints", "http://consul.service.2.cluster.deuxfleurs.fr:8500",
"--port", "${NOMAD_PORT_psql_proxy_port}", "--port", "${NOMAD_PORT_psql_proxy_port}",
@ -81,12 +81,12 @@ job "postgres9.6" {
driver = "docker" driver = "docker"
config { config {
image = "superboum/amd64_postgres:v5" image = "superboum/amd64_postgres:v10"
network_mode = "host" network_mode = "host"
readonly_rootfs = false readonly_rootfs = false
command = "/usr/local/bin/stolon-keeper" command = "/usr/local/bin/stolon-keeper"
args = [ args = [
"--cluster-name", "pissenlit", "--cluster-name", "chelidoine",
"--store-backend", "consul", "--store-backend", "consul",
"--store-endpoints", "http://consul.service.2.cluster.deuxfleurs.fr:8500", "--store-endpoints", "http://consul.service.2.cluster.deuxfleurs.fr:8500",
"--data-dir", "/mnt/persist", "--data-dir", "/mnt/persist",
@ -95,7 +95,7 @@ job "postgres9.6" {
"--pg-repl-password", "${PG_REPL_PWD}", "--pg-repl-password", "${PG_REPL_PWD}",
"--pg-listen-address", "${attr.unique.network.ip-address}", "--pg-listen-address", "${attr.unique.network.ip-address}",
"--pg-port", "${NOMAD_PORT_psql_port}", "--pg-port", "${NOMAD_PORT_psql_port}",
"--pg-bin-path", "/usr/lib/postgresql/9.6/bin/" "--pg-bin-path", "/usr/lib/postgresql/13/bin/"
] ]
ports = [ "psql_port" ] ports = [ "psql_port" ]
volumes = [ volumes = [

View file

@ -42,6 +42,7 @@
- sudo - sudo
- ethtool - ethtool
- pciutils - pciutils
- pv
state: present state: present
- name: "Passwordless sudo" - name: "Passwordless sudo"