<commit_before>################
# Syslog Agent #
################
- type: replace
  path: /addons/name=loggr-syslog-agent?
  value:
    name: loggr-syslog-agent
    include:
      stemcell:
      - os: ubuntu-trusty
      - os: ubuntu-xenial
    exclude:
      jobs:
      - name: smoke_tests
        release: cf-smoke-tests
    jobs:
    - name: loggr-syslog-agent
      release: loggregator-agent
      properties:
        port: 3460
        tls:
          ca_cert: "((loggregator_tls_agent.ca))"
          cert: "((loggregator_tls_agent.certificate))"
          key: "((loggregator_tls_agent.private_key))"
        cache:
          tls:
            ca_cert: "((syslog_agent_api_tls.ca))"
            cert: "((syslog_agent_api_tls.certificate))"
            key: "((syslog_agent_api_tls.private_key))"
            cn: "binding-cache"
        metrics:
          ca_cert: "((syslog_agent_metrics_tls.ca))"
          cert: "((syslog_agent_metrics_tls.certificate))"
          key: "((syslog_agent_metrics_tls.private_key))"
          server_name: syslog_agent_metrics

- type: replace
  path: /variables/name=syslog_agent_api_tls
  value:
    name: syslog_agent_api_tls
    type: certificate
    options:
      ca: loggregator_ca
      common_name: syslog-agent
      extended_key_usage:
      - client_auth

#################
# Binding Cache #
#################
- type: replace
  path: /instance_groups/name=scheduler/jobs/name=loggr-syslog-binding-cache?
  value:
    name: loggr-syslog-binding-cache
    release: loggregator-agent
    properties:
      external_port: 9000
      tls:
        ca_cert: "((binding_cache_tls.ca))"
        cert: "((binding_cache_tls.certificate))"
        key: "((binding_cache_tls.private_key))"
        cn: "binding-cache"
      api:
        tls:
          ca_cert: "((cc_tls.ca))"
          cert: "((binding_cache_api_tls.certificate))"
          key: "((binding_cache_api_tls.private_key))"
          cn: "cloud-controller-ng.service.cf.internal"
      metrics:
        ca_cert: "((loggr_syslog_binding_cache_metrics_tls.ca))"
        cert: "((loggr_syslog_binding_cache_metrics_tls.certificate))"
        key: "((loggr_syslog_binding_cache_metrics_tls.private_key))"
        server_name: loggr_syslog_binding_cache_metrics

- type: replace
  path: /variables/name=binding_cache_api_tls?
  value:
    name: binding_cache_api_tls
    type: certificate
    options:
      ca: service_cf_internal_ca
      common_name: binding-cache
      extended_key_usage:
      - client_auth

- type: replace
  path: /variables/name=binding_cache_tls?
  value:
    name: binding_cache_tls
    type: certificate
    options:
      ca: loggregator_ca
      common_name: binding-cache
      extended_key_usage:
      - server_auth

- type: replace
  path: /variables/name=syslog_agent_metrics_tls?
  value:
    name: syslog_agent_metrics_tls
    type: certificate
    options:
      ca: metric_scraper_ca
      common_name: syslog_agent_metrics
      extended_key_usage:
      - server_auth

- type: replace
  path: /variables/name=loggr_syslog_binding_cache_metrics_tls?
  value:
    name: loggr_syslog_binding_cache_metrics_tls
    type: certificate
    options:
      ca: metric_scraper_ca
      common_name: loggr_syslog_binding_cache_metrics
      extended_key_usage:
      - server_auth

#################
# Remove cf-syslog-drain-release #
#################

- type: remove
  path: /releases/name=cf-syslog-drain

- type: remove
  path: /instance_groups/name=adapter

- type: remove
  path: /instance_groups/name=scheduler/jobs/name=scheduler

- type: remove
  path: /variables/name=adapter_tls

- type: remove
  path: /variables/name=adapter_rlp_tls

- type: remove
  path: /variables/name=scheduler_client_tls

- type: remove
  path: /variables/name=scheduler_api_tls
