From eaf75de89e6cfa2f03a5190ffabf2390749855c6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jan 2024 20:21:12 +0100 Subject: [PATCH] maj role kea --- goss/s-kea1.yaml | 90 +++++++ goss/s-kea2.yaml | 90 +++++++ .../templates/.kea-dhcp4-j1.conf.swp | Bin 16384 -> 0 bytes .../templates/kea-ctrl-agent-j1.conf | 66 ----- roles/kea-master/templates/kea-dhcp4-j1.conf | 226 ------------------ .../templates/.kea-dhcp4-j1.conf.swp | Bin 16384 -> 0 bytes .../templates/kea-ctrl-agent-j1.conf | 66 ----- roles/kea-slave/templates/kea-dhcp4-j1.conf | 226 ------------------ 8 files changed, 180 insertions(+), 584 deletions(-) create mode 100644 goss/s-kea1.yaml create mode 100644 goss/s-kea2.yaml delete mode 100644 roles/kea-master/templates/.kea-dhcp4-j1.conf.swp delete mode 100644 roles/kea-master/templates/kea-ctrl-agent-j1.conf delete mode 100644 roles/kea-master/templates/kea-dhcp4-j1.conf delete mode 100644 roles/kea-slave/templates/.kea-dhcp4-j1.conf.swp delete mode 100644 roles/kea-slave/templates/kea-ctrl-agent-j1.conf delete mode 100644 roles/kea-slave/templates/kea-dhcp4-j1.conf diff --git a/goss/s-kea1.yaml b/goss/s-kea1.yaml new file mode 100644 index 0000000..9a0a59f --- /dev/null +++ b/goss/s-kea1.yaml @@ -0,0 +1,90 @@ +file: + /etc/kea/kea-ctrl-agent.conf: + exists: true + mode: "0644" + size: 2470 + owner: _kea + group: root + filetype: file + contains: [] + /etc/kea/kea-dhcp4.conf: + exists: true + mode: "0644" + size: 11346 + owner: _kea + group: root + filetype: file + contains: [] + /tmp/kea4-ctrl-socket: + exists: true + mode: "0755" + size: 0 + owner: _kea + group: _kea + filetype: socket + contains: [] + /usr/local/lib/kea: + exists: true + mode: "0755" + size: 4096 + owner: root + group: root + filetype: directory + contains: [] +package: + isc-kea-common: + installed: true + versions: + - 2.4.1-isc20231123184533 + isc-kea-ctrl-agent: + installed: true + versions: + - 2.4.1-isc20231123184533 + isc-kea-dhcp4: + installed: true + versions: + - 2.4.1-isc20231123184533 + isc-kea-hooks: + installed: true + versions: + - 2.4.1-isc20231123184533 + libmariadb3: + installed: true + versions: + - 1:10.11.4-1~deb12u1 + mariadb-common: + installed: true + versions: + - 1:10.11.4-1~deb12u1 + mysql-common: + installed: true + versions: + - 5.8+1.1.0 +port: + tcp:8000: + listening: true + ip: + - 172.16.64.20 +service: + isc-kea-ctrl-agent.service: + enabled: true + running: true + isc-kea-dhcp4-server.service: + enabled: true + running: true +interface: + enp0s3: + exists: true + addrs: + - 192.168.99.20/24 + mtu: 1500 + enp0s8: + exists: true + addrs: + - 172.16.0.20/24 + mtu: 1500 + enp0s9: + exists: true + addrs: + - 172.16.64.20/24 + mtu: 1500 diff --git a/goss/s-kea2.yaml b/goss/s-kea2.yaml new file mode 100644 index 0000000..9fe75be --- /dev/null +++ b/goss/s-kea2.yaml @@ -0,0 +1,90 @@ +file: + /etc/kea/kea-ctrl-agent.conf: + exists: true + mode: "0644" + size: 2470 + owner: _kea + group: root + filetype: file + contains: [] + /etc/kea/kea-dhcp4.conf: + exists: true + mode: "0644" + size: 11346 + owner: _kea + group: root + filetype: file + contains: [] + /tmp/kea4-ctrl-socket: + exists: true + mode: "0755" + size: 0 + owner: _kea + group: _kea + filetype: socket + contains: [] + /usr/local/lib/kea: + exists: true + mode: "0755" + size: 4096 + owner: root + group: root + filetype: directory + contains: [] +package: + isc-kea-common: + installed: true + versions: + - 2.4.1-isc20231123184533 + isc-kea-ctrl-agent: + installed: true + versions: + - 2.4.1-isc20231123184533 + isc-kea-dhcp4: + installed: true + versions: + - 2.4.1-isc20231123184533 + isc-kea-hooks: + installed: true + versions: + - 2.4.1-isc20231123184533 + libmariadb3: + installed: true + versions: + - 1:10.11.4-1~deb12u1 + mariadb-common: + installed: true + versions: + - 1:10.11.4-1~deb12u1 + mysql-common: + installed: true + versions: + - 5.8+1.1.0 +port: + tcp:8000: + listening: true + ip: + - 172.16.64.21 +service: + isc-kea-ctrl-agent.service: + enabled: true + running: true + isc-kea-dhcp4-server.service: + enabled: true + running: true +interface: + enp0s3: + exists: true + addrs: + - 192.168.99.21/24 + mtu: 1500 + enp0s8: + exists: true + addrs: + - 172.16.0.21/24 + mtu: 1500 + enp0s9: + exists: true + addrs: + - 172.16.64.21/24 + mtu: 1500 diff --git a/roles/kea-master/templates/.kea-dhcp4-j1.conf.swp b/roles/kea-master/templates/.kea-dhcp4-j1.conf.swp deleted file mode 100644 index a8771645b1de8378ee934fd5cda2fe1be9bde00a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeI3U5F%C6~`;auOym?c@*T@BH5Mhp6=esW~U*M$!yFH?ryS~-9(9Dsjj*`U76~t zPF3~vw(CX=L?HX}_O zPYP1K{L|A_x9&ane?IOxr#pkr-J2)WTD#-$dY9wGfBCBZjdQK@$VVL~iQ`NzU+$H* zf@qkymmB6hC=;$^aU7;AZj=UtP_JyKgI=e%x{}19PFHrcyOQbgBy=RFJAWwp2RNUN8(iyHlPsvbmX%5b%=_J=Rf{s!^~#QtmFSxPu@J zvbh>+H-jNHj1%<{?Y7m)IJ0XN+lg4SkcMmWo0795x1Gjqvj`84S!Co!K0iWHLFC2b zAllwT?=XqSMrK%;Xq}{`pj=4w1JfW8CCp+aT;xPL$S1DB)rfx zZ;DrA?4D~S+6&!a+{%KnhSbi*@0!Vk^iJjRQ5^ck^V%WOEl&e+5PSYautnlYir;srl(xr zXA<_a?FJDx$L*<`xKXBMM{Z`7#ujD)9=oIUWU*1P$6}|jho_rGd&G%(D)tKz+X*fZ z&c$;1D-{WHH)l>EubvS=?*9`+~GZ^aJO;!)}@~4fl5DJA@ywHp^qI7%qVZ;`55W(~f zDfTGRCz%)<)a07eX;a~)+>A8#jDGQ&IfSB8$j1|QbvQ4rBmWP25O!Boc~4n9ccf!dBqz4-46RBB7u$*5hFi>P8t7#DK6S zwYjySjvm{%Q~9yZqm<&s?ec7y1vrX)$~|?K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