Skip to content

Instantly share code, notes, and snippets.

Created August 13, 2014 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f7ac2dad2454e8a018f1 to your computer and use it in GitHub Desktop.
Save anonymous/f7ac2dad2454e8a018f1 to your computer and use it in GitHub Desktop.
ens1a-cco-iad:
Data failed to compile:
----------
Rendering SLS "cdn-ops-iad:jenkins.slave_all_configure" failed: Jinja variable 'dict object' has no attribute 'jenkins_pub_key'; line 18
---
[...]
- fullname: Jenkins
- shell: /bin/bash
# Seed the authorized_keys with the public key from the Jenkins master
{%- for value in salt['mine.get']('jenkins_type:master', 'grains.items', expr_form='grain').values() %}
{{ value['jenkins_pub_key'] }}: <======================
ssh_auth:
- present
- user: jenkins
- enc: ssh-rsa
- comment: jenkins
[...]
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment