handle salstack sls files and yaml files