I would like to create a combined .ca file by using the SaltStack.
I have the following state.sls, see below and basically just want to make this tutorial working in salt:
https://www.cyberciti.biz/faq/how-to-enable-tlsssl-encryption-with-glusterfs-storage-cluster-on-linux/my_state.sls:
glusterfs_key:
x509.private_key_managed:
- name: /etc/ssl/glusterfs.key
glusterfs_cert:
x509.certificate_managed:
- name: /etc/ssl/glusterfs.pem
- signing_private_key: /etc/ssl/glusterfs.key
- require:
- x509: glusterfs_key
glusterfs_ca_combined: # Does not work at all, but thats the Idea
x509.certificate_managed:
- name: /etc/ssl/
glusterfs.ca - append_certs:
- /etc/ssl/glusterfs.pem
- require:
- x509: glusterfs_cert
The only part that fails and I'm not able to finish is to combine all /etc/ssl/glusterfs.pem files from all minions into one file and place this on all minions again under the path /etc/ssl/
glusterfs.ca. Any idea how this can be accomplished?
Thanks in advance