3 \¼meœã@sDddlZddlmZddlmZejeƒZdZGdd„dej ƒZ dS)éN)Úhelpers)Úphotona6# This file is generated from information provided by the datasource. Changes # to it will not persist across an instance reboot. To disable cloud-init's # network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: # network: {config: disabled} c@sTeZdZdZdZdZdZddiZeedœededd œd œZ d Z d d „Z dd„Z dS)ÚDistroz /etc/hostnamez/etc/systemd/network/z/etc/locale.confz/etc/systemd/resolved.confÚnetplanz/etc/netplan/50-cloud-init.yaml)Zresolv_conf_fnÚnetwork_conf_dirÚTrue)Z netplan_pathZnetplan_headerZpostcmds)ZnetworkdrTcCs0tjj||||ƒtj|ƒ|_d|_dg|_dS)NZmarinerZ systemctl)rrÚ__init__rZRunnersZ_runnerZosfamilyZinit_cmd)ÚselfÚnameZcfgÚpaths©r ú/usr/lib/python3.6/mariner.pyr+s zDistro.__init__cCsdS)Nz 127.0.0.1r )r r r r Ú_get_localhost_ip4szDistro._get_localhost_ipN) Ú__name__Ú __module__Ú __qualname__Zsystemd_hostname_conf_fnrZsystemd_locale_conf_fnZresolve_conf_fnZnetwork_conf_fnÚNETWORK_FILE_HEADERZrenderer_configsZ prefer_fqdnrrr r r r rs  r) ZloggingZ cloudinitrZcloudinit.distrosrZ getLoggerrZLOGrrr r r r Ús