{% import 'globals.jinja' as globals %} {{ globals.config.git.identity_file }}: file.managed: - contents_pillar: env:{{ globals.deploy_env }}:git:ssh_key - mode: 400 - require: - sls: root_user