Skip to content

illegal_object_name_chars render error #24

Description

@servomac

Trying to execute the nagios state in the formula throws a pillar render error using salt 2015.8.0 (Beryllium). It seems that the initial backtick value at ilegal_object_name_chars/ilegal_macro_output_chars keys it's not supported:

sheriff.habitissimo.com:
    Data failed to compile:
----------
    Pillar failed to render with the following messages:
----------
    Rendering SLS 'nagios-server.sheriff' failed, render error:
found character '`' that cannot start any token; line 108

---
[...]
    low_host_flap_threshold: 5.0
    high_host_flap_threshold: 20.0
    date_format: iso8601
    enable_embedded_perl: 1
    use_embedded_perl_implicitly: 1
    illegal_object_name_chars: `~!$%^&*|'"<>?,():     <======================
    illegal_macro_output_chars: `~$&|'"<>
    use_regexp_matching: 0
    use_true_regexp_matching: 0
    admin_email: root@localhost
    admin_pager: pageroot@localhost
[...]

---

And also, if I remove the backticks I have problems with the colon (:)

# salt 'sheriff*' state.sls nagios test=True
sheriff.example.com:
    Data failed to compile:
----------
    Pillar failed to render with the following messages:
----------
    Rendering SLS 'nagios-server.sheriff' failed, render error:
mapping values are not allowed here; line 108

---
[...]
    low_host_flap_threshold: 5.0
    high_host_flap_threshold: 20.0
    date_format: iso8601
    enable_embedded_perl: 1
    use_embedded_perl_implicitly: 1
    illegal_object_name_chars: ~!$%^&*|'"<>?,():     <======================
    illegal_macro_output_chars: ~$&|'"<>
    use_regexp_matching: 0
    use_true_regexp_matching: 0
    admin_email: root@localhost
    admin_pager: pageroot@localhost
[...]

---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions