/usr/lib/python3.6/site-packages/cloudinit/distros/__pycache__
NameSizeModeActions
almalinux.cpython-36.opt-1.pyc3130644editdlrm
almalinux.cpython-36.pyc3130644editdlrm
alpine.cpython-36.opt-1.pyc69470644editdlrm
alpine.cpython-36.pyc69470644editdlrm
amazon.cpython-36.opt-1.pyc4500644editdlrm
amazon.cpython-36.pyc4500644editdlrm
arch.cpython-36.opt-1.pyc75090644editdlrm
arch.cpython-36.pyc75090644editdlrm
bsd.cpython-36.opt-1.pyc49910644editdlrm
bsd.cpython-36.pyc49910644editdlrm
bsd_utils.cpython-36.opt-1.pyc11180644editdlrm
bsd_utils.cpython-36.pyc11180644editdlrm
centos.cpython-36.opt-1.pyc3100644editdlrm
centos.cpython-36.pyc3100644editdlrm
cloudlinux.cpython-36.opt-1.pyc3140644editdlrm
cloudlinux.cpython-36.pyc3140644editdlrm
cos.cpython-36.opt-1.pyc3090644editdlrm
cos.cpython-36.pyc3090644editdlrm
debian.cpython-36.opt-1.pyc76980644editdlrm
debian.cpython-36.pyc76980644editdlrm
dragonflybsd.cpython-36.opt-1.pyc3610644editdlrm
dragonflybsd.cpython-36.pyc3610644editdlrm
eurolinux.cpython-36.opt-1.pyc3130644editdlrm
eurolinux.cpython-36.pyc3130644editdlrm
fedora.cpython-36.opt-1.pyc3100644editdlrm
fedora.cpython-36.pyc3100644editdlrm
freebsd.cpython-36.opt-1.pyc63590644editdlrm
freebsd.cpython-36.pyc63590644editdlrm
gentoo.cpython-36.opt-1.pyc70720644editdlrm
gentoo.cpython-36.pyc70720644editdlrm
mariner.cpython-36.opt-1.pyc15760644editdlrm
mariner.cpython-36.pyc15760644editdlrm
miraclelinux.cpython-36.opt-1.pyc3160644editdlrm
miraclelinux.cpython-36.pyc3160644editdlrm
netbsd.cpython-36.opt-1.pyc46880644editdlrm
netbsd.cpython-36.pyc46880644editdlrm
networking.cpython-36.opt-1.pyc125060644editdlrm
networking.cpython-36.pyc125060644editdlrm
net_util.cpython-36.opt-1.pyc18890644editdlrm
net_util.cpython-36.pyc18890644editdlrm
openbsd.cpython-36.opt-1.pyc23130644editdlrm
openbsd.cpython-36.pyc23130644editdlrm
OpenCloudOS.cpython-36.opt-1.pyc5420644editdlrm
OpenCloudOS.cpython-36.pyc5420644editdlrm
openeuler.cpython-36.opt-1.pyc5380644editdlrm
openeuler.cpython-36.pyc5380644editdlrm
openmandriva.cpython-36.opt-1.pyc3180644editdlrm
openmandriva.cpython-36.pyc3180644editdlrm
opensuse-leap.cpython-36.opt-1.pyc3210644editdlrm
opensuse-leap.cpython-36.pyc3210644editdlrm
opensuse-microos.cpython-36.opt-1.pyc3240644editdlrm
opensuse-microos.cpython-36.pyc3240644editdlrm
opensuse-tumbleweed.cpython-36.opt-1.pyc3270644editdlrm
opensuse-tumbleweed.cpython-36.pyc3270644editdlrm
opensuse.cpython-36.opt-1.pyc64290644editdlrm
opensuse.cpython-36.pyc64290644editdlrm
photon.cpython-36.opt-1.pyc44160644editdlrm
photon.cpython-36.pyc44160644editdlrm
rhel.cpython-36.opt-1.pyc49320644editdlrm
rhel.cpython-36.pyc49320644editdlrm
rhel_util.cpython-36.opt-1.pyc9690644editdlrm
rhel_util.cpython-36.pyc9690644editdlrm
rocky.cpython-36.opt-1.pyc3090644editdlrm
rocky.cpython-36.pyc3090644editdlrm
sle-micro.cpython-36.opt-1.pyc3170644editdlrm
sle-micro.cpython-36.pyc3170644editdlrm
sles.cpython-36.opt-1.pyc3120644editdlrm
sles.cpython-36.pyc3120644editdlrm
sle_hpc.cpython-36.opt-1.pyc3150644editdlrm
sle_hpc.cpython-36.pyc3150644editdlrm
suse.cpython-36.opt-1.pyc3120644editdlrm
suse.cpython-36.pyc3120644editdlrm
TencentOS.cpython-36.opt-1.pyc5400644editdlrm
TencentOS.cpython-36.pyc5400644editdlrm
ubuntu.cpython-36.opt-1.pyc14840644editdlrm
ubuntu.cpython-36.pyc14840644editdlrm
ug_util.cpython-36.opt-1.pyc40040644editdlrm
ug_util.cpython-36.pyc40040644editdlrm
virtuozzo.cpython-36.opt-1.pyc3130644editdlrm
virtuozzo.cpython-36.pyc3130644editdlrm
__init__.cpython-36.opt-1.pyc364580644editdlrm
__init__.cpython-36.pyc364580644editdlrm
Edit: /usr/lib/python3.6/site-packages/cloudinit/distros/__pycache__/opensuse.cpython-36.pyc (6429B)
3 \meh'@sxddlZddlZddlmZmZmZmZddlmZddlm Z ddl m Z ddl mZejeZGdddejZdS) N)distroshelperssubputil) PackageList) rhel_util) HostnameConf) PER_INSTANCEc@seZdZdZdZdgZdZdZdZdZ dZ d Z d Z d d d ddddddiZ ddZd/ddZedddZd0ddZddZdd Zd1d!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zed-d.ZdS)2Distroz/etc/sysconfig/clockz /etc/HOSTNAMEZservicez/etc/sysconfig/languagez/etc/sysconfig/network/configz/etc/sysconfig/network/ifcfg-%sz!/etc/sysconfig/network/ifroute-%sz /etc/hostnamez/etc/locale.confz/etc/localtime sysconfigzetc/sysconfig/network/configsusez%(base)s/network/ifcfg-%(name)sz3etc/udev/rules.d/85-persistent-net-cloud-init.rulesz!%(base)s/network/ifroute-%(name)s)Zipv4Zipv6)ZcontrolZflavorZiface_templatesZ netrules_pathZroute_templatescCsTtjj||||tj||_d|_d|_d|_d|d<|j rPdg|_ d|d<dS)Nr FZsshdZ ssh_svcnameZ systemctlz sshd.service) rr __init__rZRunners_runnerZosfamily update_methodread_only_root uses_systemdinit_cmd)selfnameZcfgpathsr/usr/lib/python3.6/opensuse.pyr 1s zDistro.__init__NcCs>|jr|s|j}d|i}n|s&|j}d|i}tj||dS)NZLANGZRC_LANG)rsystemd_locale_conf_fnlocale_conf_fnrhutilupdate_sysconfig_file)rZlocaleZout_fnZ locale_cfgrrr apply_locale<s zDistro.apply_locale)pkglistcCs|jdd|ddS)NZinstallz--auto-agree-with-licenses)argspkgs)package_command)rrrrrinstall_packagesGszDistro.install_packagescCs|dkr g}|j|jr4|jdk r4tjddS|jdkrHddg}n ddddg}|dkr`d }| r|jdkr|d krd }dddg}|d krddg}|j||rt|tr|j|n|rt|tr|j |t j d |}|j |t j |d d|jdkr tj ddS)N transactionalzUPackage operation requested but read only root without btrfs and transactional-updatazypperz--non-interactiveztransactional-updatez--drop-if-no-changeZpkgZupgradeupdateZuprefreshz%s-%sF)Zcapturez8To use/activate the installed packages reboot the system)_set_update_methodrrLOGerrorappend isinstancestrlistextendrZexpand_package_listrinfo)rZcommandrrcmdrrrrr LsF         zDistro.package_commandcCsZ|j|}|jr.tj|jtj||jn(dt|i}tj|j |tj ||jdS)NZTIMEZONE) Z _find_tz_filerrZdel_file tz_local_fnZsym_linkr+rr clock_conf_fncopy)rZtzZtz_fileZ clock_cfgrrr set_timezones   zDistro.set_timezonecCs|jjd|jdgtddS)Nzupdate-sourcesr%)Zfreq)rZrunr r )rrrrupdate_package_sourcess zDistro.update_package_sourcesc Cs|jr |jdr tj|jS|jrJtjdg\}}t|rD|S|Sn6y|j|}|j}Wnt k rrYnX|s||S|SdS)Nz/previous-hostnamehostname) rendswithr load_filestriprlen_read_hostname_confr5IOError)rfilenamedefaultoutZ_errconfr5rrr_read_hostnames  zDistro._read_hostnamecCsdS)Nz 127.0.1.1r)rrrr_get_localhost_ipszDistro._get_localhost_ipcCsttj|}|j|S)N)rrr7parse)rr<r?rrrr:szDistro._read_hostname_confcCs$|jr|j}n|j}||j|fS)N)rsystemd_hostname_conf_fnhostname_conf_fnr@)rZhost_fnrrr_read_system_hostnameszDistro._read_system_hostnamecCs|jdkrtjd}d}|r|\}}}tjdjd}x>|D]6}|j|r<|j}|d|kr`q<|djd|_Pq s