mostly adding selinux stuff

This commit is contained in:
Trevor Batley
2023-08-29 16:08:48 +10:00
parent 180cc1c36f
commit bcd69adf5f
4 changed files with 29 additions and 14 deletions

View File

@@ -7,8 +7,7 @@ SCRIPT_DIR="$(dirname "$(realpath "$0")")"
source "$SCRIPT_DIR"/globals.sh
source "$SCRIPT_DIR"/parameters.sh
swupd bundle-add koji || :
check_dependency kojid
dnf install koji-builder
# Create mock folders and permissions
mkdir -p /etc/mock/koji

View File

@@ -7,12 +7,18 @@ SCRIPT_DIR="$(dirname "$(realpath "$0")")"
source "$SCRIPT_DIR"/globals.sh
source "$SCRIPT_DIR"/parameters.sh
swupd bundle-add nfs-utils || :
check_dependency rpcbind
check_dependency rpc.nfsd
dnf install nfs-utils
# Export server directory to be mounted by clients
echo "$KOJI_DIR $KOJI_SLAVE_FQDN(ro,no_root_squash)" >> /etc/exports
# allow nfs usage in selinux and firewall
setsebool -P httpd_use_nfs=1
firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=mountd
firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --reload
systemctl enable --now rpcbind
systemctl enable --now nfs-server

View File

@@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
## KOJI RPM BUILD AND TRACKER
export KOJI_DIR=/mnt/koji
export KOJI_DIR=/srv/koji
export KOJI_MOUNT_DIR=/mnt/koji
export KOJI_MASTER_FQDN="$(hostname -f)"
export KOJI_SLAVE_FQDN="$KOJI_MASTER_FQDN"
@@ -25,7 +25,7 @@ export DEBUG_RPM_DIR=
export EXTERNAL_REPO=http://mirrorlist.centos.org/releases/10/smeos/
## POSTGRESQL DATABASE
export POSTGRES_DIR=/var/lib/pgsql
export POSTGRES_DIR=/srv/pgsql
## GIT REPOSITORIES
export GIT_DIR=
@@ -34,8 +34,8 @@ export IS_ANONYMOUS_GIT_NEEDED=false
export GITOLITE_PUB_KEY=''
## UPSTREAMS CACHE
export UPSTREAMS_DIR=/mnt/upstreams
export UPSTREAMS_DIR=/srv/upstreams
## MASH RPMS
export MASH_DIR=/mnt/mash
export MASH_DIR=/srv/mash
export MASH_SCRIPT_DIR=/usr/local/bin