anchor.diff:      swift_tenant_name: <%= @os_tenant_name %>
       swift_region_name: <%= @os_region_name %>
   
  +<% if @storage == glance -%>
   # This flavor stores the images in Glance (to integrate with openstack)
   # See also: https://github.com/docker/openstack-docker
   glance: &glance
  
positive.code:     # OAUTH2_CLIENT_SECRET environment variables.
      # See: https://developers.google.com/accounts/docs/OAuth2.
      oauth2: <%= @gcs_oauth2 %>
  
  # This flavor is for storing images in Openstack Swift
  swift: &swift
      <<: *common
  
negative.code:     oss_bucket: <%= @oss_bucket %>
      oss_accessid: <%= @oss_key %>
      oss_accesskey: <%= @oss_secret %>
  <% end -%>
  
  <% if @flavor == dev -%>
  # This is the default configuration when no flavor is specified
  dev: &dev
      <<: *local
      loglevel: <%= @loglevel %>
      debug: <%= @debug %>
      search_backend: <%= @search_backend %>
  <% end -%>
  
  <% if @flavor == test -%>
  # This flavor is used by unit tests
  test:
      <<: *dev
      index_endpoint: https://registry-stage.hub.docker.com
      standalone: true
      storage_path: <%= @storage_path %>
  <% end -%>
  
  <% if @flavor == prod -%>
  # To specify another flavor, set the environment variable SETTINGS_FLAVOR
  # $ export SETTINGS_FLAVOR=prod
  prod:
      <<: *s3
      storage_path: <%= @storage_path %>
  <% end -%>
  