Advertisement
Guest User

Untitled

a guest
Apr 20th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. {% set host = grains['host'] %}
  2. {% set host2 = salt['grains.get']('host') %}
  3.  
  4.  
  5. {% if salt['pillar.get']('hostkeys:serverone:rsa') == True %}
  6.  
  7. /tmp/ssh_host_rsa_key:
  8. file.managed:
  9. - mode: 640
  10. - contents_pillar: hostkeys:{{ host }}:rsa_key
  11.  
  12. /tmp/ssh_host_rsa_key.pub:
  13. file.managed:
  14. - contents_pillar: hostkeys:{{ host }}:rsa_pub_key
  15.  
  16. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement