source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/runit/libraries/helpers.rb
Ruby
apache-2.0
225
master
6,072
# # Cookbook:: runit # Library:: helpers # # Author:: Joshua Timberman <joshua@chef.io> # Author:: Sean OMeara <sean@sean.io> # Copyright:: 2008-2019, Chef Software, Inc. <legal@chef.io> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/runit/libraries/provider_runit_service.rb
Ruby
apache-2.0
225
master
14,897
# # Cookbook:: runit # Provider:: runit_service # # Author:: Joshua Timberman <jtimberman@chef.io> # Author:: Sean OMeara <sean@sean.io> # Copyright:: 2011-2019, Chef Software Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Yo...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/runit/libraries/resource_runit_service.rb
Ruby
apache-2.0
225
master
5,396
# # Cookbook:: runit # resource:: runit_service # # Author:: Joshua Timberman <jtimberman@chef.io> # Copyright:: 2011-2019, Chef Software Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-pages/metadata.rb
Ruby
apache-2.0
225
master
453
name 'gitlab-pages' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache-2.0' description 'Installs/Configures a GitLab Pages instance' long_description 'Installs/Configures a GitLab Pages instance' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) depends 'package' depends ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-pages/recipes/disable.rb
Ruby
apache-2.0
225
master
690
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-pages/recipes/enable.rb
Ruby
apache-2.0
225
master
3,860
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-pages/libraries/gitlab_pages.rb
Ruby
apache-2.0
225
master
6,484
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-pages/attributes/default.rb
Ruby
apache-2.0
225
master
4,562
#### # GitLab Pages Daemon #### default['gitlab_pages']['enable'] = false default['gitlab_pages']['external_http'] = [] default['gitlab_pages']['external_https'] = [] default['gitlab_pages']['external_https_proxyv2'] = [] default['gitlab_pages']['listen_proxy'] = "localhost:8090" default['gitlab_pages']['gitlab_server'...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/logrotate/metadata.rb
Ruby
apache-2.0
225
master
444
name 'logrotate' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache 2.0' description 'Installs/Configures logrotate for GitLab' long_description 'Installs/Configures logrotate for GitLab' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) issues_url 'https://gitlab.com/gitl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/logrotate/attributes/default.rb
Ruby
apache-2.0
225
master
498
default['logrotate']['enable'] = false default['logrotate']['ha'] = false default['logrotate']['dir'] = "/var/opt/gitlab/logrotate" default['logrotate']['log_directory'] = "/var/log/gitlab/logrotate" default['logrotate']['services'] = %w(nginx puma gitlab-rails gitlab-shell gitlab-workhorse gitlab-pages gitlab-kas gita...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/logrotate/recipes/folders_and_configs.rb
Ruby
apache-2.0
225
master
1,711
# # Copyright:: Copyright (c) 2014 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/logrotate/recipes/disable.rb
Ruby
apache-2.0
225
master
735
# # Copyright:: Copyright (c) 2014 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/logrotate/recipes/enable.rb
Ruby
apache-2.0
225
master
1,221
# # Copyright:: Copyright (c) 2014 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/mattermost/metadata.rb
Ruby
apache-2.0
225
master
434
name 'mattermost' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache 2.0' description 'Installs/Configures Mattermost Team edition' long_description 'Installs/Configures Mattermost Team edition' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) depends 'package' issues_ur...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/mattermost/recipes/enable.rb
Ruby
apache-2.0
225
master
4,832
# # Copyright:: Copyright (c) 2012 Opscode, Inc. # Copyright:: Copyright (c) 2015 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # h...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/mattermost/recipes/disable.rb
Ruby
apache-2.0
225
master
688
# # Copyright:: Copyright (c) 2015 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/mattermost/attributes/default.rb
Ruby
apache-2.0
225
master
2,382
# # Copyright:: Copyright (c) 2017 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/mattermost/libraries/mattermost_helper.rb
Ruby
apache-2.0
225
master
2,965
require_relative '../../gitlab/libraries/helpers/authorizer_helper' require_relative '../../package/libraries/helpers/shell_out_helper' class MattermostHelper extend ShellOutHelper extend AuthorizeHelper def self.authorize_with_gitlab(gitlab_external_url) redirect_uri = "#{Gitlab['mattermost_external_url']}...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/metadata.rb
Ruby
apache-2.0
225
master
440
name "gitlab-ee" maintainer "GitLab Inc" maintainer_email "support@gitlab.com" license "Apache 2.0" description "Install and configure GitLab EE from Omnibus" long_description "Install and configure GitLab EE from Omnibus" version "0.0.1" recipe "gitlab", "Configures GitLab EE from Omnibus" supports "ubuntu" supports ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/resources/sentinel_service.rb
Ruby
apache-2.0
225
master
3,580
resource_name :sentinel_service provides :sentinel_service unified_mode true property :config_path, String property :redis_configuration, Hash property :sentinel_configuration, Hash property :logging_configuration, Hash property :sentinel_service_name, String, default: 'sentinel' property :redis_helper, default: lazy...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/attributes/default.rb
Ruby
apache-2.0
225
master
8,842
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/libraries/gitlab_geo_helper.rb
Ruby
apache-2.0
225
master
224
# frozen_string_literal: true class GitlabGeoHelper < RailsMigrationHelper def initialize(node) @node = node @status_file_prefix = 'geo-db-migrate' @attributes_node = node['gitlab']['geo_secondary'] end end
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/libraries/gitlab-ee.rb
Ruby
apache-2.0
225
master
707
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/libraries/geo_postgresql.rb
Ruby
apache-2.0
225
master
1,046
module GeoPostgresql class << self def parse_variables postgresql_dir = Gitlab['geo_postgresql']['dir'] || node['gitlab']['geo_postgresql']['dir'] Gitlab['geo_postgresql']['unix_socket_directory'] ||= postgresql_dir Gitlab['geo_postgresql']['home'] ||= postgresql_dir parse_wal_keep_size ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/libraries/sentinel_helper.rb
Ruby
apache-2.0
225
master
4,829
class SentinelHelper MYID_PATTERN ||= /^[0-9a-f]{40}$/.freeze JSON_FILE ||= '/etc/gitlab/gitlab-sentinel.json'.freeze def initialize(node) @node = node end def myid if sentinel.key?('myid') && sentinel['myid'] restore_from_node else restore_or_generate_from_file end end def ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/libraries/geo_secondary.rb
Ruby
apache-2.0
225
master
2,731
module GeoSecondary GEO_DB_MIGRATIONS_PATH = 'ee/db/geo/migrate'.freeze GEO_SCHEMA_MIGRATIONS_PATH = 'ee/db/geo/schema_migrations'.freeze class << self def parse_variables parse_database parse_geo_secondary_db_host end def node Gitlab[:node] end private def parse_data...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/libraries/sentinel.rb
Ruby
apache-2.0
225
master
1,276
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/config.rb
Ruby
apache-2.0
225
master
980
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/geo-logcursor.rb
Ruby
apache-2.0
225
master
2,476
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/geo_database_migrations.rb
Ruby
apache-2.0
225
master
1,334
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/geo-secondary.rb
Ruby
apache-2.0
225
master
2,260
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/default.rb
Ruby
apache-2.0
225
master
1,714
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/geo-secondary_disable.rb
Ruby
apache-2.0
225
master
1,548
# # Copyright:: Copyright (c) 2018 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/geo-logcursor_disable.rb
Ruby
apache-2.0
225
master
691
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/geo-postgresql.rb
Ruby
apache-2.0
225
master
6,333
# # Copyright:: Copyright (c) 2012 Opscode, Inc. # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # h...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/geo-postgresql_disable.rb
Ruby
apache-2.0
225
master
739
# # Copyright:: Copyright (c) 2012 Opscode, Inc. # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # h...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/sentinel_disable.rb
Ruby
apache-2.0
225
master
900
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab-ee/recipes/sentinel.rb
Ruby
apache-2.0
225
master
1,659
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/metadata.rb
Ruby
apache-2.0
225
master
475
name 'package' maintainer 'GitLab Inc' maintainer_email 'support@gitlab.com' license 'Apache 2.0' description "Base GitLab Package cookbook for installing and configuring GitLab" long_description "Base GitLab Package cookbook for installing and configuring GitLab" version '0.1.0' chef_version '>= 12.1' if respond_to?(:...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/sysctl.rb
Ruby
apache-2.0
225
master
810
# # Copyright:: Copyright (c) 2020 GitLab Inc # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/web-server.rb
Ruby
apache-2.0
225
master
1,451
# # Copyright:: Copyright (c) 2014 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/show_config.rb
Ruby
apache-2.0
225
master
958
# # Copyright:: Copyright (c) 2012 Opscode, Inc. # Copyright:: Copyright (c) 2014 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # h...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/runit.rb
Ruby
apache-2.0
225
master
1,404
# # Cookbook Name:: gitlab # Recipe:: runit # # Copyright 2015-2018, GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/runit_sysvinit.rb
Ruby
apache-2.0
225
master
959
# # Cookbook Name:: package # Recipe:: runit_sysvinit # # Copyright 2011, Opscode, Inc. # Copyright 2014 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache....
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/runit_systemd.rb
Ruby
apache-2.0
225
master
1,743
# # Cookbook Name:: package # Recipe:: runit_systemd # # Copyright 2014 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/runit_upstart.rb
Ruby
apache-2.0
225
master
1,249
# # Cookbook Name:: package # Recipe:: runit_upstart # # Copyright 2008-2010, Opscode, Inc. # Copyright 2014 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/config.rb
Ruby
apache-2.0
225
master
1,827
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/recipes/users.rb
Ruby
apache-2.0
225
master
1,648
# # Copyright:: Copyright (c) 2012 Opscode, Inc. # Copyright:: Copyright (c) 2014 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # h...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helper.rb
Ruby
apache-2.0
225
master
925
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/certificate_helper.rb
Ruby
apache-2.0
225
master
6,168
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/redis_uri.rb
Ruby
apache-2.0
225
master
2,145
require 'uri' module URI # Extends stdlib URI to include 'Redis' as a valid scheme with the correct behaviour # The API is a little weird and doesn't follow our styleguide # # A snipet on how to create custom URIs can be found here: # https://github.com/ruby/ruby/blob/trunk/lib/uri.rb # # All the methods...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/object_proxy.rb
Ruby
apache-2.0
225
master
1,788
# # Copyright:: Copyright (c) 2019 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/storage_directory_helper.rb
Ruby
apache-2.0
225
master
4,861
# # Copyright:: Copyright (c) 2016 GitLab Inc # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/account_helper.rb
Ruby
apache-2.0
225
master
2,184
# # Copyright:: Copyright (c) 2015 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config_mash.rb
Ruby
apache-2.0
225
master
2,844
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/omnibus_helper.rb
Ruby
apache-2.0
225
master
10,396
require 'fileutils' require 'mixlib/shellout' require_relative 'helper' require_relative 'deprecations' class OmnibusHelper include ShellOutHelper attr_reader :node def initialize(node) @node = node end def service_dir_enabled?(service_name) File.symlink?("/opt/gitlab/service/#{service_name}") en...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/deprecations.rb
Ruby
apache-2.0
225
master
14,879
require_relative 'object_proxy' require_relative 'helpers/logging_helper' require_relative 'settings_dsl.rb' module Gitlab class Deprecations class << self ATTRIBUTE_BLOCKS ||= %w[gitlab monitoring].freeze def list(existing_config = nil) # List of deprecations. Remember to convert underscore...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/settings_dsl.rb
Ruby
apache-2.0
225
master
9,307
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/gitlab_cluster.rb
Ruby
apache-2.0
225
master
2,721
# frozen_string_literal: true require 'singleton' require 'chef/json_compat' require 'chef/log' require_relative 'config_mash' require_relative 'helpers/logging_helper' # GitLab Cluster configuration abstraction # # This allows you to acces cluster-wide configuration class GitlabCluster include Singleton CONFIG...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/package.rb
Ruby
apache-2.0
225
master
1,013
# Copyright:: Copyright (c) 2019 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/logfiles_helper.rb
Ruby
apache-2.0
225
master
7,616
# # Copyright:: Copyright (c) 2015 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/formatters/gitlab.rb
Ruby
apache-2.0
225
master
746
# # Copyright:: Copyright (c) 2017 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/roles_helper.rb
Ruby
apache-2.0
225
master
1,394
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/logging_helper.rb
Ruby
apache-2.0
225
master
2,587
module LoggingHelper extend self # The current set of recorded messages. Mostly here to enable more fluent spec # testing. # # @return [Array<Hash{Symbol => String, nil}>] attr_accessor :messages @messages = [] # Resets the set of recorded messages. Mostly here to enable more fluent spec # testing...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/fips_helper.rb
Ruby
apache-2.0
225
master
344
require 'openssl' class FipsHelper def self.fips_ubuntu_22_or_newer? return false unless OpenSSL.fips_mode @ohai ||= Ohai::System.new.tap do |oh| oh.all_plugins(['platform']) end.data return false unless @ohai['platform'].casecmp('ubuntu').zero? @ohai['platform_version']&.split('.')&.fir...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/shell_out_helper.rb
Ruby
apache-2.0
225
master
855
require 'mixlib/shellout' module ShellOutHelper def do_shell_out(cmd, user = nil, cwd = nil, env: {}) o = Mixlib::ShellOut.new(cmd, user: user, cwd: cwd, environment: env) o.run_command o rescue Errno::EACCES Chef::Log.info("Cannot execute #{cmd}.") o rescue Errno::ENOENT Chef::Log.info("...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/systemd_helper.rb
Ruby
apache-2.0
225
master
450
class SystemdHelper class << self SYSTEMD_VERSION_REGEX ||= /systemd (?<version>\d+).*/.freeze def systemd_version systemd_lines = IO.popen(%w[systemctl --version], &:read) systemd_version_line = systemd_lines.split("\n").first SYSTEMD_VERSION_REGEX.match(systemd_version_line)['version'].to...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/duration_helper.rb
Ruby
apache-2.0
225
master
1,132
module DurationHelper # This code duplicates some from files/gitlab-ctl-commands/lib/gitlab_ctl/util.rb # because that is not easily/clearly re-usable from gitlab-cookbooks. It might be acceptable # in future to link uses of the other versions to this library code (there is precedent), although # even that is ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/secrets_helper.rb
Ruby
apache-2.0
225
master
6,090
require 'openssl' class SecretsHelper SECRETS_FILE = '/etc/gitlab/gitlab-secrets.json'.freeze SECRETS_FILE_CHEF_ATTR = '_gitlab_secrets_file_path'.freeze SKIP_GENERATE_SECRETS_CHEF_ATTR = '_skip_generate_secrets'.freeze def self.generate_hex(chars) SecureRandom.hex(chars) end def self.generate_base64...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/services_helper.rb
Ruby
apache-2.0
225
master
9,445
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/base_helper.rb
Ruby
apache-2.0
225
master
967
# # Copyright:: Copyright (c) 2018 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/version_helper.rb
Ruby
apache-2.0
225
master
447
require_relative 'shell_out_helper' class VersionHelper extend ShellOutHelper def self.version(cmd, env: {}) result = do_shell_out(cmd, env: env) unless result.exitstatus.zero? warning = <<~MSG Execution of the command `#{cmd}` failed with a non-zero exit code (#{result.exitstatus}) ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/selinux_distro_helper.rb
Ruby
apache-2.0
225
master
2,479
class SELinuxDistroHelper REDHAT_RELEASE_FILE = '/etc/redhat-release'.freeze OS_RELEASE_FILE = '/etc/os-release'.freeze MIN_SUPPORTED_RHEL_VERSION = 7 MAX_SUPPORTED_RHEL_VERSION = 10 def self.selinux_supported? system_is_supported_rhel? || system_is_amazon_linux2? || system_is_amazon_linux2023? end ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/selinux_helper.rb
Ruby
apache-2.0
225
master
3,582
require_relative '../helpers/shell_out_helper' class SELinuxHelper class << self include ShellOutHelper def use_unified_policy?(node) return false if node['package']['selinux_policy_version'].nil? true end def gitlab_shell_files(node) ssh_dir = File.join(node['gitlab']['user']['h...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/node_helper.rb
Ruby
apache-2.0
225
master
869
# frozen_string_literal: true module NodeHelper class << self # Merges attributes into existing node with override level # # @param [Mash] node # @param [Gitlab::Config::Mash] attrs def consume_cluster_attributes(node, attrs) node.logger.debug("Applying attributes from Gitlab Cluster config...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/redis_helper.rb
Ruby
apache-2.0
225
master
1,265
require 'erb' require_relative '../redis_uri' module RedisHelper class << self def build_redis_url(ssl:, host:, port:, path:, password:) scheme = ssl ? 'rediss:/' : 'redis:/' uri = URI(scheme) uri.host = host if host uri.port = port if port uri.path = path if path # In case th...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/redis_helper/base.rb
Ruby
apache-2.0
225
master
5,553
require_relative '../../redis_uri' module RedisHelper class Base attr_reader :node def initialize(node) @node = node end def redis_params # Defined in each component that extends this class. Should return all # the Redis related information required by the component to populate ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/redis_helper/gitlab_kas.rb
Ruby
apache-2.0
225
master
788
module RedisHelper class GitlabKAS < RedisHelper::Base def redis_params { network: redis_network, address: redis_address, password: redis_credentials[:password], sentinels: redis_sentinels, sentinelMaster: master_name, sentinelPassword: redis_sentinels_passwor...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/redis_helper/gitlab_rails.rb
Ruby
apache-2.0
225
master
940
module RedisHelper class GitlabRails < RedisHelper::Base REDIS_INSTANCES = %w[cache queues shared_state trace_chunks rate_limiting sessions repository_cache cluster_rate_limiting workhorse].freeze ALLOWED_REDIS_CLUSTER_INSTANCE = %w[cache rate_limiting cluster_rate_limiting].freeze def redis_params ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/redis_helper/gitlab_workhorse.rb
Ruby
apache-2.0
225
master
1,606
module RedisHelper class GitlabWorkhorse < RedisHelper::Base def redis_params { url: redis_url.to_s, password: redis_credentials[:password], sentinels: sentinel_urls, sentinelMaster: master_name, sentinelPassword: redis_sentinels_password, sentinelTLS: redis_s...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/redis_helper/gitlab_exporter.rb
Ruby
apache-2.0
225
master
1,177
module RedisHelper class GitlabExporter < RedisHelper::Base def redis_params { url: redis_url, enable_client: enable_client, ssl_params: redis_ssl_params, sentinels: redis_sentinels, sentinels_password: redis_sentinels_password, sentinels_ssl: redis_sentinels_...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/redis_helper/redis_exporter.rb
Ruby
apache-2.0
225
master
425
# frozen_string_literal: true module RedisHelper class RedisExporter < RedisHelper::Base def redis_params { url: redis_url } end def formatted_redis_url url = redis_url url.scheme == 'unix' ? "unix://#{url.path}" : url.to_s end private def node_access_keys ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/helpers/redis_helper/server.rb
Ruby
apache-2.0
225
master
3,571
# frozen_string_literal: true require_relative '../version_helper' module RedisHelper class Server < RedisHelper::Base def installed_version return unless OmnibusHelper.new(@node).service_up?('redis') command = "/opt/gitlab/embedded/bin/#{server_binary} --version" command_output = VersionHel...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/gitlab.rb
Ruby
apache-2.0
225
master
5,539
# # Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/services.rb
Ruby
apache-2.0
225
master
2,990
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/pages.rb
Ruby
apache-2.0
225
master
892
# Copyright:: Copyright (c) 2020 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/geo_secondary.rb
Ruby
apache-2.0
225
master
2,775
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/default.rb
Ruby
apache-2.0
225
master
1,183
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/redis_sentinel.rb
Ruby
apache-2.0
225
master
901
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/patroni.rb
Ruby
apache-2.0
225
master
1,032
# Copyright:: Copyright (c) 2021 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/postgres.rb
Ruby
apache-2.0
225
master
1,035
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/pgbouncer.rb
Ruby
apache-2.0
225
master
904
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/spamcheck.rb
Ruby
apache-2.0
225
master
904
# Copyright:: Copyright (c) 2020 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/geo_primary.rb
Ruby
apache-2.0
225
master
1,081
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/gitaly.rb
Ruby
apache-2.0
225
master
247
module GitalyRole def self.load_role return unless Gitlab['gitaly_role']['enable'] # Turning off GitLab Rails unless explicitly enabled. Gitlab['gitlab_rails']['enable'] ||= false Services.enable_group('gitaly_role') end end
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/backup.rb
Ruby
apache-2.0
225
master
783
# Copyright:: Copyright (c) 2026 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/sidekiq.rb
Ruby
apache-2.0
225
master
1,018
# Copyright:: Copyright (c) 2021 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/redis_master.rb
Ruby
apache-2.0
225
master
1,166
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/consul.rb
Ruby
apache-2.0
225
master
895
# Copyright:: Copyright (c) 2017 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/package/libraries/config/roles/monitoring.rb
Ruby
apache-2.0
225
master
907
# Copyright:: Copyright (c) 2019 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...