Class: Gitlab::QA::Runtime::OmnibusConfigurations::ObjectStorage
- Inherits:
-
Default
show all
- Defined in:
- lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb
Constant Summary
collapse
- TYPES =
%w[artifacts external_diffs lfs uploads packages dependency_proxy].freeze
Instance Method Summary
collapse
Methods inherited from Default
configuration
#<<, #initialize, #sanitize!, #to_s
Instance Method Details
#configuration ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb', line 10
def configuration
TYPES.each_with_object(+'') do |object_type, omnibus|
omnibus << " gitlab_rails['\#{object_type}_enabled'] = true\n gitlab_rails['\#{object_type}_storage_path'] = '/var/opt/gitlab/gitlab-rails/shared/\#{object_type}'\n gitlab_rails['\#{object_type}_object_store_enabled'] = true\n gitlab_rails['\#{object_type}_object_store_remote_directory'] = '\#{object_type}-bucket'\n gitlab_rails['\#{object_type}_object_store_background_upload'] = false\n gitlab_rails['\#{object_type}_object_store_direct_upload'] = true\n gitlab_rails['\#{object_type}_object_store_proxy_download'] = true\n gitlab_rails['\#{object_type}_object_store_connection'] = \#{minio.to_config}\n OMNIBUS\n end\nend\n"
|
#exec_commands ⇒ Object
35
36
37
|
# File 'lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb', line 35
def exec_commands
QA::Scenario::CLICommands.git_lfs_install_commands
end
|
#prepare ⇒ Object
25
26
27
28
29
30
31
32
33
|
# File 'lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb', line 25
def prepare
minio.network = 'test'
TYPES.each do |bucket_name|
minio.add_bucket("#{bucket_name}-bucket")
end
minio
end
|