Skip to content

SLS Rendering issues with Salt 3007.1 #101

@chdeliens

Description

@chdeliens

Hello :)

Months ago, I successfully installed Datadog via Salt and the datadog-formula running Salt 3006.3.

Today, I wanted to update a setting in one of our pillars and re-apply the datadog state, without success.

I now run Salt 3007.1, and I'm on the 3.7 tag of the datadog-formula.

Errors I encounter while running salt ... state.sls datadog:

    Data failed to compile:
----------
    Rendering SLS 'base:datadog.install' failed: sequence entries are not allowed here; line 6

---



datadog-repo:
  pkgrepo.managed:
    - humanname: "Datadog, Inc."              - repo_gpgcheck: '1'    - name: datadog    <======================
    - baseurl: https://yum.datadoghq.com/stable/7/x86_64
    - gpgcheck: '1'
    - gpgkey: https://keys.datadoghq.com/DATADOG_RPM_KEY_CURRENT.public https://keys.datadoghq.com/DATADOG_RPM_KEY_B01082D3.public https://keys.datadoghq.com/DATADOG_RPM_KEY_FD4BF915.public https://keys.datadoghq.com/DATADOG_RPM_KEY_E09422B3.public
    - gpgautoimport: True
    - sslverify: '1'
[...]
---
----------
    Rendering SLS 'base:datadog.config' failed: sequence entries are not allowed here; line 24

---
[...]
# Remove the old config file (if it exists)
datadog_mysql_old_yaml_removed:
  file.absent:
    - name: /etc/datadog-agent/conf.d/mysql.yaml
datadog_mysql_yaml_installed:
  file.managed:    - name: /etc/datadog-agent/conf.d/mysql.d/conf.yaml    - source: salt://datadog/files/conf.yaml.jinja    <======================
    - user: dd-agent
    - group: root
    - mode: 600
    - template: jinja
    - context:
[...]
---
----------
    Rendering SLS 'base:datadog.service' failed: mapping values are not allowed here; line 7

---
[...]
  service.running:
    - name: datadog-agent
    - enable: True
    - watch:
      - pkg: datadog-agent
      - file: /etc/datadog-agent/datadog.yaml      - file: /etc/datadog-agent/conf.d/*    <======================



It looks like missing misinterpreted carriage return. I didn't take time to dig in more yet at this stage.

Any clues on what may be causing the issue?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions