object_store_toml

in files/gitlab-cookbooks/gitlab/libraries/helpers/gitlab_workhorse_helper.rb [9:35]


  def object_store_toml
    object_store = node['gitlab']['gitlab_rails']['object_store']

    return unless object_store['enabled']

    case object_store.dig('connection', 'provider')
    when 'AWS'
      <<~AWSCFG
      [object_storage]
        provider = "AWS"
      [object_storage.s3]
        aws_access_key_id = 
        aws_secret_access_key = 
      AWSCFG
    when 'AzureRM'
      <<~AZURECFG
      [object_storage]
        provider = "AzureRM"
      [object_storage.azurerm]
        azure_storage_account_name = 
        azure_storage_access_key = 
      AZURECFG
    when 'Google'
      google_config_from(object_store)
    end
  end