Re-bonjour à tous,
J'ai remarqué 2 petites choses concernant la recherche du serveur et des dépôts par DNS (via une entrée SRV).
- Génial l'idée de mettre une option « dnsdomain » pour l'agent dans wapt-get.ini :)
J'ai également vu que l'on pouvait passer ce paramètre via waptdeploy grace à /setupargs=/dnsdomain (Re-génial !)
Par contre, waptdeploy lui n'a pas d'option dnsdomain. Du coup, il recherche automatique un serveur « wapt.suffix_dns_de_la_carte_reseau »
Je suis forcement dans un cas très particulier :
Mes postes obtiennent du DHCP le suffixe DNS educ-for.local
La zone DNS educ-for.local possède toutes les entrées nécessaires (SRV, A , CNAME) au bon fonctionnement d'un serveur wapt.educ-for.local 1.3
Sur la zone DNS educationetformation.fr, j'ai déclaré toutes les entrées nécessaires pour un nouveau serveur wapt.educationetformation.fr en 1.5
Un waptdeploy lancé à la main ira forcement chercher http://wapt.educ-for.local/wapt/waptagent.exe (là où j'aimerai http://wapt.educationetformation.fr/wapt/waptagent.exe)
Du coup, je spécifie l'emplacement de l'agent (--repo_url ou -waptsetupurl) mais je perds dans ce cas cette fameuse fonctionnalité qui consiste dans une installation multi-site à ne télécharger qu'à partir des dépôts locaux
Sinon, je peux créer une GPO par site, avec à chaque fois, le repo_url correspondant au site auquel s'applique la GPO. Faisable mais bon...
Du coup, je pensais que parmi votre longue liste TODO, pourrait être sympa une des 2 idées suivantes :) :
o Soit une option dnsdomain à waptdeploy
o Soit, un peu a la manière d'OCSIventory, une option /GPO qui permet à waptdeploy de rechercher le fichier waptagent.exe au même emplacement que lui-même. Du coup, lors de la configuration de la GPO, on placerait waptagent.exe et waptdeploy.exe dans le sysvol, généralement dans le dossier Machine\Scripts\Startup de la GPO en question
- Je viens de déployer un agent sur un poste de test (rd.educ-for.local) Config basic du wapt-get.ini, à savoir wapt_server= repo_url= dnsdomain=educationetformation.fr .....
J'essaie un petit wapt-get update -ldebug afin de voir un peu le comportement de l'agent. Pour rappel, voici mes entrées DNS pour la zone educationetformation.fr : wapt A 10.1.4.80 _wapt._tcp_educationetformation.fr SRV [0][0][443] wapt.educationetformation.fr. _waptserver._tcp_educationetformation.fr SRV [0][0][443] wapt.educationetformation.fr.
je m'aperçois que l'agent 1.5 essaie de rechercher des entrées DNS pour le moins étranges :
2018-04-19 16:01:18,045 DEBUG Default encoding : ascii 2018-04-19 16:01:18,045 DEBUG Setting encoding for stdout and stderr to cp850 2018-04-19 16:01:18,045 DEBUG Python path ['c:\wapt', 'c:\wapt\python27.zip', 'c:\wapt\DLLs', 'c:\wapt\lib', 'c:\wapt\lib\plat-win', 'c:\wapt\lib\l ib-tk', 'c:\wapt', 'c:\wapt\lib\site-packages', 'c:\wapt\lib\site-package s\pywin32-221-py2.7-win32.egg'] 2018-04-19 16:01:18,045 INFO Using local waptservice configuration c:\wapt\wapt- get.ini 2018-04-19 16:01:18,045 DEBUG Config file: c:\wapt\wapt-get.ini 2018-04-19 16:01:18,061 DEBUG Thread 3040 is connecting to wapt db 2018-04-19 16:01:18,092 DEBUG All interfaces : [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,108 DEBUG Local connected IPs: [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,108 DEBUG Trying _wapt-host._tcp.educationetformation.fr SRV records 2018-04-19 16:01:18,108 DEBUG No _wapt-host._tcp.educationetformation.fr SRV record found 2018-04-19 16:01:18,108 DEBUG Trying wapt-host.educationetformation.fr CNAME records 2018-04-19 16:01:18,108 DEBUG No working wapt-host.educationetformation.fr CNAME record found 2018-04-19 16:01:18,108 DEBUG Trying wapt.educationetformation.fr. A records 2018-04-19 16:01:18,108 DEBUG No wapt.educationetformation.fr. A record found -> bizarre, cette entrée existe bien dans mes DNS, confirmée par un nslookup 2018-04-19 16:01:18,108 INFO User Groups:[] 2018-04-19 16:01:18,108 DEBUG WAPT base directory : c:\wapt 2018-04-19 16:01:18,108 DEBUG Package cache dir : c:\wapt\cache 2018-04-19 16:01:18,108 DEBUG WAPT DB Structure version;: 20180303 2018-04-19 16:01:18,108 DEBUG Checking if old install in progress 2018-04-19 16:01:18,170 DEBUG Thread 3040 is connecting to wapt db 2018-04-19 16:01:18,170 DEBUG DB Start transaction 2018-04-19 16:01:18,170 DEBUG reset stalled install_status in database 2018-04-19 16:01:18,170 INFO Status : 2018-04-19 16:01:18,170 DEBUG DB commit Update package list 2018-04-19 16:01:18,186 DEBUG DB Start transaction 2018-04-19 16:01:18,186 DEBUG Remove unknown repositories from packages table and params ("wapt","wapt-host") 2018-04-19 16:01:18,201 DEBUG All interfaces : [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,217 DEBUG Local connected IPs: [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,217 DEBUG Trying _wapt._tcp.educationetformation.fr SRV records 2018-04-19 16:01:18,217 DEBUG 10.1.4.80 is in same subnet as 10.1.10.11/255.255.0.0 local connected interface 2018-04-19 16:01:18,217 DEBUG trying https://wapt.educationetformation.fr/wapt/Packages 2018-04-19 16:01:18,217 DEBUG Starting new HTTPS connection (1): wapt.educationetformation.fr 2018-04-19 16:01:18,233 DEBUG https://wapt.educationetformation.fr:443 "HEAD /wapt/Packages HTTP/1.1" 200 0 2018-04-19 16:01:18,233 DEBUG OK 2018-04-19 16:01:18,263 DEBUG All interfaces : [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,263 DEBUG Local connected IPs: [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,263 DEBUG Trying _wapt-host._tcp.educationetformation.fr SRV records 2018-04-19 16:01:18,263 DEBUG No _wapt-host._tcp.educationetformation.fr SRV record found 2018-04-19 16:01:18,263 DEBUG Trying wapt-host.educationetformation.fr CNAME records 2018-04-19 16:01:18,263 DEBUG No working wapt-host.educationetformation.fr CNAME record found 2018-04-19 16:01:18,279 DEBUG Trying wapt.educationetformation.fr. A records 2018-04-19 16:01:18,279 DEBUG No wapt.educationetformation.fr. A record found 2018-04-19 16:01:18,279 INFO Getting packages from https://wapt.educationetformation.fr/wapt 2018-04-19 16:01:18,279 DEBUG Check last-modified header for wapt to avoid unecessary update 2018-04-19 16:01:18,279 DEBUG Checking availability of https://wapt.educationetformation.fr/wapt/Packages 2018-04-19 16:01:18,279 DEBUG Starting new HTTPS connection (1): wapt.educationetformation.fr 2018-04-19 16:01:18,295 DEBUG https://wapt.educationetformation.fr:443 "HEAD /wapt/Packages HTTP/1.1" 200 0 2018-04-19 16:01:18,295 INFO Index from wapt has not been updated (last update 2018-04-19T09:30:24), skipping update 2018-04-19 16:01:18,326 DEBUG All interfaces : [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,342 DEBUG Local connected IPs: [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,342 DEBUG Trying _wapt-host._tcp.educationetformation.fr SRV records 2018-04-19 16:01:18,342 DEBUG No _wapt-host._tcp.educationetformation.fr SRV record found 2018-04-19 16:01:18,342 DEBUG Trying wapt-host.educationetformation.fr CNAME records 2018-04-19 16:01:18,342 DEBUG No working wapt-host.educationetformation.fr CNAME record found 2018-04-19 16:01:18,342 DEBUG Trying wapt.educationetformation.fr. A records 2018-04-19 16:01:18,342 DEBUG No wapt.educationetformation.fr. A record found 2018-04-19 16:01:18,342 INFO No location found for repository wapt-host, skipping 2018-04-19 16:01:18,342 DEBUG DB commit 2018-04-19 16:01:18,372 DEBUG All interfaces : [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,388 DEBUG Local connected IPs: [u'10.1.10.11/255.255.0.0'] 2018-04-19 16:01:18,388 DEBUG Trying _wapt-host._tcp.educationetformation.fr SRV records 2018-04-19 16:01:18,388 DEBUG No _wapt-host._tcp.educationetformation.fr SRV record found 2018-04-19 16:01:18,388 DEBUG Trying wapt-host.educationetformation.fr CNAME records 2018-04-19 16:01:18,388 DEBUG No working wapt-host.educationetformation.fr CNAME record found 2018-04-19 16:01:18,388 DEBUG Trying wapt.educationetformation.fr. A records 2018-04-19 16:01:18,388 DEBUG No wapt.educationetformation.fr. A record found 2018-04-19 16:01:18,388 DEBUG Check if host package "0C4DAE10-D0AE-46FF-A111-46966BFE84DC" is available 2018-04-19 16:01:18,388 DEBUG store status in DB 2018-04-19 16:01:18,388 DEBUG DB Start transaction 2018-04-19 16:01:18,388 DEBUG DB commit Total packages : 1 Added packages :
Removed packages :
Pending operations : upgrade: additional: install: remove: Repositories URL : https://wapt.educationetformation.fr/wapt None
Sur la 1.3, la même commande était beaucoup plus "directe":
2018-04-19 17:31:58,811 DEBUG Default encoding : ascii 2018-04-19 17:31:58,811 DEBUG Setting encoding for stdout and stderr to cp850 2018-04-19 17:31:58,811 DEBUG Python path ['C:\wapt', 'C:\wapt\lib\site-packages\pytz.egg', 'C:\wapt\lib\site-packages\py_bcrypt-0.4-py2.7-win32.egg', 'C:\wapt\python27.zip', 'C:\wapt\DLLs', 'C:\wapt\lib', 'C:\wapt\lib\plat-win', 'C:\wapt\lib\lib-tk', 'C:\wapt', 'C:\wapt\lib\site-packages', 'C:\wapt\lib\site-packages\win32', 'C:\wapt\lib\site-packages\win32\lib'] 2018-04-19 17:31:58,812 INFO Using local waptservice configuration C:\wapt\wapt-get.ini 2018-04-19 17:31:58,812 DEBUG Config file: C:\wapt\wapt-get.ini 2018-04-19 17:31:58,815 INFO User Groups:[] 2018-04-19 17:31:58,815 DEBUG WAPT base directory : C:\wapt 2018-04-19 17:31:58,815 DEBUG Package cache dir : C:\wapt\cache 2018-04-19 17:31:58,815 DEBUG Thread 6448 is connecting to wapt db 2018-04-19 17:31:58,816 DEBUG WAPT DB Structure version;: 20161103 2018-04-19 17:31:58,816 DEBUG Checking if old install in progress 2018-04-19 17:31:59,417 DEBUG Thread 6448 is connecting to wapt db 2018-04-19 17:31:59,418 DEBUG DB Start transaction 2018-04-19 17:31:59,418 DEBUG reset stalled install_status in database 2018-04-19 17:31:59,421 INFO Status : 2018-04-19 17:31:59,424 DEBUG DB commit Update package list 2018-04-19 17:31:59,431 DEBUG DB Start transaction 2018-04-19 17:31:59,431 DEBUG Remove unknown repositories from packages table and params ("global","wapt-host") 2018-04-19 17:31:59,480 DEBUG All interfaces : ['172.19.4.241/255.255.255.240', '10.1.0.84/255.255.0.0', '192.168.56.1/255.255.255.0'] 2018-04-19 17:31:59,519 DEBUG Local connected IPs: ['172.19.4.241/255.255.255.240', '10.1.0.84/255.255.0.0', '192.168.56.1/255.255.255.0'] 2018-04-19 17:31:59,520 DEBUG Trying _wapt._tcp.educ-for.local SRV records 2018-04-19 17:31:59,526 DEBUG 10.1.4.11 is in same subnet as 10.1.0.84/255.255.0.0 local connected interface 2018-04-19 17:31:59,539 DEBUG trying http://wapt.educ-for.local/wapt/Packages 2018-04-19 17:31:59,575 INFO Starting new HTTP connection (1): wapt.educ-for.local 2018-04-19 17:31:59,578 DEBUG "HEAD /wapt/Packages HTTP/1.1" 200 0 2018-04-19 17:31:59,579 DEBUG OK 2018-04-19 17:31:59,621 DEBUG All interfaces : ['172.19.4.241/255.255.255.240', '10.1.0.84/255.255.0.0', '192.168.56.1/255.255.255.0'] 2018-04-19 17:31:59,657 DEBUG Local connected IPs: ['172.19.4.241/255.255.255.240', '10.1.0.84/255.255.0.0', '192.168.56.1/255.255.255.0'] 2018-04-19 17:31:59,657 DEBUG Trying _wapt._tcp.educ-for.local SRV records 2018-04-19 17:31:59,671 DEBUG 10.1.4.11 is in same subnet as 10.1.0.84/255.255.0.0 local connected interface 2018-04-19 17:31:59,677 DEBUG trying http://wapt.educ-for.local/wapt/Packages 2018-04-19 17:31:59,677 INFO Starting new HTTP connection (1): wapt.educ-for.local 2018-04-19 17:31:59,681 DEBUG "HEAD /wapt/Packages HTTP/1.1" 200 0 2018-04-19 17:31:59,683 DEBUG OK 2018-04-19 17:31:59,683 INFO Getting packages from http://wapt.educ-for.local/wapt 2018-04-19 17:31:59,684 DEBUG Check last-modified header for repo global to avoid unecessary update 2018-04-19 17:31:59,684 DEBUG Checking availability of http://wapt.educ-for.local/wapt/Packages 2018-04-19 17:31:59,684 INFO Starting new HTTP connection (1): wapt.educ-for.local 2018-04-19 17:31:59,687 DEBUG "HEAD /wapt/Packages HTTP/1.1" 200 0 2018-04-19 17:31:59,688 INFO Index for repo global has not been updated (last update 2018-04-12T07:22:46), skipping update 2018-04-19 17:31:59,688 INFO Getting packages from http://wapt.educ-for.local/wapt-host 2018-04-19 17:32:00,516 INFO Starting new HTTP connection (1): wapt.educ-for.local 2018-04-19 17:32:00,520 DEBUG "HEAD /wapt-host/inf200.educ-for.local.wapt HTTP/1.1" 200 0 2018-04-19 17:32:00,523 DEBUG No change on host package at http://wapt.educ-for.local/wapt-host/inf200.educ-for.local.wapt (2017-10-18T07:38:36) 2018-04-19 17:32:00,523 DEBUG DB commit 2018-04-19 17:32:01,355 DEBUG Check if host package "inf200.educ-for.local" is available 2018-04-19 17:32:02,184 DEBUG store status in DB 2018-04-19 17:32:02,186 DEBUG DB Start transaction 2018-04-19 17:32:02,188 DEBUG DB commit Total packages : 33 Added packages :
Removed packages :
Upgradable packages : upgrade additional install remove Repositories URL : http://wapt.educ-for.local/wapt http://wapt.educ-for.local/wapt-host
Bonne fin de journée