anchor.diff:          smtp_secure: <%= @smtp_secure %>
           from_addr: <%= @smtp_from_addr %>
           to_addr: <%= @smtp_to_addr %>
  -
  +<% end -%>
  +
  +<% if @bugsnag -%>
       # Enable bugsnag (set the API key)
       bugsnag: <%= @bugsnag %>
  -
  +<% end -%>
  +
  +<% if @cors_origins -%>
       # CORS support is not enabled by default
       cors:
           origins: <%= @cors_origins %>
  
positive.code:     oss_bucket: <%= @oss_bucket %>
      oss_accessid: <%= @oss_key %>
      oss_accesskey: <%= @oss_secret %>
  
  
  
  # This is the default configuration when no flavor is specified
  dev: &dev
      <<: *local
      loglevel: <%= @loglevel %>
      debug: <%= @debug %>
      search_backend: <%= @search_backend %>
  
  # This flavor is used by unit tests
  test:
      <<: *dev
      index_endpoint: https://registry-stage.hub.docker.com
      standalone: true
      storage_path: <%= @storage_path %>
  
  # To specify another flavor, set the environment variable SETTINGS_FLAVOR
  # $ export SETTINGS_FLAVOR=prod
  prod:
      <<: *s3
      storage_path: <%= @storage_path %>
  
negative.code: 
  openstack:
      <<: *glance
  <% end -%>
  
  <% if @storage == glance-swift -%>
  # This flavor stores the images in Glance (to integrate with openstack)
  # and tags in Swift.
  glance-swift: &glance-swift
  