Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLS Rendering issues with Salt 3007.1 #101

Open
chdeliens opened this issue Oct 31, 2024 · 0 comments
Open

SLS Rendering issues with Salt 3007.1 #101

chdeliens opened this issue Oct 31, 2024 · 0 comments

Comments

@chdeliens
Copy link

chdeliens commented Oct 31, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant