Sha256: d5d7be0ff0d4332dc0111726537d8691d1c4a6279b6632a2163ab1fe9b1f7674

Contents?: true

Size: 1.6 KB

Versions: 34

Compression:

Stored size: 1.6 KB

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Runtime
      module OmnibusConfigurations
        class ObjectStorageAws < Default
          def configuration
            Runtime::Env.require_aws_s3_environment!

            <<~OMNIBUS
              gitlab_rails['object_store']['enabled'] = true
              gitlab_rails['object_store']['proxy_download'] = false
              gitlab_rails['object_store']['connection'] = { 'provider' => 'AWS', 'region' => '#{Runtime::Env.aws_s3_region}', 'aws_access_key_id' => '#{Runtime::Env.aws_s3_key_id}', 'aws_secret_access_key' => '#{Runtime::Env.aws_s3_access_key}' }

              gitlab_rails['object_store']['objects']['artifacts']['bucket'] = '#{Runtime::Env.aws_s3_bucket_name}'
              gitlab_rails['object_store']['objects']['external_diffs']['bucket'] = '#{Runtime::Env.aws_s3_bucket_name}'
              gitlab_rails['object_store']['objects']['lfs']['bucket'] = '#{Runtime::Env.aws_s3_bucket_name}'
              gitlab_rails['object_store']['objects']['uploads']['bucket'] = '#{Runtime::Env.aws_s3_bucket_name}'
              gitlab_rails['object_store']['objects']['packages']['bucket'] = '#{Runtime::Env.aws_s3_bucket_name}'
              gitlab_rails['object_store']['objects']['dependency_proxy']['bucket'] = '#{Runtime::Env.aws_s3_bucket_name}'
              gitlab_rails['object_store']['objects']['pages']['bucket'] = '#{Runtime::Env.aws_s3_bucket_name}'
              gitlab_rails['object_store']['objects']['terraform_state']['bucket'] = '#{Runtime::Env.aws_s3_bucket_name}'
            OMNIBUS
          end
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
gitlab-qa-14.2.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-14.1.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-14.0.2 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-14.0.1 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-14.0.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-13.2.1 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-13.2.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-13.1.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-13.0.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.5.1 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.5.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.4.1 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.4.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.3.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-10.3.0.1 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.2.1 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.2.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.1.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-12.0.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
gitlab-qa-11.3.0 lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb