Skip to content

Commit

Permalink
chore: Security Server installation manual for RHEL updated (#2480)
Browse files Browse the repository at this point in the history
* chore: Security Server installation manual for RHEL updated with PostgreSQL instructions

Refs: XRDDEV-2974

* chore: clean up

Refs: XRDDEV-2974
  • Loading branch information
justasnortal authored Dec 16, 2024
1 parent d814383 commit c7ed486
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
11 changes: 11 additions & 0 deletions ansible/roles/xroad-ss/tasks/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
tags:
- install-xroad-ss-packages

- name: Install PostgreSQL packages (RHEL)
become: yes
yum:
name: "{{ items }}"
state: present
vars:
items:
- postgresql-server
- postgresql-contrib
when: not ((database_admin_password is defined) and (database_admin_password != ""))

# verify presence of xroad packages and dependencies
- name: install xroad packages and dependencies from set up repository (RHEL)
yum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**X-ROAD 7**

Version: 1.30
Version: 1.31
Doc. ID: IG-SS-RHEL

---
Expand Down Expand Up @@ -43,6 +43,8 @@ Doc. ID: IG-SS-RHEL
| 12.06.2024 | 1.28 | Add ACME server to the network diagram, add a section about enabling ACME support | Petteri Kivimäki |
| 25.06.2024 | 1.29 | Add global configuration download port 443 to the network diagram | Petteri Kivimäki |
| 17.07.2024 | 1.30 | Java 21 installation instructions for RHEL 7 | Ovidijus Narkevičius |
| 16.12.2024 | 1.31 | Instructions to install PostgreSQL packages | Justas Samuolis |

## License

This document is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
Expand All @@ -67,7 +69,9 @@ This document is licensed under the Creative Commons Attribution-ShareAlike 3.0
- [2.3.1.1 Installing Java 21 on RHEL 7](#2311-installing-java-21-on-rhel-7)
- [2.4 Preparing OS](#24-preparing-os)
- [2.5 Setup Package Repository](#25-setup-package-repository)
- [2.6 Remote Database Setup (optional)](#26-remote-database-setup-optional)
- [2.6 Database Setup](#26-database-setup)
- [2.6.1 Local Database Setup](#261-local-database-setup)
- [2.6.2 Remote Database Setup (optional)](#262-remote-database-setup-optional)
- [2.7 Disable the Messagelog Addon before Installation (optional)](#27-disable-the-messagelog-addon-before-installation-optional)
- [2.8 Security Server Installation](#28-security-server-installation)
- [2.8.1 Configure Proxy Ports](#281-configure-proxy-ports)
Expand Down Expand Up @@ -292,9 +296,19 @@ Add the X-Road repository’s signing key to the list of trusted keys (**referen
sudo rpm --import https://artifactory.niis.org/api/gpg/key/public
```

If you are installing the default setup with local PostgreSQL database and want to enable the messagelog addon, continue at section 2.8. If you need to customize database properties and e.g. use a remote database or disable the messagelog addon, read on.
### 2.6 Database Setup

If you are installing the default setup with local PostgreSQL database, continue at section 2.6.1. If you need to use a remote database, continue at section 2.6.2.

#### 2.6.1 Local Database Setup

When installing the default setup with local database, PostgreSQL packages need to be installed before continuing with X-Road Security Server installation:

```bash
sudo yum install postgresql-server postgresql-contrib
```

### 2.6 Remote Database Setup (optional)
#### 2.6.2 Remote Database Setup (optional)

*This is an optional step.*

Expand Down
5 changes: 4 additions & 1 deletion src/packages/src/xroad/redhat/SPECS/xroad-proxy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ fi

if [ $1 -eq 1 ] ; then
# Initial installation
/usr/share/xroad/scripts/xroad-initdb.sh
if ! /usr/share/xroad/scripts/xroad-initdb.sh; then
echo "Error: Failed to initialize DB."
exit 1
fi
if ! grep -qs DISABLE_PORT_REDIRECT /etc/sysconfig/xroad-proxy; then
cat <<"EOF" >>/etc/sysconfig/xroad-proxy
# Setting DISABLE_PORT_REDIRECT to false enables iptables port redirection (default: disabled)
Expand Down

0 comments on commit c7ed486

Please sign in to comment.