Explorar el Código

Fix server SSL configuration for non-default file names (#53)

SSL certificate files were copied with their original names, but the
configuration files always used the "default" names of cert.pem and
key.pem. Specify the destination basenames explicitly to avoid
mismatches.
Daniel Miranda hace 9 años
padre
commit
c74bc21140
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      tasks/ssl.yml

+ 4 - 4
tasks/ssl.yml

@@ -15,12 +15,12 @@
 
   - name: Deploy the Sensu client SSL cert/key
     copy:
-      src: "{{ item }}"
+      src: "{{ item.src }}"
       owner: "{{ sensu_user_name }}"
       remote_src: "{{ sensu_ssl_deploy_remote_src }}"
       group: "{{ sensu_group_name }}"
-      dest: "{{ sensu_config_path }}/ssl"
+      dest: "{{ sensu_config_path }}/ssl/{{ item.dest }}"
     with_items:
-      - "{{ sensu_ssl_client_cert }}"
-      - "{{ sensu_ssl_client_key }}"
+      - {src: "{{ sensu_ssl_client_cert }}", dest: cert.pem}
+      - {src: "{{ sensu_ssl_client_key }}", dest: key.pem}
     notify: restart sensu-client service