---
- type: replace
  path: /releases/name=loggregator?
  value:
    name: loggregator
    version: 103
    url: "https://bosh.io/d/github.com/cloudfoundry/loggregator-release?v=103.0"
    sha1: 41fe210afef030a9bae37795fdd7c5e5ca779ea3

- type: replace
  path: /releases/name=consul?
  value:
    name: consul
    version: 170
    url: https://bosh.io/d/github.com/cloudfoundry-incubator/consul-release?v=170
    sha1: 9a3d8138e785088f586bcedcc32fb82abdab120b

- type: replace
  path: /instance_groups/name=rmq/jobs/-
  value: &metron_agent_config
    name: metron_agent
    release: loggregator
    properties:
      metron_agent:
        deployment: ((deployment-name))
      loggregator:
        tls:
          ca_cert: ((loggregator-tls-ca-cert))
          metron:
            cert: ((loggregator-tls-metron-cert))
            key: ((loggregator-tls-metron-key))

- type: replace
  path: /instance_groups/name=rmq/jobs/-
  value: &consul_config
    name: consul_agent
    release: consul
    consumes:
      consul_common: {from: consul_common_link, deployment: cf}
      consul_client: {from: consul_client_link, deployment: cf}
      consul_server: nil
      consul: nil
    provides: {}

- type: replace
  path: /instance_groups/name=haproxy/jobs/-
  value: *metron_agent_config

- type: replace
  path: /instance_groups/name=haproxy/jobs/-
  value: *consul_config


---
- type: replace
  path: /releases/name=loggregator?
  value:
    name: loggregator
    version: 103
    url: "https://bosh.io/d/github.com/cloudfoundry/loggregator-release?v=103.0"
    sha1: 41fe210afef030a9bae37795fdd7c5e5ca779ea3

- type: replace
  path: /instance_groups/name=rmq/jobs/-
  value: &metron_agent_config
    name: metron_agent
    release: loggregator
    properties:
      metron_agent:
        deployment: ((deployment-name))
      loggregator:
        tls:
          ca_cert: ((loggregator-tls-ca-cert))
          metron:
            cert: ((loggregator-tls-metron-cert))
            key: ((loggregator-tls-metron-key))

- type: replace
  path: /instance_groups/name=haproxy/jobs/-
  value: *metron_agent_config

Remove consul from ops file
Remove consul from ops file

Modern versions of BOSH use BOSH-DNS rather than consul.  This change
keeps the example ops file forward looking.

[#157507825]

Co-authored-by: George Blue <eb84c35f2b1b4e421f04f3b8239bc4d268cca455@pivotal.io>
