diff options
author | Adam Mulvany <amulvany@gitlab.com> | 2018-01-18 13:24:55 +1100 |
---|---|---|
committer | Adam Mulvany <amulvany@gitlab.com> | 2018-01-18 13:24:55 +1100 |
commit | 60a055dc9872f6b0166c7df66910b550301cb02d (patch) | |
tree | 2f246a65befd298d44425238472a3970329ff527 | |
parent | a4eb71dcfabbb27df1d4461cbb924ff1a4c3b1b8 (diff) | |
download | gitlab-ce-docs-update-nfs-selinux-contexts.tar.gz |
Updated NFS docs with SELinux configurationdocs-update-nfs-selinux-contexts
-rw-r--r-- | doc/administration/high_availability/nfs.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/administration/high_availability/nfs.md b/doc/administration/high_availability/nfs.md index d8928a7fe4c..3f83692503d 100644 --- a/doc/administration/high_availability/nfs.md +++ b/doc/administration/high_availability/nfs.md @@ -138,6 +138,23 @@ NFS mount point is `/gitlab-data`. Then, add the following bind mounts in /gitlab-data/builds /var/opt/gitlab/gitlab-ci/builds none bind 0 0 ``` +#### SELinux + +SELinux requires a boolean change and context update so that SSH can be +read from an NFS share. + +First set the boolean: + +``` +setsebool use_nfs_home_dirs on +``` + +Then add `context="system_u:object_r:user_home_dir_t:s0` to the mount +parameters in /etc/fstab and remount the share. + +--- + + --- Read more on high-availability configuration: |