{% set has_fan = salt['pillar.get']( 'hardware:raspberrypi:fan:has_fan', default=False ) %} {%- if has_fan %} include: - .fan {%- endif %}