Class: Gitlab::QA::Runtime::OmnibusConfigurations::ObjectStorageAws
- Inherits:
-
Default
- Object
- Gitlab::QA::Runtime::OmnibusConfiguration
- Default
- Gitlab::QA::Runtime::OmnibusConfigurations::ObjectStorageAws
- Defined in:
- lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
Instance Method Summary collapse
Methods inherited from Default
Methods inherited from Gitlab::QA::Runtime::OmnibusConfiguration
#<<, #exec_commands, #initialize, #prepare, #sanitize!, #to_s
Constructor Details
This class inherits a constructor from Gitlab::QA::Runtime::OmnibusConfiguration
Instance Method Details
#configuration ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb', line 8 def configuration Runtime::Env.require_aws_s3_environment! <<~OMNIBUS gitlab_rails['object_store']['enabled'] = true gitlab_rails['object_store']['proxy_download'] = true 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 |