Bladeren bron

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 jaren geleden
bovenliggende
commit
c74bc21140
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  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