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
Constant Summary
Constants inherited from Gitlab::QA::Runtime::OmnibusConfiguration
Gitlab::QA::Runtime::OmnibusConfiguration::ERB_PATTERN
Instance Method Summary collapse
Methods inherited from Default
Methods inherited from Gitlab::QA::Runtime::OmnibusConfiguration
#<<, #exec_commands, #expand_config_template, #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'] = false gitlab_rails['object_store']['connection'] = { 'provider' => 'AWS', 'region' => '$AWS_S3_REGION', 'aws_access_key_id' => '$AWS_S3_KEY_ID', 'aws_secret_access_key' => '$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 |