Skip to content

Commit

Permalink
Remove postgres backend setups: (#171)
Browse files Browse the repository at this point in the history
## Description


Postgres backend has been deprecated for some time. Users should use the Kubernetes backend and ideally use the helm chart.

https://github.com/tinkerbell/charts

## Why is this needed



Fixes: #170 

## How Has This Been Tested?





## How are existing users impacted? What migration steps/scripts do we need?





## Checklist:

I have:

- [ ] updated the documentation and/or roadmap (if required)
- [ ] added unit or e2e tests
- [ ] provided instructions on how to upgrade
  • Loading branch information
mergify[bot] authored Jun 6, 2023
2 parents 726c103 + 5cdc6a4 commit 47cfd6d
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 987 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# hidden files/dirs
.*
!deploy/stack/compose/postgres/state/webroot/misc/osie/current/.keep
!deploy/stack/compose/postgres/state/webroot/workflow/.keep
!deploy/infrastructure/vagrant/.env
!deploy/stack/compose/.env
!deploy/stack/compose/postgres/.env
!.gitignore
!.github/

Expand All @@ -18,9 +15,6 @@

compose.tar.gz
compose.zip
deploy/stack/compose/postgres/state/webroot/*.gz
deploy/stack/compose/postgres/state/webroot/misc/osie/current/*
deploy/stack/compose/postgres/state/webroot/workflow/*
deploy/stack/compose/manifests/manifests.yaml
deploy/stack/compose/state/*
!deploy/stack/compose/state/.keep
Expand Down
3 changes: 0 additions & 3 deletions deploy/infrastructure/vagrant/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ LOADBALANCER_IP=192.168.56.5
MACHINE1_IP=192.168.56.43
MACHINE1_MAC=08:00:27:9e:f5:3a

#USE_POSTGRES=true
USE_POSTGRES=

# USE_HELM=true
USE_HELM=true

Expand Down
8 changes: 0 additions & 8 deletions deploy/infrastructure/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ PROVISIONER_IP = ENV["PROVISIONER_IP"] || "192.168.56.4"
LOADBALANCER_IP = ENV["LOADBALANCER_IP"] || "192.168.56.4"
MACHINE1_IP = ENV["MACHINE1_IP"] || "192.168.56.43"
MACHINE1_MAC = (ENV["MACHINE1_MAC"] || "08:00:27:9E:F5:3A").downcase
USE_POSTGRES = ENV["USE_POSTGRES"] || ""
USE_HELM = ENV["USE_HELM"] || ""
HELM_CHART_VERSION = ENV["HELM_CHART_VERSION"] || "0.1.2"
HELM_LOADBALANCER_INTERFACE = ENV["HELM_LOADBALANCER_INTERFACE"] || "eth1"
Expand All @@ -30,10 +29,6 @@ Vagrant.configure("2") do |config|
end

config.vm.define "provisioner" do |provisioner|
if USE_POSTGRES == "true" && USE_HELM == "true"
puts "USE_POSTGRES and USE_HELM cannot both be true"
abort
end
if USE_HELM == "true"
STACK_DIR = STACK_BASE_DIR + "helm/"
DEST_DIR = DEST_DIR_BASE + "helm/"
Expand All @@ -58,9 +53,6 @@ Vagrant.configure("2") do |config|
override.vm.synced_folder STACK_BASE_DIR, DEST_DIR_BASE, type: "rsync"
end

if USE_POSTGRES == "true"
DEST_DIR = DEST_DIR_BASE + STACK_OPT + "postgres"
end
provisioner.vm.provision :shell, path: STACK_DIR + "/setup.sh", args: [PROVISIONER_IP, MACHINE1_IP, MACHINE1_MAC, DEST_DIR, LOADBALANCER_IP, HELM_CHART_VERSION, HELM_LOADBALANCER_INTERFACE]
end

Expand Down
27 changes: 0 additions & 27 deletions deploy/stack/compose/postgres/.env

This file was deleted.

105 changes: 0 additions & 105 deletions deploy/stack/compose/postgres/create-tink-records/create.sh

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 47cfd6d

Please sign in to comment.