• Brent Baude's avatar
    Get Azure endpoint server from DHCP client · 648dbbf6
    Brent Baude authored
    It is more efficient and cross-distribution safe to use the hooks function
    from dhclient to obtain the Azure endpoint server (DHCP option 245).
    
    This is done by providing shell scritps that are called by the hooks
    infrastructure of both dhclient and NetworkManager.  The hooks then
    invoke 'cloud-init dhclient-hook' that maintains json data
    with the dhclient options in
    /run/cloud-init/dhclient.hooks/<interface>.json .
    
    The azure helper then pulls the value from
    /run/cloud-init/dhclient.hooks/<interface>.json file(s). If that file does
    not exist or the value is not present, it will then fall back to the
    original method of scraping the dhcp client lease file.
    648dbbf6
Name
Last commit
Last update
..
examples Loading commit data...
rtd Loading commit data...
sources Loading commit data...
README Loading commit data...
merging.rst Loading commit data...
status.txt Loading commit data...
userdata.txt Loading commit data...
var-lib-cloud.txt Loading commit data...
vendordata.txt Loading commit data...