3
\¼meœ ã @ sD d dl Z d dlmZ d dlmZ e jeƒZdZG dd„ 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 @ sT e Zd ZdZdZdZdZddiZeedœed edd œd
œZ dZ
dd
„ Zdd„ ZdS )Ú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)Znetplan_pathZnetplan_headerZpostcmds)Znetworkdr Tc C s0 t jj| |||ƒ tj|ƒ| _d| _dg| _d S )NZmarinerZ systemctl)r r Ú__init__r ZRunnersZ_runnerZosfamilyZinit_cmd)ÚselfÚnameZcfgÚpaths© r ú/usr/lib/python3.6/mariner.pyr + s zDistro.__init__c C s dS )Nz 127.0.0.1r )r r r r
Ú_get_localhost_ip4 s zDistro._get_localhost_ipN)
Ú__name__Ú
__module__Ú__qualname__Zsystemd_hostname_conf_fnr Zsystemd_locale_conf_fnZresolve_conf_fnZnetwork_conf_fnÚNETWORK_FILE_HEADERZrenderer_configsZprefer_fqdnr r r r r r
r s r )
ZloggingZ cloudinitr Zcloudinit.distrosr Z getLoggerr ZLOGr r r r r r
Ú