소스 검색

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 9 년 전
부모
커밋
c74bc21140
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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