Project

General

Profile

Tâche #33818

Scénario #33768: Gestion d'option dans le DHCP sur module Seth

Faire un test squash

Added by Emmanuel GARETTE over 1 year ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/14/2022
Due date:
% Done:

100%

Remaining (hours):
0.0

Capture d’écran de 2022-03-02 11-42-10.png View (533 KB) Emmanuel GARETTE, 03/02/2022 11:44 AM

History

#1 Updated by Emmanuel GARETTE over 1 year ago

Dans le test DHCP-01-001 créer le fichier /etc/dhcp/dhcpd.d/pools/global/ntp avec le contenu :

option ntp-servers 10.1.3.5;

Vérifier dans DHCP-01-002a sur le poste de travail le contenu du fichier /run/systemd/timesyncd.conf.d/01-dhclient.conf :

NTP=10.1.3.5

#2 Updated by Emmanuel GARETTE over 1 year ago

  • Status changed from Nouveau to À valider
  • Assigned To set to Emmanuel GARETTE
  • % Done changed from 0 to 100

#3 Updated by Ludwig Seys over 1 year ago

  • Status changed from À valider to Résolu

#4 Updated by Joël Cuissinat over 1 year ago

  • Status changed from Résolu to Nouveau

Je ne vois pas de dossier /run/systemd/timesyncd.conf.d/ sur les postes client : https://dev-eole.ac-dijon.fr/squash/executions/13510

En regardant les sections générées, j'ai également un doute sur le fait que l'option ntp-servers ajoutée dans l'inclusion ne soit pas écrasée juste derrière :

[ ... ]
  option ntp-servers 10.1.4.1, 10.1.2.7;

    # plages d'ip
  pool {
     include "/etc/dhcp/dhcpd.d/pools/global/ntp";
     option domain-name "etb1.lan";
     option domain-name-servers 10.1.4.1, 10.1.4.2;
     option netbios-name-servers 10.1.4.5, 10.1.4.6;
     option ntp-servers 10.1.4.1;
     option wpad-url "http://wpad.etb1.lan/wpad.dat\n";
     range 10.1.2.50 10.1.2.51;
     allow members of "pool-10.1.2.50-10.1.2.51";
     default-lease-time 36000;
     max-lease-time     144000;

    }
[ ... ]

#5 Updated by Emmanuel GARETTE over 1 year ago

  • Status changed from Nouveau to En cours

#6 Updated by Emmanuel GARETTE over 1 year ago

Je ne comprends pas. Je viens de repartir de 0 et j'ai bien le répertoire !

#7 Updated by Emmanuel GARETTE over 1 year ago

  • Status changed from Nouveau to Résolu

Des modifications ont été apportés aux tests.

#8 Updated by Joël Cuissinat over 1 year ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

J'ai fini par obtenir le fichier en réinitialisant le bail DHCP avec dhclient -x puis dhclient -v :

root@pc-778555:/home/pcadmin# cat /run/systemd/timesyncd.conf.d/01-dhclient.conf 
# NTP server entries received from DHCP server
[Time]
NTP=10.1.3.5

Also available in: Atom PDF