Skip to content
Snippets Groups Projects
Commit 4698d039 authored by DJ Mountney's avatar DJ Mountney
Browse files

Ignore etc permissions for nfs mounts

parent 4b8f55ca
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -30,6 +30,8 @@ default['gitlab']['manage-accounts']['enable'] = true
# Create directories with correct permissions and ownership required by the pkg
default['gitlab']['manage-storage-directories']['enable'] = true
 
default['gitlab']['manage-mount-directories']['enable'] = true
####
# The Git User that services run as
####
Loading
Loading
Loading
Loading
@@ -51,6 +51,7 @@ module Gitlab
omnibus_gitconfig Mash.new
manage_accounts Mash.new
manage_storage_directories Mash.new
manage_mount_directories Mash.new
user Mash.new
postgresql Mash.new
redis Mash.new
Loading
Loading
Loading
Loading
@@ -32,9 +32,9 @@ node.consume_attributes(Gitlab.generate_config(node['fqdn']))
account_helper = AccountHelper.new(node)
 
directory "/etc/gitlab" do
owner account_helper.root_user
group account_helper.root_group
mode "0775"
owner account_helper.root_user if node.set['gitlab']['manage-mount-directories']['enable']
group account_helper.root_group if node.set['gitlab']['manage-mount-directories']['enable']
mode "0775" if node.set['gitlab']['manage-mount-directories']['enable']
action :nothing
end.run_action(:create)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment