file.managed: | file.managed: | ||||
- name: /etc/ssl/private/{{ cert.common_name }}.key | - name: /etc/ssl/private/{{ cert.common_name }}.key | ||||
- mode: 600 | - mode: 600 | ||||
- replace: False | |||||
- require: | - require: | ||||
- x509: /etc/ssl/private/{{ cert.common_name }}.key | - x509: /etc/ssl/private/{{ cert.common_name }}.key | ||||
- watch_in: | - watch_in: | ||||
- service: salt_minion_service | - service: salt_minion_service | ||||
salt_minion_grains_publish: | |||||
module.run: | |||||
- name: mine.send | |||||
- name: grains.items | |||||
- require: | |||||
- cmd: salt_minion_grains_file | |||||
{%- endif %} | {%- endif %} |