Skip to content
GitLab
  • Explore
  • Sign in
  • InfrastructureInfrastructure
  • Salt PillarsSalt Pillars
  • Issues
  • #4

Error in minions/sql01.sls: found character that cannot start any token

Attempting to get pillar data with the current configuration on sql boxes gives the following error:

  File "/usr/lib/python3/dist-packages/salt/renderers/yaml.py", line 72, in render
    raise SaltRenderError(err_type, line_num, exc.problem_mark.buffer)
salt.exceptions.SaltRenderError: found character that cannot start any token
2021-06-18 11:20:32,092 [salt.pillar      :1214][CRITICAL][275065] Pillar render error: Rendering SLS 'minions.sql01' failed. Please see master log for details.

This error is triggered by the following configuration:

  antrim:
    password: {{ sql_passwords.antrim }}
    host: %
    is_admin: False
    databases:

Since YAML 1.1, a percent sign (%) cannot start any unquoted string as %YAML can be used to denote the version of YAML in a given document and %TAG is used as a shortcut for URI prefixes.

Assignee
Assign to
Time tracking