From 35e816c2eb883ce866d329a3cbd97fc3c2e3fc5c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Feb 2024 11:51:13 +0100 Subject: [PATCH] modif role kea --- roles/awx-user-cli/tasks/main.yml | 2 +- roles/kea/templates/kea-dhcp4.conf.j2 | 19 +++++++++++++++++-- s-kea1.yml | 6 +++--- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/roles/awx-user-cli/tasks/main.yml b/roles/awx-user-cli/tasks/main.yml index 9e5619a..c84110b 100644 --- a/roles/awx-user-cli/tasks/main.yml +++ b/roles/awx-user-cli/tasks/main.yml @@ -9,7 +9,7 @@ - name: Get awx key_pub get_url: - url: s-adm.gsb.adm/gsbstore/id_rsa_awx.pub + url: http://s-adm.gsb.adm/gsbstore/id_rsa_awx.pub dest: /tmp diff --git a/roles/kea/templates/kea-dhcp4.conf.j2 b/roles/kea/templates/kea-dhcp4.conf.j2 index e210f37..e2ca362 100644 --- a/roles/kea/templates/kea-dhcp4.conf.j2 +++ b/roles/kea/templates/kea-dhcp4.conf.j2 @@ -79,6 +79,10 @@ "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so" }, + { + "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_stat_cmds.so" + }, + { // The HA hook library should be loaded. "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so", @@ -179,8 +183,19 @@ // choice is 8.8.8.8, owned by Google. Using third party DNS // service raises some privacy concerns. "name": "domain-name-servers", - "data": "172.16.0.1" - } + "data": "172.16.0.1, 172.16.0.4" + }, + + { + "name": "domain-name", + "data": "gsb.lan" + }, + + { + "name": "domain-search", + "data": "gsb.lan" + }, + ], // Some devices should get a static address. Since the .100 - .199 range is dynamic, diff --git a/s-kea1.yml b/s-kea1.yml index f7b6705..4eeb789 100644 --- a/s-kea1.yml +++ b/s-kea1.yml @@ -17,8 +17,8 @@ - goss - ssh-cli - kea - - stork-agent - - zabbix-cli + - awx-user-cli + #- stork-agent + # - zabbix-cli - journald-snd - - snmp-agent - post