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 | spec/lib/gitlab/build/facts_spec.rb | Ruby | apache-2.0 | 225 | master | 9,885 | require 'spec_helper'
require 'gitlab/build/facts'
RSpec.describe Build::Facts do
let(:version_manifest_contents) do
<<-EOS
{
"manifest_format": 2,
"software": {
"gitlab-rails": {
"locked_version": "6f286d7717f419489a08a9918621f438256e397b",
"locked_source": {
... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/lib/gitlab/build/qa_image_spec.rb | Ruby | apache-2.0 | 225 | master | 2,212 | require 'spec_helper'
require 'gitlab/build/qa_image'
RSpec.describe Build::QAImage do
before do
allow(Build::GitlabImage).to receive(:dockerhub_image_name).and_return('gitlab/gitlab-ce')
allow(Build::GitlabImage).to receive(:gitlab_registry_image_name).and_return('gitlab-ce')
allow(Gitlab::Util).to rec... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/lib/gitlab/build/gitlab_image_spec.rb | Ruby | apache-2.0 | 225 | master | 539 | require 'spec_helper'
require 'gitlab/build/gitlab_image'
RSpec.describe Build::GitlabImage do
before do
allow(Build::Info::Package).to receive(:name).and_return('gitlab-ce')
end
describe '.dockerhub_image_name' do
it 'returns a correct image name' do
expect(described_class.dockerhub_image_name).t... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/lib/gitlab/build/info/git_spec.rb | Ruby | apache-2.0 | 225 | master | 15,398 | require 'spec_helper'
require 'gitlab/build/info/git'
RSpec.describe Build::Info::Git do
before do
stub_default_package_version
ce_tags = "16.1.1+ce.0\n16.0.0+rc42.ce.0\n15.11.1+ce.0\n15.11.0+ce.0\n15.10.0+ce.0\n15.10.0+rc42.ce.0\n15.1.0+ce.0\n"
ee_tags = "16.1.1+ee.0\n16.0.0+rc42.ee.0\n15.11.1+ee.0\n15... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/lib/gitlab/build/info/deploy_spec.rb | Ruby | apache-2.0 | 225 | master | 1,061 | require 'spec_helper'
require 'gitlab/build/info/deploy'
RSpec.describe Build::Info::Deploy do
before do
stub_default_package_version
stub_env_var('GITLAB_ALTERNATIVE_REPO', nil)
stub_env_var('ALTERNATIVE_PRIVATE_TOKEN', nil)
end
describe '.environment' do
before do
allow(ENV).to receive(:... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/lib/gitlab/build/info/docker_spec.rb | Ruby | apache-2.0 | 225 | master | 851 | require 'spec_helper'
require 'gitlab/build/info/docker'
RSpec.describe Build::Info::Docker do
before do
stub_default_package_version
stub_env_var('GITLAB_ALTERNATIVE_REPO', nil)
stub_env_var('ALTERNATIVE_PRIVATE_TOKEN', nil)
end
describe '.tag' do
before do
allow(Build::Check).to receive(... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/lib/gitlab/build/info/package_spec.rb | Ruby | apache-2.0 | 225 | master | 5,880 | require 'spec_helper'
require 'gitlab/build/info/package'
RSpec.describe Build::Info::Package do
before do
stub_default_package_version
stub_env_var('GITLAB_ALTERNATIVE_REPO', nil)
stub_env_var('ALTERNATIVE_PRIVATE_TOKEN', nil)
end
describe '.name' do
describe 'shows EE' do
it 'when ee=tru... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/lib/gitlab/build/info/components_spec.rb | Ruby | apache-2.0 | 225 | master | 7,103 | require 'spec_helper'
require 'gitlab/build/info/components'
RSpec.describe Build::Info::Components::GitLabRails do
before do
stub_default_package_version
stub_env_var('GITLAB_ALTERNATIVE_REPO', nil)
stub_env_var('ALTERNATIVE_PRIVATE_TOKEN', nil)
end
describe '.version' do
describe 'GITLAB_VERSI... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/support/expectations.rb | Ruby | apache-2.0 | 225 | master | 1,131 | # frozen_string_literal: true
module GitlabSpec
module Expectations
# Expect a note to be logged with the specified message
#
# @param [String] message
# @see LoggingHelper.warning
def expect_logged_note(message)
expect(LoggingHelper.messages).to include(kind: :note, message: message)
e... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | spec/support/macros.rb | Ruby | apache-2.0 | 225 | master | 5,342 | require 'openssl'
require 'toml-rb'
module GitlabSpec
module Macros
def stub_gitlab_rb(config)
config.each do |key, value|
value = Mash.from_hash(value) if value.is_a?(Hash)
allow(Gitlab).to receive(:[]).with(key.to_s).and_return(value)
end
end
def stub_default_should_notify?... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/solo.rb | Ruby | apache-2.0 | 225 | master | 1,765 | require_relative 'package/libraries/handlers/gitlab'
require_relative 'package/libraries/formatters/gitlab'
CURRENT_PATH = File.expand_path(File.dirname(__FILE__))
TIME = Time.now.to_i
LOG_PATH = '/var/log/gitlab/reconfigure'.freeze
Dir.exist?(LOG_PATH) || FileUtils.mkdir_p(LOG_PATH)
add_formatter :gitlab
file_cache_pa... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/crond/metadata.rb | Ruby | apache-2.0 | 225 | master | 438 | name 'crond'
maintainer 'GitLab.com'
maintainer_email 'support@gitlab.com'
license 'Apache-2.0'
description 'Installs/Configures go-crond for GitLab'
long_description 'Installs/Configures go-crond for GitLab'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
depends 'package'
depends 'gitlab'
issue... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/crond/recipes/enable.rb | Ruby | apache-2.0 | 225 | master | 935 | # When this recipe is used directly, set the attribute, so the crond_job type
# knows we have been enabled.
logfiles_helper = LogfilesHelper.new(node)
logging_settings = logfiles_helper.logging_settings('crond')
node.default['crond']['enable'] = true
# Create log_directory
directory logging_settings[:log_directory] d... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/crond/libraries/crond_helper.rb | Ruby | apache-2.0 | 225 | master | 568 | require 'shellwords'
class CrondHelper
attr_reader :node
def initialize(node)
@node = node
end
def flags
config = []
node['crond']['flags'].each do |flag_key, flag_value|
next if flag_key == 'include' || flag_value == false
config << if flag_value == true
"--#{flag... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/crond/resources/job.rb | Ruby | apache-2.0 | 225 | master | 1,058 | unified_mode true
property :title, String, name_property: true
property :user, String, required: true
property :minute, [String, Integer], default: "*"
property :hour, [String, Integer], default: "*"
property :day_of_month, [String, Integer], default: "*"
property :month, [String, Integer], default: "*"
property :day_... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/monitoring/metadata.rb | Ruby | apache-2.0 | 225 | master | 510 | name 'monitoring'
maintainer 'GitLab.com'
maintainer_email 'support@gitlab.com'
license 'Apache-2.0'
description 'Installs/Configures a monitoring solution for GitLab'
long_description 'Installs/Configures prometheus and exporters for GitLab'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
depends... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/monitoring/recipes/alertmanager.rb | Ruby | apache-2.0 | 225 | master | 2,922 | #
# 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/monitoring/recipes/gitlab-exporter_disable.rb | Ruby | apache-2.0 | 225 | master | 922 | #
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# 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
#
# h... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/monitoring/recipes/pgbouncer-exporter_disable.rb | Ruby | apache-2.0 | 225 | master | 743 | #
# 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/monitoring/recipes/pgbouncer-exporter.rb | Ruby | apache-2.0 | 225 | master | 2,334 | #
# 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/monitoring/recipes/prometheus.rb | Ruby | apache-2.0 | 225 | master | 4,638 | #
# 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/monitoring/recipes/node-exporter_disable.rb | Ruby | apache-2.0 | 225 | master | 916 | #
# 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/monitoring/recipes/postgres-exporter.rb | Ruby | apache-2.0 | 225 | master | 3,854 | #
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# 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
#
# h... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/monitoring/recipes/default.rb | Ruby | apache-2.0 | 225 | master | 933 | #
# 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/monitoring/recipes/redis-exporter_disable.rb | Ruby | apache-2.0 | 225 | master | 918 | #
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# 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
#
# h... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/monitoring/recipes/alertmanager_disable.rb | Ruby | apache-2.0 | 225 | master | 650 | #
# 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/monitoring/recipes/node-exporter.rb | Ruby | apache-2.0 | 225 | master | 2,700 | #
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# 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
#
# h... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/monitoring/recipes/gitlab-exporter.rb | Ruby | apache-2.0 | 225 | master | 4,307 | #
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# 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
#
# h... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/monitoring/recipes/redis-exporter.rb | Ruby | apache-2.0 | 225 | master | 2,474 | #
# 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/monitoring/recipes/prometheus_disable.rb | Ruby | apache-2.0 | 225 | master | 820 | #
# 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/monitoring/recipes/postgres-exporter_disable.rb | Ruby | apache-2.0 | 225 | master | 928 | #
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# 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
#
# h... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/monitoring/recipes/user.rb | Ruby | apache-2.0 | 225 | master | 1,136 | #
# 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/monitoring/libraries/prometheus.rb | Ruby | apache-2.0 | 225 | master | 27,687 | #
# 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/monitoring/libraries/prometheus_helper.rb | Ruby | apache-2.0 | 225 | master | 1,521 | #
# 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/monitoring/attributes/default.rb | Ruby | apache-2.0 | 225 | master | 7,458 | ####
# Prometheus server
####
default['monitoring']['prometheus']['enable'] = false
default['monitoring']['prometheus']['monitor_kubernetes'] = true
default['monitoring']['prometheus']['username'] = 'gitlab-prometheus'
default['monitoring']['prometheus']['group'] = 'gitlab-prometheus'
default['monitoring']['prometheus... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/registry/metadata.rb | Ruby | apache-2.0 | 225 | master | 464 | name 'registry'
maintainer 'GitLab.com'
maintainer_email 'support@gitlab.com'
license 'Apache 2.0'
description 'Installs/Configures a docker registry for GitLab'
long_description 'Installs/Configures a docker registry for GitLab'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
depends 'letsencrypt... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/registry/attributes/default.rb | Ruby | apache-2.0 | 225 | master | 2,624 | #
# 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/registry/resources/database_objects.rb | Ruby | apache-2.0 | 225 | master | 3,441 | # registry/resources/database_objects.rb
unified_mode true
property :pg_helper, [GeoPgHelper, PgHelper], required: true, sensitive: true
default_action :nothing
action :nothing do
end
action :create do
host = node['postgresql']['unix_socket_directory']
port = node['postgresql']['port']
database_name = node['... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/registry/resources/database_migrations.rb | Ruby | apache-2.0 | 225 | master | 974 | unified_mode true
property :name, name_property: true
default_action :nothing
action :run do
account_helper = AccountHelper.new(node)
logfiles_helper = LogfilesHelper.new(node)
logging_settings = logfiles_helper.logging_settings('registry')
# Determine if post-deployment migrations should be skipped
skip_... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/registry/recipes/database_migrations.rb | Ruby | apache-2.0 | 225 | master | 846 | #
# 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/registry/recipes/database_objects.rb | Ruby | apache-2.0 | 225 | master | 375 | # CAUTION: This recipe is only to be used by the PostgreSQL node
# because it's the only node which has access to the `postgresql`
# user with permission to create database objects.
pg_helper = PgHelper.new(node)
registry_database_objects 'default' do
pg_helper pg_helper
action :create
only_if { node.dig('postgr... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/registry/recipes/disable.rb | Ruby | apache-2.0 | 225 | master | 686 | #
# 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/registry/recipes/enable.rb | Ruby | apache-2.0 | 225 | master | 4,119 | #
# 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/registry/libraries/registry_helper.rb | Ruby | apache-2.0 | 225 | master | 1,071 | class RegistryHelper < BaseHelper
attr_reader :node
def redis_enabled?
redis = node.dig('registry', 'redis') || {}
redis.any? { |_k, v| v.is_a?(Hash) && v['enabled'] }
end
def public_attributes
{
'registry' => {
'dir' => node['registry']['dir'],
'username' => node['registry']... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/registry/libraries/registry_pg_helper.rb | Ruby | apache-2.0 | 225 | master | 606 | require_relative '../../gitlab/libraries/helpers/pg_helper'
# Helper class to interact with PostgreSQL instance for Registry database
class RegistryPgHelper < PgHelper
# Check if registry database is enabled
def database_enabled?
db_enabled = node.dig('registry', 'database', 'enabled')
['prefer', 'true', t... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab-kas/metadata.rb | Ruby | apache-2.0 | 225 | master | 449 | name 'gitlab-kas'
maintainer 'GitLab.com'
maintainer_email 'support@gitlab.com'
license 'Apache 2.0'
description 'Installs/Configures GitLab KAS'
long_description 'Installs/Configures the GitLab Kubernetes Agent Server'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
issues_url 'https://gitlab.com... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab-kas/recipes/disable.rb | Ruby | apache-2.0 | 225 | master | 688 | #
# 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-kas/recipes/enable.rb | Ruby | apache-2.0 | 225 | master | 6,675 | #
# 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-kas/libraries/gitlab_kas.rb | Ruby | apache-2.0 | 225 | master | 9,813 | #
# 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-kas/attributes/default.rb | Ruby | apache-2.0 | 225 | master | 3,303 | ####
# GitLab Kubernetes Agent Server
####
default['gitlab_kas']['enable'] = false
default['gitlab_kas']['agent_configuration_poll_period'] = 300
default['gitlab_kas']['agent_info_cache_ttl'] = 300
default['gitlab_kas']['agent_info_cache_error_ttl'] = 60
default['gitlab_kas']['gitlab_address'] = ''
default['gitlab_kas'... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/metadata.rb | Ruby | apache-2.0 | 225 | master | 452 | name 'postgresql'
maintainer 'GitLab.com'
maintainer_email 'support@gitlab.com'
license 'Apache-2.0'
description 'Installs/Configures a postgresql instance for GitLab'
long_description 'Installs/Configures a postgresql instance for GitLab'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
depends 'p... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/recipes/disable.rb | Ruby | apache-2.0 | 225 | master | 723 | #
# 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/postgresql/recipes/user.rb | Ruby | apache-2.0 | 225 | master | 1,405 | #
# 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/postgresql/recipes/sysctl.rb | Ruby | apache-2.0 | 225 | master | 409 | # frozen_string_literal: true
include_recipe 'package::sysctl'
gitlab_sysctl 'kernel.shmmax' do
value node['postgresql']['shmmax']
end
gitlab_sysctl 'kernel.shmall' do
value node['postgresql']['shmall']
end
sem = [
node['postgresql']['semmsl'],
node['postgresql']['semmns'],
node['postgresql']['semopm'],
... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/recipes/bin.rb | Ruby | apache-2.0 | 225 | master | 3,222 | #
# 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/postgresql/recipes/enable.rb | Ruby | apache-2.0 | 225 | master | 3,337 | #
# 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/postgresql/recipes/standalone.rb | Ruby | apache-2.0 | 225 | master | 2,880 | account_helper = AccountHelper.new(node)
pg_helper = PgHelper.new(node)
omnibus_helper = OmnibusHelper.new(node)
logfiles_helper = LogfilesHelper.new(node)
logging_settings = logfiles_helper.logging_settings('postgresql')
postgresql_username = account_helper.postgresql_user
postgresql_group = account_helper.postgresql_... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/resources/query.rb | Ruby | apache-2.0 | 225 | master | 690 | resource_name :postgresql_query
provides :postgresql_query
unified_mode true
property :description, String, name_property: true
property :query, String
property :db_name, String, default: 'template1'
property :helper, default: lazy { PgHelper.new(node) }, sensitive: true
action :run do
account_helper = AccountHelp... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/resources/user.rb | Ruby | apache-2.0 | 225 | master | 2,145 | unified_mode true
property :username, String, name_property: true
property :password, String
property :options, Array
property :helper, default: lazy { PgHelper.new(node) }, sensitive: true
action :create do
account_helper = AccountHelper.new(node)
query = %(CREATE USER \\"#{new_resource.username}\\")
execute... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/resources/database.rb | Ruby | apache-2.0 | 225 | master | 880 | unified_mode true
property :database, String, name_property: true
property :owner, String, default: lazy { node['postgresql']['sql_user'] }
property :helper, default: lazy { PgHelper.new(node) }, sensitive: true
property :database_port, Integer, default: lazy { node['postgresql']['port'] }
property :database_socket, S... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/resources/extension.rb | Ruby | apache-2.0 | 225 | master | 523 | unified_mode true
property :extension, String, name_property: true
property :database, String
property :helper, default: lazy { PgHelper.new(node) }, sensitive: true
action :enable do
postgresql_query "enable #{new_resource.extension} extension" do
query %(CREATE EXTENSION IF NOT EXISTS #{new_resource.extension... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/resources/config.rb | Ruby | apache-2.0 | 225 | master | 1,200 | unified_mode true
property :name, String, name_property: true
property :username, default: lazy { node['postgresql']['username'] }
property :helper, default: lazy { PgHelper.new(node) }, sensitive: true
action :create do
postgresql_helper = new_resource.helper
template postgresql_helper.postgresql_config do
... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/resources/schema.rb | Ruby | apache-2.0 | 225 | master | 1,167 | unified_mode true
property :schema, String, name_property: true
property :database, String
property :owner, String, default: 'CURRENT_USER'
property :helper, default: lazy { PgHelper.new(node) }, sensitive: true
action :create do
postgresql_query "create #{new_resource.schema} schema on #{new_resource.database}" do... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/postgresql/attributes/default.rb | Ruby | apache-2.0 | 225 | master | 6,416 | ###
# PostgreSQL
###
default['postgresql']['enable'] = false
default['postgresql']['ha'] = false
default['postgresql']['dir'] = "/var/opt/gitlab/postgresql"
default['postgresql']['unix_socket_directory'] = nil
default['postgresql']['username'] = "gitlab-psql"
default['postgresql']['group'] = "gitlab-psql"
default['post... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/spamcheck/metadata.rb | Ruby | apache-2.0 | 225 | master | 422 | name 'spamcheck'
maintainer 'GitLab.com'
maintainer_email 'support@gitlab.com'
license 'Apache 2.0'
description 'Installs/Configures Spamcheck'
long_description 'Installs/Configures Spamcheck'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
issues_url 'https://gitlab.com/gitlab-org/omnibus-gitlab/... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/spamcheck/recipes/enable.rb | Ruby | apache-2.0 | 225 | master | 3,351 | #
# 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
#
# U... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/spamcheck/recipes/disable.rb | Ruby | apache-2.0 | 225 | master | 745 | #
# 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
#
# U... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/spamcheck/attributes/default.rb | Ruby | apache-2.0 | 225 | master | 854 | default['spamcheck']['enable'] = false
default['spamcheck']['dir'] = '/var/opt/gitlab/spamcheck'
default['spamcheck']['port'] = 8001
default['spamcheck']['external_port'] = nil
default['spamcheck']['monitoring_address'] = ':8003'
default['spamcheck']['log_level'] = 'info'
default['spamcheck']['log_format'] = 'json'
def... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/pgbouncer/metadata.rb | Ruby | apache-2.0 | 225 | master | 482 | name 'pgbouncer'
maintainer 'GitLab.com'
maintainer_email 'support@gitlab.com'
license 'Apache 2.0'
description 'Installs/Configures PgBouncer for GitLab'
long_description 'Installs/Configures PgBouncer 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/pgbouncer/libraries/pgbouncer_helper.rb | Ruby | apache-2.0 | 225 | master | 2,781 | class PgbouncerHelper < BaseHelper
attr_reader :node
def database_config(database)
settings = node['pgbouncer']['databases'][database].to_hash
# The recipe uses user and password for the auth_user option and the pg_auth file
settings['auth_user'] = settings.delete('user') if settings.key?('user')
s... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/pgbouncer/attributes/default.rb | Ruby | apache-2.0 | 225 | master | 4,638 | default['pgbouncer']['env_directory'] = '/opt/gitlab/etc/pgbouncer/env'
default['pgbouncer']['env'] = {
'SSL_CERT_DIR' => "#{node['package']['install-dir']}/embedded/ssl/certs/"
}
default['pgbouncer']['enable'] = false
default['pgbouncer']['log_directory'] = '/var/log/gitlab/pgbouncer'
default['pgbouncer']['data_dire... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/pgbouncer/recipes/user.rb | Ruby | apache-2.0 | 225 | master | 2,518 | #
# 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/pgbouncer/recipes/disable.rb | Ruby | apache-2.0 | 225 | master | 647 | #
# 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/pgbouncer/recipes/enable.rb | Ruby | apache-2.0 | 225 | master | 3,678 | #
# 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/pgbouncer/resources/pgbouncer_user.rb | Ruby | apache-2.0 | 225 | master | 1,850 | resource_name :pgbouncer_user
provides :pgbouncer_user
unified_mode true
property :type, String, name_property: true
property :account_helper, default: AccountHelper.new(node), sensitive: true
property :add_auth_function, [true, false], required: true
property :database, String, required: true
property :password, Str... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitaly/metadata.rb | Ruby | apache-2.0 | 225 | master | 396 | name 'gitaly'
maintainer 'GitLab.com'
maintainer_email 'support@gitlab.com'
license 'Apache 2.0'
description 'Installs/Configures Gitaly'
long_description 'Installs/Configures Gitaly'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
issues_url 'https://gitlab.com/gitlab-org/omnibus-gitlab/issues'
s... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitaly/recipes/enable.rb | Ruby | apache-2.0 | 225 | master | 8,269 | #
# 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/gitaly/recipes/git_data_dirs.rb | Ruby | apache-2.0 | 225 | master | 1,110 | #
# 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/gitaly/recipes/disable.rb | Ruby | apache-2.0 | 225 | master | 834 | #
# 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/gitaly/libraries/gitaly.rb | Ruby | apache-2.0 | 225 | master | 7,613 | #
# 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/gitaly/attributes/default.rb | Ruby | apache-2.0 | 225 | master | 885 | default['gitaly']['enable'] = false
default['gitaly']['ha'] = false
default['gitaly']['dir'] = "/var/opt/gitlab/gitaly"
default['gitaly']['env_directory'] = "/opt/gitlab/etc/gitaly/env"
# default['gitaly']['env'] is set in ../recipes/enable.rb
default['gitaly']['bin_path'] = "/opt/gitlab/embedded/bin/gitaly"
default['g... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/metadata.rb | Ruby | apache-2.0 | 225 | master | 585 | name "gitlab"
maintainer "GitLab.com"
maintainer_email "support@gitlab.com"
license "Apache 2.0"
description "Install and configure GitLab from Omnibus"
long_description "Install and configure GitLab from Omnibus"
version "0.0.1"
recipe "gitlab", "Configures GitLab from Omnibus"
supports "ubuntu"
depends "package"
de... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/attributes/default.rb | Ruby | apache-2.0 | 225 | master | 73,927 | #
# 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/resources/sidekiq_service.rb | Ruby | apache-2.0 | 225 | master | 2,245 | resource_name :sidekiq_service
provides :sidekiq_service
unified_mode true
property :user, default: lazy { node['gitlab']['user']['username'] }
property :group, default: lazy { node['gitlab']['user']['group'] }
property :log_directory, [String, nil], default: nil
property :log_directory_mode, [String, nil], default: ... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/resources/puma_config.rb | Ruby | apache-2.0 | 225 | master | 2,160 | resource_name :puma_config
provides :puma_config
unified_mode true
property :filename, String, name_property: true
property :tag, String, default: 'gitlab-puma-worker'
property :rackup, String, default: 'config.ru'
property :environment, String, default: 'production'
property :install_dir, [String, nil], default: laz... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/resources/rails_migration.rb | Ruby | apache-2.0 | 225 | master | 1,302 | resource_name :rails_migration
provides :rails_migration
unified_mode true
property :name, name_property: true
property :logfile_prefix, String, required: true
property :rake_task, String, required: true
property :helper, required: true, sensitive: true
property :environment, sensitive: true
property :dependent_servi... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/resources/database_objects.rb | Ruby | apache-2.0 | 225 | master | 2,187 | resource_name :database_objects
provides :database_objects
unified_mode true
property :pg_helper, [GeoPgHelper, PgHelper], required: true, sensitive: true
property :account_helper, [AccountHelper], required: true, sensitive: true
action :create do
rails_enabled = node['gitlab']['gitlab_rails']['enable']
postgre... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/libraries/sidekiq.rb | Ruby | apache-2.0 | 225 | master | 1,544 | require 'resolv'
require 'ipaddr'
module Sidekiq
class << self
include MetricsExporterHelper
def parse_variables
check_listen_address
check_consistent_exporter_tls_settings('sidekiq')
end
def check_listen_address
return unless metrics_enabled? && health_checks_enabled?
lis... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/libraries/puma.rb | Ruby | apache-2.0 | 225 | master | 3,249 | #
# 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/bash_hide_env.rb | Ruby | apache-2.0 | 225 | master | 668 | # By default, Chef's bash resource prints out the environment variables
# upon failure, but the environment may contain sensitive information. This
# resource suppresses that output.
require 'chef/resource'
require 'chef/resource/script'
class Chef
class Resource
class BashHideEnv < Chef::Resource::Bash
p... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/libraries/gitlab_sshd_helper.rb | Ruby | apache-2.0 | 225 | master | 1,462 | class GitlabSshdHelper
OMNIBUS_KEYS = %w[enable dir generate_host_keys log_directory env_directory host_keys_dir host_keys_glob host_certs_dir host_certs_glob].freeze
def initialize(node)
@node = node
end
# This returns the configuration needed to start gitlab-sshd inside the gitlab-shell
# configuratio... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/libraries/incoming_email.rb | Ruby | apache-2.0 | 225 | master | 2,478 | #
# 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/helper.rb | Ruby | apache-2.0 | 225 | master | 761 | #
# 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/libraries/nginx.rb | Ruby | apache-2.0 | 225 | master | 4,669 | #
# 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/mailroom_helper.rb | Ruby | apache-2.0 | 225 | master | 699 | # frozen_string_literal: true
class MailroomHelper
attr_reader :node
def initialize(node)
@node = node
end
def internal_api_url
# The second returned value is for UNIX socket only.
api_url, _ = WebServerHelper.internal_api_url(node)
# In general, Ruby and most gems don't support HTTP request ... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/libraries/gitlab_rails.rb | Ruby | apache-2.0 | 225 | master | 21,814 | # 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
#
# Unl... |
github | gitlabhq/omnibus-gitlab | https://github.com/gitlabhq/omnibus-gitlab | files/gitlab-cookbooks/gitlab/libraries/gitlab_exporter.rb | Ruby | apache-2.0 | 225 | master | 1,802 | #
# 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/libraries/gitlab_mattermost.rb | Ruby | apache-2.0 | 225 | master | 4,428 | #
# 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/registry.rb | Ruby | apache-2.0 | 225 | master | 9,638 | #
# 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/pg_version.rb | Ruby | apache-2.0 | 225 | master | 1,782 | #
# 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.