From: Frank Brehm Date: Thu, 21 Sep 2017 22:21:02 +0000 (+0200) Subject: saving uncommitted changes in /etc prior to apt run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=f201320930b8553f6fa1afe892281e8d517551d3;p=config%2Fns2%2Fetc.git saving uncommitted changes in /etc prior to apt run --- diff --git a/.etckeeper b/.etckeeper index dcea793..068d19d 100755 --- a/.etckeeper +++ b/.etckeeper @@ -12,7 +12,6 @@ mkdir -p './console' mkdir -p './dbus-1/session.d' mkdir -p './dpkg/dpkg.cfg.d' mkdir -p './fail2ban/fail2ban.d' -mkdir -p './icinga2/pki' mkdir -p './initramfs-tools/conf.d' mkdir -p './initramfs-tools/hooks' mkdir -p './initramfs-tools/scripts/init-bottom' @@ -739,6 +738,7 @@ maybe chmod 0644 'icinga2-classicui/cgi.cfg' maybe chgrp 'www-data' 'icinga2-classicui/htpasswd.users' maybe chmod 0640 'icinga2-classicui/htpasswd.users' maybe chmod 0755 'icinga2/conf.d' +maybe chmod 0644 'icinga2/conf.d/api-users.conf' maybe chmod 0644 'icinga2/conf.d/app.conf' maybe chmod 0644 'icinga2/conf.d/apt.conf' maybe chmod 0644 'icinga2/conf.d/commands.conf' @@ -774,6 +774,18 @@ maybe chmod 0644 'icinga2/init.conf' maybe chown 'nagios' 'icinga2/pki' maybe chgrp 'nagios' 'icinga2/pki' maybe chmod 0700 'icinga2/pki' +maybe chown 'nagios' 'icinga2/pki/ca.crt' +maybe chgrp 'nagios' 'icinga2/pki/ca.crt' +maybe chmod 0644 'icinga2/pki/ca.crt' +maybe chown 'nagios' 'icinga2/pki/ns2.uhu-banane.de.crt' +maybe chgrp 'nagios' 'icinga2/pki/ns2.uhu-banane.de.crt' +maybe chmod 0644 'icinga2/pki/ns2.uhu-banane.de.crt' +maybe chown 'nagios' 'icinga2/pki/ns2.uhu-banane.de.csr' +maybe chgrp 'nagios' 'icinga2/pki/ns2.uhu-banane.de.csr' +maybe chmod 0644 'icinga2/pki/ns2.uhu-banane.de.csr' +maybe chown 'nagios' 'icinga2/pki/ns2.uhu-banane.de.key' +maybe chgrp 'nagios' 'icinga2/pki/ns2.uhu-banane.de.key' +maybe chmod 0600 'icinga2/pki/ns2.uhu-banane.de.key' maybe chmod 0755 'icinga2/repository.d' maybe chmod 0644 'icinga2/repository.d/README' maybe chmod 0755 'icinga2/scripts' diff --git a/icinga2/conf.d/api-users.conf b/icinga2/conf.d/api-users.conf new file mode 100644 index 0000000..e13c74a --- /dev/null +++ b/icinga2/conf.d/api-users.conf @@ -0,0 +1,9 @@ +/** + * The APIUser objects are used for authentication against the API. + */ +object ApiUser "root" { + password = "8f0fd5e6f1a374d9" + // client_cn = "" + + permissions = [ "*" ] +} diff --git a/icinga2/features-enabled/api.conf b/icinga2/features-enabled/api.conf new file mode 120000 index 0000000..8cdce62 --- /dev/null +++ b/icinga2/features-enabled/api.conf @@ -0,0 +1 @@ +../features-available/api.conf \ No newline at end of file diff --git a/icinga2/pki/ca.crt b/icinga2/pki/ca.crt new file mode 100644 index 0000000..ad85dcb --- /dev/null +++ b/icinga2/pki/ca.crt @@ -0,0 +1,28 @@ +-----BEGIN CERTIFICATE----- +MIIEyTCCArGgAwIBAgIUOhlcKLHR6sCx6bMjTVcUnw8KUbIwDQYJKoZIhvcNAQEL +BQAwFDESMBAGA1UEAwwJSWNpbmdhIENBMB4XDTE3MDkyMTIwNTE0NloXDTMyMDkx +NzIwNTE0NlowFDESMBAGA1UEAwwJSWNpbmdhIENBMIICIjANBgkqhkiG9w0BAQEF +AAOCAg8AMIICCgKCAgEA2d5iLRPzyX13Vq/rZLpgKlRmhw0ttgfb8uuLk5Y+2V/j +iysU7xr9kGvruV6x+hB1jEGdSYY51wsCeugdfhGFqg3HCk145Dc5CgwU2PLl3VUw +P99oAKv0wwaxiDfKEx8oVXfZDEBsSUsW7a2OvL/IgBMVFG0r3Wh2+c6AQj/jjett +qsQrNawCxG3UK8DZyXEl6Ne0UGA7ZOTNgobrA/6tiKmRPjvTK5lU8bYQU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nphpErn7YkyQI8Qq64gMQx0oqvaIzQMeoxghivAVM0t4g7SYoY8qYj +1Xt/fkADcATJ+A8WkMiHH2Tqm5xDyC/NNmmdw5alNW+aOeKG0917eDKLotCx5r9Q +2IbeorPDT0ayVE2UYFTjxpx7g0vTBa6UEw5wRtk= +-----END CERTIFICATE----- diff --git a/icinga2/pki/ns2.uhu-banane.de.crt b/icinga2/pki/ns2.uhu-banane.de.crt new file mode 100644 index 0000000..278d781 --- /dev/null +++ b/icinga2/pki/ns2.uhu-banane.de.crt @@ -0,0 +1,29 @@ +-----BEGIN CERTIFICATE----- +MIIE7TCCAtWgAwIBAgIVANZQWdQmmGPvDzTUz/6qJgrdlCaWMA0GCSqGSIb3DQEB +CwUAMBQxEjAQBgNVBAMMCUljaW5nYSBDQTAeFw0xNzA5MjEyMDUxNDZaFw0zMjA5 +MTcyMDUxNDZaMBwxGjAYBgNVBAMMEW5zMi51aHUtYmFuYW5lLmRlMIICIjANBgkq +hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAz5fk3BVyCP8VilwaGhxkbuagyf6hyzDi +1SNwF/k63Ee5l9xIs14jBDXw0ME53gh922+xw3WXIk1VF4eTQ2MQtDx/wIm4RzCO +YDme2SFfttFOgxJjaRQrso6nYoEViwsOyB2FOjD1UkHWKsq3w1SW6w94IiO+GBHp +9iVVG/nPD6h6l8T4Bh/m0AoxN43sA1S/d73rTIJIW/vvY24qq011U/7YztgOvpjz +zBHxMgSAEuKLkfdLIpev7ihPhXxqtqtoDEwko1t7s2DFlUym4ki+8v5cQFU3JyA0 +D6hfFyFO8vAWdZ2uBJGa1VGw+gPd/9NEd0KAqp93hRjpiHEZ8vV7OlO3ktacb8fx +LHr6FzMyiDOIYPuYbNm61Hu5zIrAB3RYU0pRYWNMDq3eMyGtLdlaYnMQmW0wRN1e +Z/NxjnYpT00E6QA7yoeisuSc5PieFRzICP9xMi20Gs78kyFfYDP4Qj/YqDM7N16h +nOEyPh5i0kh9+V1ZSUF3BRz1qiwtpTfRDdxEt4IZyv+Yp4uOl8N9B8/0wF1m/Vdt +PAsc00v1TXIhwQFt3uC2wGxy0qpgZ+CId1V7qeDXxFDEZHCr6zcKFcI3JR1LNfCw +NnZkXWCshXtWHJsuOLDILgWgsl5eIzhlXUB2f3Z1aBBiS90+zIirpSOFjJWELUoP +2JFG+/Ad9ekCAwEAAaMuMCwwDAYDVR0TAQH/BAIwADAcBgNVHREEFTATghFuczIu +dWh1LWJhbmFuZS5kZTANBgkqhkiG9w0BAQsFAAOCAgEABbl+W1jgyy8WJQyqwZhS +lyh499Y8grahp5lIP7kEkZal3acVJqAoG9koftB0pgL9eGtbmxKq7Swz/eIiIYmW +dNZZQwcx5b59n6HHiq/5+CVfWsLh+Nc2H+UXtY1uCmTLuuRYXQF5eEuuMKqO2Iyp +sBxuXn+OFGHqeCerNBGLtTXh/pKZMdelD5Iqch6BJWZg99MBEAM4FDi8vPvQYyVr +iibTq91Nstt/7Jb1M+UmHbKzFhdyyRNFLg1Gp688YSR1eU1fTTax0O5XJyxoNdIB +SLvczPAvntLa1bsZY6PjGxLrHbzAEfXjOYFYezu49bp+NL2MDpeIzqE79bPFgEov +9GCCqwmzYK+HyrN+NmZ+yy/xiAGJjEjoNPrmB2fl/W4OBn1AYHrzb2pCzsijwQCC +wATEFfYEG/TBr+M/Gd7lTSqEjDysGfK49IJEP+eIqnbY1hPjgYLAhS8FvwDhck1+ +LngT1lJuI1j9ThfaxXDH884QWIdVhzukmiJuWDm0qowCCntvIKj2RYTSURB4x5Nm +EExbG6CKQ0aYXqCWzBzbcyF6p4VGylAy5n/FUUItUDR8guDDGM8dx/hUqRfQh3SH +VnaoY5Ad4/Z9ibrWBI6lWFjaV6XkCpkfWZ4J+Iar1iZi3YnvDUVpOV09f4esHwQU +m8grGAGNHRRoygTME2xfY80= +-----END CERTIFICATE----- diff --git a/icinga2/pki/ns2.uhu-banane.de.csr b/icinga2/pki/ns2.uhu-banane.de.csr new file mode 100644 index 0000000..01559d0 --- /d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UMC4TGj1Fm2bwXdvze1i89WxfeuuI+3t1pFd/4+ +uMauhMrjNjeiPY2ZtiOTLgLkXW4F4Nocak74dokwqvaxwwro0LXah+Pkc+VXkHox +OZU9b/2lX7yWRZ10syNfh/H3dINajgURMhMPBNm75EFBFewCpYgW6DRQkXz1HJfX +ehF5iRHZ1lJtZwTxWtfL0wQeomnc0XEnLCzV4FFx4x/I0FPzto/lDzunJvETgIv4 +9jEAqSfsN4tsOa/QDubH4IvowjOCAv+6wj5QSi+aRN8c0jdfPm701ug9bBWxsH5/ +Y30Z5XgQsfjKadTyn+hxA2GGOqEa+tMGTuI/4KdevC72fkRcz3Pa4bhC5E/8n0vj +ZA9Qj7urCkaMHvGlwBpQhniqwGoZwubRXsPUvTXZzFqkI2czfBmk/zUMIlXPHFs8 +NB21ojiYobswBjhvT5O5TJe6ddCls3GUED+v3qFsNjLTRkP1+hMvoESdBWzWe9xM +QSj34jpvdRSs2cJsIeDjcW8lfY61Us/nHbbVkWqyQNKeupjhi+b+aQAUi3eR0dGU +c8zIJboCcniE+dqZmV29HsLj6nM= +-----END CERTIFICATE REQUEST----- diff --git a/icinga2/pki/ns2.uhu-banane.de.key b/icinga2/pki/ns2.uhu-banane.de.key new file mode 100644 index 0000000..b9d6556 --- /dev/null +++ b/icinga2/pki/ns2.uhu-banane.de.key @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJKQIBAAKCAgEAz5fk3BVyCP8VilwaGhxkbuagyf6hyzDi1SNwF/k63Ee5l9xI +s14jBDXw0ME53gh922+xw3WXIk1VF4eTQ2MQtDx/wIm4RzCOYDme2SFfttFOgxJj +aRQrso6nYoEViwsOyB2FOjD1UkHWKsq3w1SW6w94IiO+GBHp9iVVG/nPD6h6l8T4 +Bh/m0AoxN43sA1S/d73rTIJIW/vvY24qq011U/7YztgOvpjzzBHxMgSAEuKLkfdL +Ipev7ihPhXxqtqtoDEwko1t7s2DFlUym4ki+8v5cQFU3JyA0D6hfFyFO8v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