Did I find the right examples for you? yes no

All Samples(11)  |  Call(0)  |  Derive(11)  |  Import(0)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/userdata.py   cloudbase-init(Download)
class UserDataPlugin(base.BasePlugin):
    _PART_HANDLER_CONTENT_TYPE = "text/part-handler"
    _GZIP_MAGIC_NUMBER = '\x1f\x8b'
 
    def execute(self, service, shared_data):

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/networkconfig.py   cloudbase-init(Download)
class NetworkConfigPlugin(base.BasePlugin):
    def execute(self, service, shared_data):
        network_config = service.get_network_config()
        if not network_config:
            return (base.PLUGIN_EXECUTION_DONE, False)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/sshpublickeys.py   cloudbase-init(Download)
class SetUserSSHPublicKeysPlugin(base.BasePlugin):
    def execute(self, service, shared_data):
        public_keys = service.get_public_keys()
        if not public_keys:
            LOG.debug('Public keys not found in metadata')

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/sethostname.py   cloudbase-init(Download)
class SetHostNamePlugin(base.BasePlugin):
    def execute(self, service, shared_data):
        osutils = osutils_factory.get_os_utils()
 
        metadata_host_name = service.get_host_name()

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/winrmlistener.py   cloudbase-init(Download)
class ConfigWinRMListenerPlugin(base.BasePlugin):
    _cert_subject = "CN=Cloudbase-Init WinRM"
    _winrm_service_name = "WinRM"
 
    def _check_winrm_service(self, osutils):

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/setuserpassword.py   cloudbase-init(Download)
class SetUserPasswordPlugin(base.BasePlugin):
    def _encrypt_password(self, ssh_pub_key, password):
        cm = crypt.CryptManager()
        with cm.load_ssh_rsa_public_key(ssh_pub_key) as rsa:
            enc_password = rsa.public_encrypt(password)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/ntpclient.py   cloudbase-init(Download)
class NTPClientPlugin(base.BasePlugin):
    def _check_w32time_svc_status(self, osutils):
        _W32TIME_SERVICE = "w32time"
 
        svc_start_mode = osutils.get_service_start_mode(

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/winrmcertificateauth.py   cloudbase-init(Download)
class ConfigWinRMCertificateAuthPlugin(base.BasePlugin):
    def _get_credentials(self, shared_data):
        user_name = shared_data.get(constants.SHARED_DATA_USERNAME)
        if not user_name:
            raise Exception("Cannot execute plugin as the username has "

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/licensing.py   cloudbase-init(Download)
class WindowsLicensingPlugin(base.BasePlugin):
    def _run_slmgr(self, osutils, args):
        if osutils.check_sysnative_dir_exists():
            cscript_dir = osutils.get_sysnative_dir()
        else:

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/extendvolumes.py   cloudbase-init(Download)
class ExtendVolumesPlugin(base.BasePlugin):
    def _extend_volumes(self, pack, volume_idxs=None):
        enum = pack.QueryVolumes()
        while True:
            (unk, c) = enum.Next(1)

  1 | 2  Next