pgpool2.git / summary / log / commit / refs
commit ce420f1f8a7f8936663be6a6bfca4e7cda036b08
Author: Bo Peng <pengbo@sraoss.co.jp>
Date: Tue Jan 04 07:43:44 2022 +0000
Doc: add "exclude" settings to /etc/yum.repos.d/pgdg-redhat-all.repo so that Pgpool-II is not installed from PostgreSQL YUM repository.
doc.ja/src/sgml/example-cluster.sgml | 57 +++++++++++++++++++++---
doc.ja/src/sgml/example-replication-si-mode.sgml | 54 +++++++++++++++++++---
doc/src/sgml/example-cluster.sgml | 55 ++++++++++++++++++++---
doc/src/sgml/example-replication-si-mode.sgml | 52 ++++++++++++++++++---
4 files changed, 193 insertions(+), 25 deletions(-)
diff --git a/doc.ja/src/sgml/example-cluster.sgml b/doc.ja/src/sgml/example-cluster.sgml
index aa26ae7dd..7d4a8a499 100644
--- a/doc.ja/src/sgml/example-cluster.sgml
+++ b/doc.ja/src/sgml/example-cluster.sgml
@@ -228,23 +228,66 @@
<sect2 id="example-cluster-installation">
<title>インストール</title>
<para>
- すべてのサーバに<productname>PostgreSQL</productname> 14.0と<productname>Pgpool-II</productname> 4.3をRPMからインストールします。
+ この設定例ではYUMを使用して<productname>PostgreSQL</productname>および<productname>Pgpool-II</productname>をインストールします。
</para>
<para>
<productname>PostgreSQL</productname>のインストールは<productname>PostgreSQL</productname>コミュニティのリポジトリを使います。
</para>
<programlisting>
-# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
-# yum install -y postgresql14-server
+[全サーバ]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
+[全サーバ]# yum install -y postgresql14-server
</programlisting>
<para>
- <productname>Pgpool-II</productname>のインストールは<productname>Pgpool-II</productname>開発
- コミュニティが提供するYumリポジトリを用いてインストールします。
+ <productname>Pgpool-II</productname>のインストールは<productname>Pgpool-II</productname>開発コミュニティが提供するYumリポジトリを用いてインストールします。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>関連のパッケージは<productname>PostgreSQL</productname>コミュニティのリポジトリにもあるため、
+ <productname>PostgreSQL</productname>コミュニティのリポジトリから<productname>Pgpool-II</productname>をインストールしないように<filename>/etc/yum.repos.d/pgdg-redhat-all.repo</filename>にexclude設定を追加します。
+ </para>
+ <programlisting>
+[全サーバ]# vi /etc/yum.repos.d/pgdg-redhat-all.repo
+ </programlisting>
+ <para>
+ 以下は、<filename>/etc/yum.repos.d/pgdg-redhat-all.repo</filename>の設定例です。
+ </para>
+ <programlisting>
+[pgdg-common]
+...
+exclude=pgpool*
+
+
+[pgdg14]
+...
+exclude=pgpool*
+
+[pgdg13]
+...
+exclude=pgpool*
+
+[pgdg12]
+...
+exclude=pgpool*
+
+[pgdg11]
+...
+exclude=pgpool*
+
+[pgdg10]
+...
+exclude=pgpool*
+
+[pgdg96]
+...
+exclude=pgpool*
+ </programlisting>
+
+ <para>
+ <productname>Pgpool-II</productname>をインストールします。
</para>
<programlisting>
-# yum install -y https://www.pgpool.net/yum/rpms/4.3/redhat/rhel-7-x86_64/pgpool-II-release-4.3-1.noarch.rpm
-# yum install -y pgpool-II-pg14-*
+[全サーバ]# yum install -y https://www.pgpool.net/yum/rpms/4.3/redhat/rhel-7-x86_64/pgpool-II-release-4.3-1.noarch.rpm
+[全サーバ]# yum install -y pgpool-II-pg14-*
</programlisting>
</sect2>
diff --git a/doc.ja/src/sgml/example-replication-si-mode.sgml b/doc.ja/src/sgml/example-replication-si-mode.sgml
index 94debb153..7177aa5a4 100644
--- a/doc.ja/src/sgml/example-replication-si-mode.sgml
+++ b/doc.ja/src/sgml/example-replication-si-mode.sgml
@@ -152,22 +152,66 @@
<sect2 id="example-replication-mode-installation">
<title>インストール</title>
<para>
- すべてのサーバに<productname>PostgreSQL</productname> 14.0と<productname>Pgpool-II</productname> 4.3をRPMからインストールします。
+ この設定例ではYUMを使用して<productname>PostgreSQL</productname>および<productname>Pgpool-II</productname>をインストールします。
</para>
<para>
<productname>PostgreSQL</productname>のインストールは<productname>PostgreSQL</productname>コミュニティのリポジトリを使います。
</para>
<programlisting>
-# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
-# yum install -y postgresql14-server
+[全サーバ]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
+[全サーバ]# yum install -y postgresql14-server
</programlisting>
<para>
<productname>Pgpool-II</productname>のインストールは<productname>Pgpool-II</productname>開発コミュニティが提供するYumリポジトリを用いてインストールします。
</para>
+ <para>
+ <productname>Pgpool-II</productname>関連のパッケージは<productname>PostgreSQL</productname>コミュニティのリポジトリにもあるため、
+ <productname>PostgreSQL</productname>コミュニティのリポジトリから<productname>Pgpool-II</productname>をインストールしないように<filename>/etc/yum.repos.d/pgdg-redhat-all.repo</filename>にexclude設定を追加します。
+ </para>
+ <programlisting>
+[全サーバ]# vi /etc/yum.repos.d/pgdg-redhat-all.repo
+ </programlisting>
+ <para>
+ 以下は、<filename>/etc/yum.repos.d/pgdg-redhat-all.repo</filename>の設定例です。
+ </para>
+ <programlisting>
+[pgdg-common]
+...
+exclude=pgpool*
+
+
+[pgdg14]
+...
+exclude=pgpool*
+
+[pgdg13]
+...
+exclude=pgpool*
+
+[pgdg12]
+...
+exclude=pgpool*
+
+[pgdg11]
+...
+exclude=pgpool*
+
+[pgdg10]
+...
+exclude=pgpool*
+
+[pgdg96]
+...
+exclude=pgpool*
+ </programlisting>
+
+ <para>
+ <productname>Pgpool-II</productname>をインストールします。
+ </para>
<programlisting>
-# yum install -y https://www.pgpool.net/yum/rpms/4.3/redhat/rhel-7-x86_64/pgpool-II-release-4.3-1.noarch.rpm
-# yum install -y pgpool-II-pg14-*
+[全サーバ]# yum install -y https://www.pgpool.net/yum/rpms/4.3/redhat/rhel-7-x86_64/pgpool-II-release-4.3-1.noarch.rpm
+[全サーバ]# yum install -y pgpool-II-pg14-*
</programlisting>
</sect2>
diff --git a/doc/src/sgml/example-cluster.sgml b/doc/src/sgml/example-cluster.sgml
index fce0fa020..9cb6b0e0a 100644
--- a/doc/src/sgml/example-cluster.sgml
+++ b/doc/src/sgml/example-cluster.sgml
@@ -220,22 +220,63 @@
<sect2 id="example-cluster-installation">
<title>Installation</title>
<para>
- In this example, we install <productname>Pgpool-II</productname> 4.3 and <productname>PostgreSQL</productname> 14.0 using RPM packages.
+ In this example, we install <productname>Pgpool-II</productname> and <productname>PostgreSQL</productname> RPM packages with YUM.
</para>
<para>
- Install <productname>PostgreSQL</productname> using <productname>PostgreSQL</productname> YUM repository.
+ Install <productname>PostgreSQL</productname> from <productname>PostgreSQL</productname> YUM repository.
</para>
<programlisting>
-# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
-# yum install -y postgresql14-server
+[all servers]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
+[all servers]# yum install -y postgresql14-server
</programlisting>
<para>
- Install <productname>Pgpool-II</productname> by using Pgpool-II YUM repository.
+ Since <productname>Pgpool-II</productname> related packages are also included in <productname>PostgreSQL</productname> YUM repository,
+ add the "exclude" settings to <filename>/etc/yum.repos.d/pgdg-redhat-all.repo</filename>
+ so that <productname>Pgpool-II</productname> is not installed from <productname>PostgreSQL</productname> YUM repository.
</para>
<programlisting>
-# yum install -y https://www.pgpool.net/yum/rpms/4.3/redhat/rhel-7-x86_64/pgpool-II-release-4.3-1.noarch.rpm
-# yum install -y pgpool-II-pg14-*
+[all servers]# vi /etc/yum.repos.d/pgdg-redhat-all.repo
+ </programlisting>
+ <para>
+ The following is a setting example of <filename>/etc/yum.repos.d/pgdg-redhat-all.repo</filename>.
+ </para>
+ <programlisting>
+[pgdg-common]
+...
+exclude=pgpool*
+
+[pgdg14]
+...
+exclude=pgpool*
+
+[pgdg13]
+...
+exclude=pgpool*
+
+[pgdg12]
+...
+exclude=pgpool*
+
+[pgdg11]
+...
+exclude=pgpool*
+
+[pgdg10]
+...
+exclude=pgpool*
+
+[pgdg96]
+...
+exclude=pgpool*
+ </programlisting>
+
+ <para>
+ Install <productname>Pgpool-II</productname> from Pgpool-II YUM repository.
+ </para>
+ <programlisting>
+[all servers]# yum install -y https://www.pgpool.net/yum/rpms/4.3/redhat/rhel-7-x86_64/pgpool-II-release-4.3-1.noarch.rpm
+[all servers]# yum install -y pgpool-II-pg14-*
</programlisting>
</sect2>
diff --git a/doc/src/sgml/example-replication-si-mode.sgml b/doc/src/sgml/example-replication-si-mode.sgml
index c65f5c2b9..29db53f54 100644
--- a/doc/src/sgml/example-replication-si-mode.sgml
+++ b/doc/src/sgml/example-replication-si-mode.sgml
@@ -158,22 +158,62 @@
<sect2 id="example-replication-mode-installation">
<title>Installation</title>
<para>
- In this example, we install <productname>Pgpool-II</productname> 4.3 and <productname>PostgreSQL</productname> 14.0 using RPM packages.
+ In this example, we install <productname>Pgpool-II</productname> and <productname>PostgreSQL</productname> RPM packages with YUM.
</para>
<para>
- Install <productname>PostgreSQL</productname> using <productname>PostgreSQL</productname> YUM repository.
+ Install <productname>PostgreSQL</productname> from <productname>PostgreSQL</productname> YUM repository.
</para>
<programlisting>
-# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
-# yum install -y postgresql14-server
+[all servers]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
+[all servers]# yum install -y postgresql14-server
</programlisting>
+ <para>
+ Since <productname>Pgpool-II</productname> related packages are also included in <productname>PostgreSQL</productname> YUM repository,
+ add the "exclude" settings to <filename>/etc/yum.repos.d/pgdg-redhat-all.repo</filename>
+ so that <productname>Pgpool-II</productname> is not installed from <productname>PostgreSQL</productname> YUM repository.
+ </para>
+ <programlisting>
+[all servers]# vi /etc/yum.repos.d/pgdg-redhat-all.repo
+ </programlisting>
+ <para>
+ The following is a setting example of <filename>/etc/yum.repos.d/pgdg-redhat-all.repo</filename>.
+ </para>
+ <programlisting>
+[pgdg-common]
+...
+exclude=pgpool*
+
+[pgdg14]
+...
+exclude=pgpool*
+
+[pgdg13]
+...
+exclude=pgpool*
+
+[pgdg12]
+...
+exclude=pgpool*
+
+[pgdg11]
+...
+exclude=pgpool*
+
+[pgdg10]
+...
+exclude=pgpool*
+
+[pgdg96]
+...
+exclude=pgpool*
+ </programlisting>
<para>
Install <productname>Pgpool-II</productname> using Pgpool-II YUM repository.
</para>
<programlisting>
-# yum install -y https://www.pgpool.net/yum/rpms/4.3/redhat/rhel-7-x86_64/pgpool-II-release-4.3-1.noarch.rpm
-# yum install -y pgpool-II-pg14-*
+[all servers]# yum install -y https://www.pgpool.net/yum/rpms/4.3/redhat/rhel-7-x86_64/pgpool-II-release-4.3-1.noarch.rpm
+[all servers]# yum install -y pgpool-II-pg14-*
</programlisting>
</sect2>
[parent: e0754ca63087]