<commit_msg>fix missing question mark<commit_after>################
# Syslog Agent #
################
- type: replace
  path: /addons/name=loggr-syslog-agent?
  value:
    name: loggr-syslog-agent
    include:
      stemcell:
      - os: ubuntu-trusty
      - os: ubuntu-xenial
    exclude:
      jobs:
      - name: smoke_tests
        release: cf-smoke-tests
    jobs:
    - name: loggr-syslog-agent
      release: loggregator-agent
      properties:
        port: 3460
        tls:
          ca_cert: "((loggregator_tls_agent.ca))"
          cert: "((loggregator_tls_agent.certificate))"
          key: "((loggregator_tls_agent.private_key))"
        cache:
          tls:
            ca_cert: "((syslog_agent_api_tls.ca))"
            cert: "((syslog_agent_api_tls.certificate))"
            key: "((syslog_agent_api_tls.private_key))"
            cn: "binding-cache"
        metrics:
          ca_cert: "((syslog_agent_metrics_tls.ca))"
          cert: "((syslog_agent_metrics_tls.certificate))"
          key: "((syslog_agent_metrics_tls.private_key))"
          server_name: syslog_agent_metrics

- type: replace
  path: /variables/name=syslog_agent_api_tls?
  value:
    name: syslog_agent_api_tls
    type: certificate
    options:
      ca: loggregator_ca
      common_name: syslog-agent
      extended_key_usage:
      - client_auth

#################
# Binding Cache #
#################
- type: replace
  path: /instance_groups/name=scheduler/jobs/name=loggr-syslog-binding-cache?
  value:
    name: loggr-syslog-binding-cache
    release: loggregator-agent
    properties:
      external_port: 9000
      tls:
        ca_cert: "((binding_cache_tls.ca))"
        cert: "((binding_cache_tls.certificate))"
        key: "((binding_cache_tls.private_key))"
        cn: "binding-cache"
      api:
        tls:
          ca_cert: "((cc_tls.ca))"
          cert: "((binding_cache_api_tls.certificate))"
          key: "((binding_cache_api_tls.private_key))"
          cn: "cloud-controller-ng.service.cf.internal"
      metrics:
        ca_cert: "((loggr_syslog_binding_cache_metrics_tls.ca))"
        cert: "((loggr_syslog_binding_cache_metrics_tls.certificate))"
        key: "((loggr_syslog_binding_cache_metrics_tls.private_key))"
        server_name: loggr_syslog_binding_cache_metrics

- type: replace
  path: /variables/name=binding_cache_api_tls?
  value:
    name: binding_cache_api_tls
    type: certificate
    options:
      ca: service_cf_internal_ca
      common_name: binding-cache
      extended_key_usage:
      - client_auth

- type: replace
  path: /variables/name=binding_cache_tls?
  value:
    name: binding_cache_tls
    type: certificate
    options:
      ca: loggregator_ca
      common_name: binding-cache
      extended_key_usage:
      - server_auth

- type: replace
  path: /variables/name=syslog_agent_metrics_tls?
  value:
    name: syslog_agent_metrics_tls
    type: certificate
    options:
      ca: metric_scraper_ca
      common_name: syslog_agent_metrics
      extended_key_usage:
      - server_auth

- type: replace
  path: /variables/name=loggr_syslog_binding_cache_metrics_tls?
  value:
    name: loggr_syslog_binding_cache_metrics_tls
    type: certificate
    options:
      ca: metric_scraper_ca
      common_name: loggr_syslog_binding_cache_metrics
      extended_key_usage:
      - server_auth

#################
# Remove cf-syslog-drain-release #
#################

- type: remove
  path: /releases/name=cf-syslog-drain

- type: remove
  path: /instance_groups/name=adapter

- type: remove
  path: /instance_groups/name=scheduler/jobs/name=scheduler

- type: remove
  path: /variables/name=adapter_tls

- type: remove
  path: /variables/name=adapter_rlp_tls

- type: remove
  path: /variables/name=scheduler_client_tls

- type: remove
  path: /variables/name=scheduler_api_tls

{'fraction_non_alphanumeric': 0.1220983606557377, 'fraction_numerical': 0.002098360655737705, 'mean_word_length': 2.9553941908713695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2548768', 'n_tokens_mistral': 2583, 'n_tokens_neox': 2534, 'n_words': 419}