include:
  - .service

ensure_absence_of_default_toml_configuration:
{# We will use YAML, instead. #}
  file.absent:
    - name: /etc/vector/vector.toml

manage_vector_configuration_file:
  file.managed:
    - name: /etc/vector/vector.yaml
    - contents: |
        {{ salt.pillar.get('vector:configuration')|yaml(False)|indent(4) }}
    - onchanges_in:
      - service: vector_service_running

include:
  - .service

ensure_absence_of_default_toml_configuration:
  file.absent:
    - name: /etc/vector/vector.toml

manage_vector_configuration_file:
  file.managed:
    - name: /etc/vector/vector.yaml
    - contents: |
        {{ salt.pillar.get('vector:configuration')|yaml(False)|indent(4) }}
    - onchanges_in:
      - service: vector_service_running

Remove Jinja comment that may be interfering w YAML processing
Remove Jinja comment that may be interfering w YAML processing

mitodl/salt-ops,mitodl/salt-ops