Commit f6ca899112917f1cd0c4546603bc42c84f1fe72e

Authored by Jacob Vosmaer
2 parents a1ebf1db 50e0f792

Merge branch 'gitlab_ee' into 'master'

Gitlab Ee
files/gitlab-cookbooks/gitlab/attributes/default.rb
... ... @@ -86,6 +86,8 @@ default['gitlab']['gitlab-rails']['ldap_method'] = "ssl"
86 86 default['gitlab']['gitlab-rails']['ldap_bind_dn'] = "_the_full_dn_of_the_user_you_will_bind_with"
87 87 default['gitlab']['gitlab-rails']['ldap_password'] = "_the_password_of_the_bind_user"
88 88 default['gitlab']['gitlab-rails']['ldap_allow_username_or_email_login'] = true
  89 +default['gitlab']['gitlab-rails']['ldap_user_filter'] = ""
  90 +default['gitlab']['gitlab-rails']['ldap_group_base'] = ""
89 91 default['gitlab']['gitlab-rails']['satellites_path'] = "/var/opt/gitlab/git-data/gitlab-satellites"
90 92 default['gitlab']['gitlab-rails']['backup_path'] = "/var/opt/gitlab/backups"
91 93 default['gitlab']['gitlab-rails']['gitlab_shell_path'] = "/opt/gitlab/embedded/service/gitlab-shell/"
... ...
files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
... ... @@ -142,6 +142,19 @@ production: &base
142 142 # disable this setting, because the userPrincipalName contains an '@'.
143 143 allow_username_or_email_login: <%= @ldap_allow_username_or_email_login %>
144 144  
  145 + # Filter LDAP users
  146 + #
  147 + # Format: RFC 4515
  148 + # Ex. (employeeType=developer)
  149 + #
  150 + user_filter: '<%= @ldap_user_filter %>'
  151 +
  152 + # Base where we can search for groups
  153 + #
  154 + # Ex. ou=Groups,dc=gitlab,dc=example
  155 + #
  156 + group_base: '<%= @ldap_group_base %>'
  157 +
145 158 ## OmniAuth settings
146 159 omniauth:
147 160 # Allow login via Twitter, Google, etc. using OmniAuth providers
... ...
release.sh
... ... @@ -34,12 +34,22 @@ if [[ -z ${release_package} ]]; then
34 34 error_exit 'could not find the release package'
35 35 fi
36 36  
  37 +if (git describe | grep -w ee); then
  38 + release_dir="$(openssl rand -hex 20)"
  39 + if [[ $? -ne 0 ]]; then
  40 + error_exit 'failed to generate release directory name'
  41 + fi
  42 + remote_package_path="s3://${RELEASE_BUCKET}/${release_dir}/${release_package#pkg/}"
  43 +else
  44 + remote_package_path="s3://${RELEASE_BUCKET}/${release_package#pkg/}"
  45 +fi
  46 +
37 47 echo
38 48 echo 'Package MD5:'
39 49 md5sum ${release_package}
40 50  
41 51 echo
42 52 echo 'Starting upload'
43   -if !(aws s3 cp ${release_package} s3://${RELEASE_BUCKET} --acl public-read --region ${RELEASE_BUCKET_REGION}); then
  53 +if !(aws s3 cp ${release_package} ${remote_package_path} --acl public-read --region ${RELEASE_BUCKET_REGION}); then
44 54 error_exit 'release upload failed'
45 55 fi
... ...