What It Does

Checks in all the v2 formula folders if the file formula_folder/map.jinja exists.

Why Is This Bad

Normally our formulas have an map.jinja file as an entry point when using the formula. When that is not the case the user/developer of that formula should be informed in some way to make it less confusing why the map.jinja is not used.

How To Fix

If the formula does not use or need an map.jinja file a map.jinja file should be created that states with the formula does not need a map.jinja.

Example map.jinja from formula.helper_scripts
{# The scripts are directly used with cmd.script and don't require state files. #}

Known Problems



» tree states/formula/helper_scripts
├── fix_user
├── init.sls
├── pillar.example

0 directories, 4 files
warning: formula `formula.helper_scripts` does not have a map.jinja file at the expected path
  quickfix: create an empty file under "/home/athaller/code/work/salt/saltstack/states/formula/helper_scripts/map.jinja" and state why this formula does not need a map.jinja file

results matching ""

    No results matching ""