You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/common/modules/proc_determining-whether-your-project-server-uses-internal-or-external-databases.adoc
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@
6
6
[role="_abstract"]
7
7
You can confirm whether your {ProjectServer} uses internal or external databases by checking PostgreSQL deployment on the server.
8
8
9
-
ifdef::containerized[]
10
9
.Procedure
10
+
ifdef::containerized[]
11
11
. On {ProjectServer}, inspect the persisted database mode:
12
12
+
13
13
[options="nowrap" subs="+quotes,attributes"]
@@ -30,9 +30,7 @@ When {ProjectServer} uses external databases, the local `postgresql.service` uni
30
30
This check reflects steady-state configuration.
31
31
During a migration to external databases, `database_mode` in `/var/lib/foremanctl/parameters.yaml` may already show `external` while the local `postgresql.service` unit is still active until you remove the internal PostgreSQL deployment.
32
32
endif::containerized[]
33
-
34
33
ifndef::containerized[]
35
-
.Procedure
36
34
* On {ProjectServer}, query the status of your databases:
Copy file name to clipboardExpand all lines: guides/common/modules/proc_migrating-to-external-databases.adoc
+20-27Lines changed: 20 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,14 @@
6
6
[role="_abstract"]
7
7
Migrate internal PostgreSQL databases from {ProjectServer} to a dedicated external host when you need to reduce server load or manage the database independently.
8
8
9
+
ifdef::containerized[]
10
+
[NOTE]
11
+
====
12
+
{insights-iop} requires internal database mode.
13
+
You cannot migrate to an external database while {insights-iop} is enabled on {ProjectServer}.
14
+
====
15
+
endif::containerized[]
16
+
9
17
.Prerequisites
10
18
* You have installed and configured a PostgreSQL server on an external server.
11
19
* You have confirmed that {ProjectServer} currently uses internal databases.
@@ -15,22 +23,7 @@ ifdef::containerized[]
15
23
The `{foremanctl} backup` command stops all {Project} services during the backup process.
16
24
endif::containerized[]
17
25
18
-
ifdef::containerized[]
19
-
[NOTE]
20
-
====
21
-
The Insights Operating Platform (IOP) feature requires internal database mode.
22
-
You cannot migrate to an external database while IOP is enabled on {ProjectServer}.
23
-
If IOP is enabled, disable it before you start the migration:
24
-
+
25
-
[options="nowrap", subs="+quotes,attributes"]
26
-
----
27
-
# {foremanctl} deploy --remove-feature iop
28
-
----
29
-
====
30
-
endif::containerized[]
31
-
32
26
.Procedure
33
-
34
27
ifdef::containerized[]
35
28
. On {ProjectServer}, create a directory for the backup:
Replace `foreman-backup-_TIMESTAMP_` with the timestamp directory that the backup created.
119
+
endif::containerized[]
126
120
127
121
ifdef::containerized[]
128
122
. Use the `{foremanctl} deploy` command to update {Project} to point to the new external databases:
@@ -170,11 +164,10 @@ The internal PostgreSQL database runs as a Podman container managed by the `post
170
164
+
171
165
[NOTE]
172
166
====
173
-
When you switch to external databases, `{foremanctl} deploy` does not remove Podman quadlet unit files under `/etc/containers/systemd/` (for example, `postgresql.container` and `postgresql.image`) or Podman secrets (for example, `postgresql-admin-password`).
167
+
When you switch to external databases, `{foremanctl} deploy` does not remove Podman quadlet unit files under `/etc/containers/systemd/`, such as `postgresql.container` and `postgresql.image`, or Podman secrets, such as `postgresql-admin-password`.
174
168
Stopping the service and removing `/var/lib/pgsql/data` disables the internal database and frees the data volume.
175
169
====
176
170
endif::containerized[]
177
-
178
171
ifndef::containerized[]
179
172
. Use the `{foreman-installer}` command to update {Project} to point to the new
0 commit comments