From ba26cd12bd8248d71f2fc8d7267d20afe501ca42 Mon Sep 17 00:00:00 2001 From: vandabarata Date: Mon, 28 Nov 2022 15:44:53 +0000 Subject: [PATCH] QE: Copy build host files to new monitoring host salt folder --- salt/monitoring_server/certs/ca.cert.pem | 35 ++++++++++++++++++++++++ salt/monitoring_server/init.sls | 14 ++++++++++ 2 files changed, 49 insertions(+) create mode 100644 salt/monitoring_server/certs/ca.cert.pem create mode 100644 salt/monitoring_server/init.sls diff --git a/salt/monitoring_server/certs/ca.cert.pem b/salt/monitoring_server/certs/ca.cert.pem new file mode 100644 index 000000000..526d87dc5 --- /dev/null +++ b/salt/monitoring_server/certs/ca.cert.pem @@ -0,0 +1,35 @@ +-----BEGIN CERTIFICATE----- +MIIGDDCCA/SgAwIBAgIJAKfUYNnZ1+8TMA0GCSqGSIb3DQEBCwUAMIGSMQswCQYD +VQQGEwJERTEPMA0GA1UECAwGQmF5ZXJuMRIwEAYDVQQHDAlOdXJlbWJlcmcxDTAL +BgNVBAoMBFNVU0UxFTATBgNVBAsMDFNVU0UgTWFuYWdlcjETMBEGA1UEAwwKTWFu +YWdlciBDQTEjMCEGCSqGSIb3DQEJARYUZ2FsYXh5LWRldmVsQHN1c2UuZGUwHhcN +MTYwNTA5MDg1NzAwWhcNMzYwNTA0MDg1NzAwWjCBkjELMAkGA1UEBhMCREUxDzAN +BgNVBAgMBkJheWVybjESMBAGA1UEBwwJTnVyZW1iZXJnMQ0wCwYDVQQKDARTVVNF +MRUwEwYDVQQLDAxTVVNFIE1hbmFnZXIxEzARBgNVBAMMCk1hbmFnZXIgQ0ExIzAh +BgkqhkiG9w0BCQEWFGdhbGF4eS1kZXZlbEBzdXNlLmRlMIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEAwDv9eWqMWHav4yozUfZS52elPBJg9k3X/NNv/O4N +sOoISEOLVryPUEYF7JNQsE+GeXRMWCpKft3wf43zrzm2lBMgpNQSQI0OVriKmp6I +qGoBLTwI2A6gCN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5rIGmCQlrj5yQfkRKWAFhU02QEczll2UdJW8 +0VJKA/vCsXz297ZA3utBEK98jquFPry8KGa+BLrOuj8pQTuEuhT5cm7iJxKTxSoH +dcTms/UIKjLle7ND7u3Scn/sfUz/suS8lzuvfjKKYu/ojxpFDtPER7N0YUX56PZW +/XVwk1ljiKvwPn71nhbwr5xnIVzYA9glmMSimMQqH3M+cgQM/KfCfBLEesjqM8Xg +GZSFizAvtHP77Lmz70wzRMPLz+blf7RtoOm9YiVDWFoLQ0SyQQ9c/83dzuEdqj+7 +7v7Horw5JMn1RvGqNOCIR//zk3AkQgTi/AbuYE9LflN+7iuqO6k3beycRcwqca6w +IOipUNqWJ/CanvPJl4OITg== +-----END CERTIFICATE----- diff --git a/salt/monitoring_server/init.sls b/salt/monitoring_server/init.sls new file mode 100644 index 000000000..eee3891e1 --- /dev/null +++ b/salt/monitoring_server/init.sls @@ -0,0 +1,14 @@ +include: + - scc.monitoring_server + +certificate_authority_certificate: + file.managed: + - name: /etc/pki/trust/anchors/ca.cert.pem + - source: salt://monitoring_server/certs/ca.cert.pem + - makedirs: True + +{# Do not run update-ca-certificates on SLE 15 because there is #} +{# already a systemd unit that watches for changes and runs it: #} +{# /usr/lib/systemd/system/ca-certificates.path #} + +{% endif %}