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/gitlab/libraries/gitlab_workhorse.rb
Ruby
apache-2.0
225
master
11,523
# # 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/libraries/patroni.rb
Ruby
apache-2.0
225
master
2,192
require 'socket' module Patroni class << self def parse_variables return unless Services.enabled?('patroni') Gitlab['patroni']['connect_address'] ||= private_ipv4 || Gitlab['node']['ipaddress'] Gitlab['patroni']['connect_port'] ||= Gitlab['patroni']['port'] || Gitlab['node']['patroni']['port']...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/gitlab_sshd.rb
Ruby
apache-2.0
225
master
337
module GitlabSshd class << self def parse_variables validate_trusted_user_ca_keys end def validate_trusted_user_ca_keys keys = Gitlab['gitlab_sshd']['trusted_user_ca_keys'] return if keys.nil? raise "gitlab_sshd['trusted_user_ca_keys'] must be an Array" unless keys.is_a?(Array) ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/rails_migration_helper.rb
Ruby
apache-2.0
225
master
1,446
# frozen_string_literal: true class RailsMigrationHelper REVISION_FILE ||= '/opt/gitlab/embedded/service/gitlab-rails/REVISION' attr_reader :node, :status_file_prefix, :attributes_node, :migration_task_name def initialize(node) @node = node @status_file_prefix = 'db-migrate' @attributes_node = node...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/storage_check.rb
Ruby
apache-2.0
225
master
359
module StorageCheck class << self def parse_variables parse_webserver_socket end def parse_webserver_socket service = WebServerHelper.service_name service_socket = Gitlab[service]['socket'] || Gitlab['node']['gitlab'][service]['socket'] Gitlab['storage_check']['target'] ||= "unix:...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/gitlab_shell.rb
Ruby
apache-2.0
225
master
1,112
# # 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/libraries/logging.rb
Ruby
apache-2.0
225
master
2,034
# # 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/libraries/redis.rb
Ruby
apache-2.0
225
master
7,108
# # 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/libraries/smtp_helper.rb
Ruby
apache-2.0
225
master
461
# frozen_string_literal: true class SmtpHelper def self.validate_smtp_settings!(rails_config) return unless rails_config['smtp_enable'] return unless rails_config['smtp_tls'] && rails_config['smtp_enable_starttls_auto'] raise "gitlab_rails['smtp_tls'] and gitlab_rails['smtp_enable_starttls_auto'] are mu...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/postgresql.rb
Ruby
apache-2.0
225
master
6,098
# # 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/libraries/helpers/base_pg_helper.rb
Ruby
apache-2.0
225
master
11,204
# This is a base class to be inherited by PG Helpers require_relative '../../../package/libraries/helpers/base_helper' require_relative '../pg_version' class BasePgHelper < BaseHelper include ShellOutHelper attr_reader :node attr_reader :built_connection_info ConnectionInfo = Struct.new(:dbname, :dbhost, :po...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/authorizer_helper.rb
Ruby
apache-2.0
225
master
1,078
module AuthorizeHelper def query_gitlab_rails(uri, name, oauth_uid, oauth_secret) warn("Connecting to GitLab to generate new app_id and app_secret for #{name}.") runner_cmd = create_or_find_authorization(uri, name, oauth_uid, oauth_secret) cmd = execute_rails_runner(runner_cmd) do_shell_out(cmd) end...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/gitlab_workhorse_helper.rb
Ruby
apache-2.0
225
master
2,270
require_relative '../../../package/libraries/helpers/base_helper' class GitlabWorkhorseHelper < BaseHelper attr_reader :node def unix_socket? node['gitlab']['gitlab_workhorse']['listen_network'] == "unix" end def object_store_toml object_store = node['gitlab']['gitlab_rails']['object_store'] ret...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/gitlab_rails.rb
Ruby
apache-2.0
225
master
494
require_relative '../../../package/libraries/helpers/base_helper' class GitlabRailsHelper < BaseHelper attr_accessor :node def public_attributes { 'gitlab' => { 'gitlab_rails' => node['gitlab']['gitlab_rails'].select do |key, value| %w(db_database).include?(key) end.merge( ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/metrics_exporter_helper.rb
Ruby
apache-2.0
225
master
758
module MetricsExporterHelper def check_consistent_exporter_tls_settings(target) return unless metrics_enabled? && metrics_tls_enabled? %w(exporter_tls_cert_path exporter_tls_key_path).each do |required_setting| raise "#{target.capitalize} exporter_tls_enabled is true, but #{required_setting} is not set...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/web_server_helper.rb
Ruby
apache-2.0
225
master
803
class WebServerHelper class << self def enabled? Services.enabled?('puma') end def service_name 'puma' end def internal_api_url(node) workhorse_helper = GitlabWorkhorseHelper.new(node) gitlab_url = node['gitlab']['gitlab_rails']['internal_api_url'] # If no interna...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/geo_pg_helper.rb
Ruby
apache-2.0
225
master
907
require_relative 'base_pg_helper' # Helper class to interact with bundled Geo PostgreSQL instance class GeoPgHelper < BasePgHelper # internal name for the service (node[service_name]) def service_name 'geo-postgresql' end # command wrapper name def service_cmd 'gitlab-geo-psql' end def pinned_p...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/gitlab_rails_env_helper.rb
Ruby
apache-2.0
225
master
1,413
class GitlabRailsEnvHelper class << self # Get the db version from the rails environment def db_version PGVersion.parse(execute_rails_ruby(db_version_command).lines.last.chomp) end def db_version_command %w( require "yaml"; require "active_record"; ActiveRecord::B...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/pg_status_helper.rb
Ruby
apache-2.0
225
master
2,171
# This is a helper to establish the listening status of PostgreSQL require_relative '../../../package/libraries/helpers/base_helper' require_relative '../../../package/libraries/helpers/shell_out_helper' class PgStatusHelper include ShellOutHelper attr_reader :maximum_service_checks attr_reader :total_service_c...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/libraries/helpers/pg_helper.rb
Ruby
apache-2.0
225
master
1,152
require_relative 'base_pg_helper' # Helper class to interact with bundled PostgreSQL instance class PgHelper < BasePgHelper # internal name for the service (node[service_name]) def service_name 'postgresql' end # command wrapper name def service_cmd 'gitlab-psql' end def public_attributes #...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/bootstrap.rb
Ruby
apache-2.0
225
master
868
# # 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/gitlab/recipes/database_migrations.rb
Ruby
apache-2.0
225
master
2,553
# # 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/gitlab/recipes/database_reindexing_enable.rb
Ruby
apache-2.0
225
master
980
# # 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 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/default.rb
Ruby
apache-2.0
225
master
6,378
# # 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/gitlab/recipes/mailroom_disable.rb
Ruby
apache-2.0
225
master
686
# # 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/gitlab/recipes/gitlab-backup-cli.rb
Ruby
apache-2.0
225
master
1,506
# # Copyright:: Copyright (c) 2024 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/recipes/gitlab-shell.rb
Ruby
apache-2.0
225
master
6,571
# ## 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 #...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/registry_enable_backup_restore_credentials.rb
Ruby
apache-2.0
225
master
2,114
# # 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 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/gitlab-workhorse.rb
Ruby
apache-2.0
225
master
5,144
# # 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/gitlab/recipes/bootstrap_disable.rb
Ruby
apache-2.0
225
master
637
# # Copyright:: Copyright (c) 2012 Opscode, 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 # #...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/remote-syslog_disable.rb
Ruby
apache-2.0
225
master
691
# # 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/gitlab/recipes/storage-check_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/recipes/database_reindexing_disable.rb
Ruby
apache-2.0
225
master
762
# # 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 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/remote-syslog.rb
Ruby
apache-2.0
225
master
1,995
# # 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/gitlab/recipes/letsencrypt_renew.rb
Ruby
apache-2.0
225
master
737
# # 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/gitlab/recipes/gitlab-rails.rb
Ruby
apache-2.0
225
master
28,016
# # 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/gitlab/recipes/selinux.rb
Ruby
apache-2.0
225
master
4,066
# # 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/gitlab/recipes/puma.rb
Ruby
apache-2.0
225
master
5,284
# # Copyright:: Copyright (c) 2012 Opscode, Inc. # 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 # # h...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/sidekiq.rb
Ruby
apache-2.0
225
master
1,544
# # 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/gitlab/recipes/gitlab-workhorse_disable.rb
Ruby
apache-2.0
225
master
867
# # 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/gitlab/recipes/storage-check.rb
Ruby
apache-2.0
225
master
1,548
# # 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/recipes/remove_accounts.rb
Ruby
apache-2.0
225
master
1,082
# # 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/gitlab/recipes/mailroom.rb
Ruby
apache-2.0
225
master
2,412
# # 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/gitlab/recipes/sidekiq_disable.rb
Ruby
apache-2.0
225
master
894
# # 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/gitlab/recipes/nginx_disable.rb
Ruby
apache-2.0
225
master
843
# # Copyright:: Copyright (c) 2012 Opscode, 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 # #...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/gitlab-healthcheck.rb
Ruby
apache-2.0
225
master
2,028
# # 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/recipes/generate_secrets.rb
Ruby
apache-2.0
225
master
1,337
# # 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/gitlab/recipes/add_trusted_certs.rb
Ruby
apache-2.0
225
master
1,458
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: MIT # omnibus_helper = OmnibusHelper.new(node) install_dir = node['package']['install-dir'] trusted_certs_dir = node['gitlab']['gitlab_rails']['trusted_certs_dir'] ssl_certs_dir = File.join(install_dir, "embedded/ssl/certs") user_dir = node['gitlab']['user']['h...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/registry_disable_backup_restore_credentials.rb
Ruby
apache-2.0
225
master
951
# # 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 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/nginx.rb
Ruby
apache-2.0
225
master
17,250
# # 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/gitlab/recipes/rails_pages_shared_path.rb
Ruby
apache-2.0
225
master
561
account_helper = AccountHelper.new(node) # We create shared_path with 751 allowing other users to enter into the directories # It's needed, because by default the shared_path is used to store pages which are served by gitlab-www:gitlab-www storage_directory node['gitlab']['gitlab_rails']['shared_path'] do owner acco...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/gitlab/recipes/puma_disable.rb
Ruby
apache-2.0
225
master
886
# # 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/gitlab/recipes/gitlab-backup-cli_disable.rb
Ruby
apache-2.0
225
master
1,206
# # Copyright:: Copyright (c) 2024 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/oak/metadata.rb
Ruby
apache-2.0
225
master
436
name 'oak' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache-2.0' description 'Configures OAK for GitLab Omnibus' long_description 'Configures OAK for GitLab Omnibus enabling advanced components' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) depends 'package' issues_...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/oak/libraries/oak.rb
Ruby
apache-2.0
225
master
1,296
# 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/oak/libraries/openbao.rb
Ruby
apache-2.0
225
master
2,386
# 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/oak/attributes/default.rb
Ruby
apache-2.0
225
master
1,138
# Whether OAK (Omnibus-to-Kubernetes bridge) integration is enabled. default['oak']['enable'] = false # Network address of the OAK cluster entry point (e.g. K8s load-balancer or # ingress host:port). Must be set explicitly when enabled is true. default['oak']['network_address'] = nil # Per-component configuration has...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/letsencrypt/metadata.rb
Ruby
apache-2.0
225
master
508
name 'letsencrypt' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache-2.0' description 'Installs/Configures Lets Encrypt certificates for GitLab' long_description 'Installs/Configures Lets Encrypt certificates for GitLab' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) d...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/letsencrypt/resources/certificate.rb
Ruby
apache-2.0
225
master
5,310
unified_mode true property :cn, String, name_property: true property :key, String, required: true property :owner, [String, nil], default: lazy { node['letsencrypt']['owner'] } property :wwwroot, String, default: lazy { node['letsencrypt']['wwwroot'] } property :alt_names, Array, default: lazy { node['letsencrypt']['a...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/letsencrypt/attributes/default.rb
Ruby
apache-2.0
225
master
1,012
default['letsencrypt']['auto_renew'] = true default['letsencrypt']['auto_renew_hour'] = 0 default['letsencrypt']['auto_renew_minute'] = nil default['letsencrypt']['auto_renew_day_of_month'] = "*/4" default['letsencrypt']['auto_renew_log_directory'] = '/var/log/gitlab/lets-encrypt' default['letsencrypt']['alt_names'] = ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/letsencrypt/libraries/helper.rb
Ruby
apache-2.0
225
master
1,968
# # 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/letsencrypt/libraries/lets_encrypt.rb
Ruby
apache-2.0
225
master
4,535
# 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 # # Unl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/letsencrypt/recipes/enable.rb
Ruby
apache-2.0
225
master
2,724
site = URI(node['gitlab']['external_url']) ruby_block 'http external-url' do block do LoggingHelper.warning("Let's Encrypt is enabled, but external_url is using http") end only_if { site.port == 80 } end # If we're using SSL, force http redirection to https node.default['gitlab']['nginx']['redirect_http_to_...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/letsencrypt/recipes/http_authorization.rb
Ruby
apache-2.0
225
master
412
site = URI(node['gitlab']['external_url']).host omnibus_helper = OmnibusHelper.new(node) # ../resources/certificate.rb letsencrypt_certificate site do crt node['gitlab']['nginx']['ssl_certificate'] key node['gitlab']['nginx']['ssl_certificate_key'] notifies :run, "execute[reload nginx]", :immediate notifies :...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/praefect/metadata.rb
Ruby
apache-2.0
225
master
402
name 'praefect' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache 2.0' description 'Installs/Configures Praefect' long_description 'Installs/Configures Praefect' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) issues_url 'https://gitlab.com/gitlab-org/omnibus-gitlab/iss...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/praefect/recipes/disable.rb
Ruby
apache-2.0
225
master
840
# # 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/praefect/recipes/database_migrations.rb
Ruby
apache-2.0
225
master
1,296
# # 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 # # U...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/praefect/recipes/enable.rb
Ruby
apache-2.0
225
master
3,423
# # 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/praefect/attributes/default.rb
Ruby
apache-2.0
225
master
752
default['praefect']['enable'] = false default['praefect']['dir'] = "/var/opt/gitlab/praefect" default['praefect']['log_directory'] = "/var/log/gitlab/praefect" default['praefect']['env_directory'] = "/opt/gitlab/etc/praefect/env" # default['praefect']['env'] is set in ../recipes/enable.rb default['praefect']['wrapper_p...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/nginx/metadata.rb
Ruby
apache-2.0
225
master
415
name 'nginx' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache-2.0' description 'Installs/Configures Nginx for GitLab' long_description 'Installs/Configures Nginx for GitLab' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) depends 'package' issues_url 'https://gitlab.c...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/nginx/resources/configuration.rb
Ruby
apache-2.0
225
master
1,218
resource_name :nginx_configuration provides :nginx_configuration unified_mode true actions :create, :delete default_action :create property :name, [String] property :path, [String, nil] property :source, [String, nil] property :cookbook, [String, nil], default: 'gitlab' property :variables, [Hash], default: {} prope...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/nginx/recipes/enable.rb
Ruby
apache-2.0
225
master
1,306
# # 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/nginx/libraries/helpers/nginx_helper.rb
Ruby
apache-2.0
225
master
824
module OmnibusGitlab class NginxHelper def initialize(node) @node = node end def nginx_dir @node['gitlab']['nginx']['dir'] end def conf_dir File.join(nginx_dir, "conf") end def service_conf_dir File.join(conf_dir, "service_conf") end def upstream_definit...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/redis/metadata.rb
Ruby
apache-2.0
225
master
437
name 'redis' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache-2.0' description 'Installs/Configures a redis instance for GitLab' long_description 'Installs/Configures a redis instance for GitLab' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) depends 'package' issues...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/redis/attributes/attributes.rb
Ruby
apache-2.0
225
master
3,106
#### # Redis #### default['redis']['enable'] = false default['redis']['ha'] = false default['redis']['start_down'] = false default['redis']['set_replicaof'] = false default['redis']['hz'] = 10 default['redis']['dir'] = "/var/opt/gitlab/redis" default['redis']['log_directory'] = "/var/log/gitlab/redis" default['redis'][...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/redis/recipes/disable.rb
Ruby
apache-2.0
225
master
730
# # 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/redis/recipes/enable.rb
Ruby
apache-2.0
225
master
849
# # 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/redis/resources/service.rb
Ruby
apache-2.0
225
master
3,454
unified_mode true property :socket_group, String property :dir, String, default: lazy { node['redis']['dir'] } property :account_helper, default: lazy { AccountHelper.new(node) }, sensitive: true property :omnibus_helper, default: lazy { OmnibusHelper.new(node) }, sensitive: true property :redis_helper, default: lazy ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/patroni/metadata.rb
Ruby
apache-2.0
225
master
459
name 'patroni' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache 2.0' description 'Installs/Configures Patroni for GitLab' long_description 'Installs/Configures Patroni for GitLab' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) issues_url 'https://gitlab.com/gitlab-org...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/patroni/libraries/patroni_helper.rb
Ruby
apache-2.0
225
master
3,229
class PatroniHelper < BaseHelper include ShellOutHelper DCS_ATTRIBUTES ||= %w(loop_wait ttl retry_timeout maximum_lag_on_failover max_timelines_history master_start_timeout).freeze DCS_POSTGRESQL_ATTRIBUTES ||= %w(use_pg_rewind use_slots).freeze attr_reader :node def ctl_command "#{node['package']['ins...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/patroni/recipes/enable.rb
Ruby
apache-2.0
225
master
5,173
# # Copyright:: Copyright (c) 2020 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/patroni/recipes/disable.rb
Ruby
apache-2.0
225
master
645
# # Copyright:: Copyright (c) 2020 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/patroni/attributes/default.rb
Ruby
apache-2.0
225
master
2,955
default['patroni']['enable'] = false default['patroni']['dir'] = '/var/opt/gitlab/patroni' # # Settings below are based on https://patroni.readthedocs.io/en/latest/SETTINGS.html#settings # # Patroni dynamic configuration settings default['patroni']['loop_wait'] = 10 default['patroni']['ttl'] = 30 default['patroni']['...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/consul/metadata.rb
Ruby
apache-2.0
225
master
435
name 'consul' maintainer 'GitLab.com' maintainer_email 'support@gitlab.com' license 'Apache-2.0' description 'Installs/Configures consul for GitLab' long_description 'Installs/Configures consul for GitLab' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) depends 'package' depends 'gitlab' issues_u...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/consul/attributes/default.rb
Ruby
apache-2.0
225
master
1,479
default['consul']['enable'] = false default['consul']['binary_path'] = '/opt/gitlab/embedded/bin/consul' default['consul']['dir'] = '/var/opt/gitlab/consul' default['consul']['username'] = 'gitlab-consul' default['consul']['group'] = 'gitlab-consul' default['consul']['config_file'] = '/var/opt/gitlab/consul/config.json...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/consul/attributes/services.rb
Ruby
apache-2.0
225
master
588
default['consul']['services'] = [] default['consul']['service_config'] = nil default['consul']['internal']['postgresql_service_name'] = 'postgresql' default['consul']['internal']['postgresql_service_check_interval'] = '10s' default['consul']['internal']['postgresql_service_check_status'] = 'failing' default['consul'][...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/consul/resources/consul_service.rb
Ruby
apache-2.0
225
master
2,445
resource_name :consul_service provides :consul_service unified_mode true property :service_name, String, name_property: true property :id, String, name_property: true property :ip_address, [String, nil], default: nil property :meta, [Hash, nil], default: nil property :port, [Integer, nil], default: nil property :relo...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/consul/recipes/enable_daemon.rb
Ruby
apache-2.0
225
master
2,704
# # 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/consul/recipes/watchers.rb
Ruby
apache-2.0
225
master
1,651
# # 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/consul/recipes/disable_daemon.rb
Ruby
apache-2.0
225
master
644
# # 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/consul/recipes/enable.rb
Ruby
apache-2.0
225
master
2,584
# # 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/consul/recipes/configure_services.rb
Ruby
apache-2.0
225
master
851
# # Copyright:: Copyright (c) 2020 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/consul/recipes/disable.rb
Ruby
apache-2.0
225
master
636
# # 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/consul/recipes/disable_service_postgresql.rb
Ruby
apache-2.0
225
master
736
# # Copyright:: Copyright (c) 2020 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/consul/recipes/enable_service_postgresql.rb
Ruby
apache-2.0
225
master
891
# # 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/consul/libraries/consul_helper.rb
Ruby
apache-2.0
225
master
8,779
require 'timeout' class ConsulHelper attr_reader :node, :default_configuration, :default_server_configuration # List of existing services that we provide configuration for consul monitoring # # When adding a new service to consul, add to the constant below and make sure you # provide an `enable_service_#{se...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/consul/libraries/consul.rb
Ruby
apache-2.0
225
master
3,082
module Consul class << self def parse_variables handle_deprecated_config end def handle_deprecated_config handle_deprecated_tls_config handle_renamed_acl_tokens_config end def handle_deprecated_tls_config return unless Gitlab['consul']['configuration'] all_deprecat...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/consul/libraries/failover_helper.rb
Ruby
apache-2.0
225
master
2,447
# ingests and serializes data from consul to determine whether or not a # failover action should be performed require 'json' require 'resolv' module FailoverHelper class PrimaryMissing < StandardError def initialize(msg = "No healthy primary node found.") super end end class SplitBrain < Standard...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/consul/libraries/watch_helper.rb
Ruby
apache-2.0
225
master
3,409
require 'json' module WatchHelper WATCHER_FILENAME_PREFIX = 'watcher_'.freeze class Watcher attr_reader :name, :handler_script, :handler_template, :type, :consul_config_file, :template_variables, :service_name def initialize(name = nil, handler_script = nil, handler_template = nil, type = nil, consul_wat...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
files/gitlab-cookbooks/runit/metadata.rb
Ruby
apache-2.0
225
master
591
name 'runit' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@chef.io' license 'Apache-2.0' description 'Installs runit and provides runit_service resource' version '5.1.7' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) recipe 'runit', 'Installs and configures runit' %w(ubuntu de...