Class: Gitlab::QA::Runtime::OmnibusConfigurations::ObjectStorage
- Inherits:
-
Default
- Object
- Gitlab::QA::Runtime::OmnibusConfiguration
- Default
- Gitlab::QA::Runtime::OmnibusConfigurations::ObjectStorage
- Defined in:
- lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb
Constant Summary collapse
- TYPES =
%w[artifacts external_diffs lfs uploads packages dependency_proxy terraform_state pages].freeze
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
#<<, #expand_config_template, #initialize, #sanitize!, #to_s
Constructor Details
This class inherits a constructor from Gitlab::QA::Runtime::OmnibusConfiguration
Instance Method Details
#configuration ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb', line 10 def configuration config = TYPES.each_with_object(+'') do |object_type, omnibus| omnibus << " gitlab_rails['object_store']['objects']['\#{object_type}']['bucket'] = '\#{object_type}-bucket'\n OMNIBUS\n end\n config << <<~OMNIBUS\n gitlab_rails['object_store']['enabled'] = true\n gitlab_rails['object_store']['proxy_download'] = true\n gitlab_rails['object_store']['connection'] = \#{minio.to_config}\n OMNIBUS\nend\n" |
#exec_commands ⇒ Object
33 34 35 |
# File 'lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb', line 33 def exec_commands QA::Scenario::CLICommands.git_lfs_install_commands end |
#prepare ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb', line 23 def prepare minio.network = Runtime::Env.docker_network TYPES.each do |bucket_name| minio.add_bucket("#{bucket_name}-bucket") end minio end |