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

test:
  clients:
    default:
      uri: <%= ENV["TEST_MONGODB_URI"] || "mongodb://localhost/router_api_test" %>
      options:
        write:
          w: 1
        # In the test environment we lower the retries and retry interval to
        # low amounts for fast failures.
        max_retries: 1
        retry_interval: 0


production:
  clients:
    default:
      uri: <%= ENV["MONGODB_URI"] %>
      options:
        write:
          w: 1
        ssl_ca_cert: /etc/ssl/certs/rds_cacert.pem

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

test:
  clients:
    default:
      uri: <%= ENV["TEST_MONGODB_URI"] || "mongodb://localhost/router_api_test" %>
      options:
        write:
          w: 1
        # In the test environment we lower the retries and retry interval to
        # low amounts for fast failures.
        max_retries: 1
        retry_interval: 0


production:
  clients:
    default:
      uri: <%= ENV["MONGODB_URI"] %>
      options:
        write:
          w: 1
        ssl_ca_cert: /etc/ssl/certs/rds-combined-ca-bundle.pem

Use the combined Amazon cert bundle for RDS/DocDB.
Use the combined Amazon cert bundle for RDS/DocDB.

This isn't actually in use yet since we're still on self-hosted Mongo,
so this is a no-op for now.

It means that when we come to switch router-api to DocumentDB, the cert
file will still be in the right place after alphagov/govuk-puppet#9839.
