This repository has been archived on 2025-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
salt-master/base/pki/cert.sls
2022-10-24 13:45:40 +02:00

22 lines
545 B
YAML

# -*- coding: utf-8 -*-
# vim: ft=yaml
---
#/usr/local/share/ca-certificates:
# file.directory
/etc/pki/intca.crt:
x509.pem_managed:
- text: {{ salt['mine.get']('salt.chaos', 'x509.get_pem_entries')['salt.chaos']['/etc/pki/ca.crt']|replace('\n', '') }}
/etc/ssl/certs/intca.crt:
x509.pem_managed:
- text: {{ salt['mine.get']('salt.chaos', 'x509.get_pem_entries')['salt.chaos']['/etc/pki/ca.crt']|replace('\n', '') }}
/usr/sbin/update-ca-certificates:
cmd.run:
- onchanges:
- x509: /etc/ssl/certs/intca.crt