cert work

This commit is contained in:
Jason Ertel
2023-08-23 17:50:08 -04:00
parent 8a751e097d
commit b8dc9ea560

View File

@@ -36,7 +36,10 @@ include:
{% set ca_server = global_ca_server[0] %}
{% endif %}
cacertdir:
file.directory:
- name: /etc/pki/tls/certs
- makedirs: True
# Trust the CA
trusttheca:
@@ -44,6 +47,13 @@ trusttheca:
- name: /etc/pki/tls/certs/intca.crt
- text: {{ trusttheca_text }}
{% if GLOBALS.os_family == 'Debian' %}
symlinkca:
file.symlink:
- source: /etc/pki/tls/certs/intca.crt
- name: /etc/ssl/certs/intca.crt
{% end %}
# Install packages needed for the sensor
m2cryptopkgs:
pkg.installed: