development:
  clients:
    default:
      uri: mongodb://localhost/govuk_content_development
      options:
        write:
          w: 1

test:
  clients:
    default:
      uri: mongodb://localhost/specialist_publisher_rebuild_test
      options:
        write:
          w: 1

production:
  clients:
    default:
      uri: <%= ENV['MONGODB_URI'] %>
      options:
        write:
          w: majority

development:
  clients:
    default:
      uri: <%= ENV["MONGODB_URI"] || "mongodb://localhost/govuk_content_development" %>
      options:
        write:
          w: 1

test:
  clients:
    default:
      uri: <%= ENV["TEST_MONGODB_URI"] || "mongodb://localhost/specialist_publisher_rebuild_test" %>
      options:
        write:
          w: 1

production:
  clients:
    default:
      uri: <%= ENV["MONGODB_URI"] %>
      options:
        write:
          w: majority

Change default MongoDB values to use ENV vars
Change default MongoDB values to use ENV vars

Falls back to the defaults when ENV vars are not available. The TEST_*
prefix naming format is based on the TEST_DATABASE_URL one used in
Publishing API.
