salt master stuff and CA move

This commit is contained in:
do
2022-10-24 13:45:40 +02:00
parent 21c8a224ab
commit 5a9b09a0bc
4 changed files with 21 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
{%- set salt_v = "3002.6+dfsg1-4+deb11u1" %}
pkgs-salt-master:
pkg.installed:
- hold: True
- pkgs:
- salt-master: {{ salt_v }}
- salt-api: {{ salt_v }}
pkgs-salt-additional:
pkg.installed
- pkgs:
- python3-cherrypy3
- python3-pygit2

View File

@@ -7,11 +7,11 @@
/etc/pki/intca.crt:
x509.pem_managed:
- text: {{ salt['mine.get']('tumor.chaos', 'x509.get_pem_entries')['tumor.chaos']['/etc/pki/ca.crt']|replace('\n', '') }}
- 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']('tumor.chaos', 'x509.get_pem_entries')['tumor.chaos']['/etc/pki/ca.crt']|replace('\n', '') }}
- text: {{ salt['mine.get']('salt.chaos', 'x509.get_pem_entries')['salt.chaos']['/etc/pki/ca.crt']|replace('\n', '') }}
/usr/sbin/update-ca-certificates:

View File

@@ -11,7 +11,7 @@
/etc/pki/public.crt:
x509.certificate_managed:
- ca_server: tumor.chaos
- ca_server: salt.chaos
- signing_policy: host
- public_key: /etc/pki/private.key
- CN: {{ grains['fqdn'] }}
@@ -25,7 +25,7 @@
/etc/pki/{{ cn }}.crt:
x509.certificate_managed:
- ca_server: tumor.chaos
- ca_server: salt.chaos
- signing_policy: host
- public_key: /etc/pki/private.key
- days_remaining: 5

View File

@@ -7,8 +7,6 @@ base:
- base
- hardware
- os
'tumor*':
- base.pki.ca
'adm01.wks':
- base.rsyslog.server
- base.packages.haproxy
@@ -20,10 +18,12 @@ base:
'G@osarch:arm64 or G@osarch:armhf or G@osarch:armel':
- match: compound
- base.packages.arch.arm
'auto*':
'auto02*':
- k8s.podman
- base.packages.haproxy
- systemd.units
- base.packages.salt.master
- base.pki.ca
'pine*':
- k8s
- roles.nut.client