Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set host = grains['host'] %}
- {% set host2 = salt['grains.get']('host') %}
- {% if salt['pillar.get']('hostkeys:serverone:rsa') == True %}
- /tmp/ssh_host_rsa_key:
- file.managed:
- - mode: 640
- - contents_pillar: hostkeys:{{ host }}:rsa_key
- /tmp/ssh_host_rsa_key.pub:
- file.managed:
- - contents_pillar: hostkeys:{{ host }}:rsa_pub_key
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement