Skip to content

YAML.org recommends .yaml extension for pillar data #51910

@noelmcloughlin

Description

@noelmcloughlin

Description of Issue/Question

By convention YAML markup files should use .yaml extension but salt refuses to read YAML file saved with this extension. This is non-intuitive, a barrier to adopting salt, and does not follow recommendation from https://yaml.org/faq.html

Is there an official extension for YAML files?
Please use ".yaml" when possible.

Please allow .yaml extension for pillar data.

Setup

salt error for pillar data in saved as /srv/pillar/template.yaml

    Data failed to compile:
----------
    Pillar failed to render with the following messages:
----------
    Specified SLS 'template' in environment 'base' is not available on the salt master

Salt enforces .sls extension for files in YAML format.

  1. L82
  2. L120
  3. L148

Here's the code in salt/pillar/__init__.py, which calls salt/fileclient.py.

Steps to Reproduce Issue

Versions Report

All versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-discussionThe issue or pull request needs more discussion before it can be closed or mergedstale

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions