Skip to content

Commit

Permalink
fix: (IAC-578) Update SSL Cert/Key Naming Scheme (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarpat authored Jul 21, 2022
1 parent a3e93b1 commit e4621eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/CONFIG-VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ nfs_ip = "" # Assigned values for static IP addresses

**NOTES**:

1. If you set `server_ssl` to on, and you do not define either `server_ssl_cert_file` or `server_ssl_cert_file` the system's default SSL certificate and key will be used instead. By default, on Ubuntu systems we create a copy of those files and name them `ssl-cert-sas.pem` and `ssl-cert-sas.key`
1. If you set `server_ssl` to on, and you do not define either `server_ssl_cert_file` or `server_ssl_cert_file` the system's default SSL certificate and key will be used instead. By default, on Ubuntu systems we create a copy of those files and name them `ssl-cert-sas-${PG_HOST}.pem` and `ssl-cert-sas-${PG_HOST}.key`
* The Ansible tasks will take care of copying the certificate and key from the Postgres VM into your local workspace directory
2. If you are planning on using the [viya4-deployment repository](https://github.com/sassoftware/viya4-deployment) to perform a Viya deployment where you have [full-stack TLS](https://github.com/sassoftware/viya4-deployment/blob/main/docs/CONFIG-VARS.md#tls), ensure in the viya4-deployment ansible-vars.yaml the `V4_CFG_TLS_TRUSTED_CA_CERTS` variable points to a directory that contains the `server_ssl_cert_file`.

Expand Down
4 changes: 2 additions & 2 deletions roles/systems/postgres/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
- name: Copy Ubuntu default SSL Cert
ansible.builtin.copy:
src: /etc/ssl/certs/ssl-cert-snakeoil.pem
dest: /etc/ssl/certs/ssl-cert-sas.pem
dest: "/etc/ssl/certs/ssl-cert-sas-{{ ansible_hostname }}.pem"
owner: root
group: root
mode: "0644"
Expand All @@ -110,7 +110,7 @@
- name: Copy Ubuntu default SSL Key
ansible.builtin.copy:
src: /etc/ssl/private/ssl-cert-snakeoil.key
dest: /etc/ssl/private/ssl-cert-sas.key
dest: "/etc/ssl/private/ssl-cert-sas-{{ ansible_hostname }}.key"
owner: root
group: ssl-cert
mode: "0640"
Expand Down

0 comments on commit e4621eb

Please sign in to comment.