本文整理汇总了Python中pykickstart.base.KickstartCommand类的典型用法代码示例。如果您正苦于以下问题:Python KickstartCommand类的具体用法?Python KickstartCommand怎么用?Python KickstartCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KickstartCommand类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.repoList = kwargs.get("repoList", [])
self.exclusive_required_options = [("mirrorlist", "--mirrorlist"),
("baseurl", "--baseurl")]
开发者ID:atodorov,项目名称:pykickstart,代码行数:7,代码来源:repo.py
示例2: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.biospart = kwargs.get("biospart", None)
self.partition = kwargs.get("partition", None)
self.dir = kwargs.get("dir", None)
self.op = self._getParser()
开发者ID:autotune,项目名称:pykickstart,代码行数:7,代码来源:harddrive.py
示例3: __init__
def __init__(self, writePriority=120, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.drives = kwargs.get("drives", [])
self.initAll = kwargs.get("initAll", False)
self.type = kwargs.get("type", None)
开发者ID:autotune,项目名称:pykickstart,代码行数:7,代码来源:clearpart.py
示例4: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.hsync = kwargs.get("hsync", "")
self.monitor = kwargs.get("monitor", "")
self.vsync = kwargs.get("vsync", "")
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:7,代码来源:monitor.py
示例5: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.type = kwargs.get("type", "")
self.moduleName = kwargs.get("moduleName", "")
self.moduleOpts = kwargs.get("moduleOpts", "")
开发者ID:tradej,项目名称:pykickstart-old,代码行数:7,代码来源:device.py
示例6: __init__
def __init__(self, writePriority=140, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.snapshotList = kwargs.get("snapshotList", [])
self.whenMap = { "post-install": SNAPSHOT_WHEN_POST_INSTALL,
"pre-install": SNAPSHOT_WHEN_PRE_INSTALL }
self.op = self._getParser()
开发者ID:dustymabe,项目名称:pykickstart,代码行数:7,代码来源:snapshot.py
示例7: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.enabled = kwargs.get("enabled", None)
self.ports = kwargs.get("ports", [])
self.trusts = kwargs.get("trusts", [])
开发者ID:cathywife,项目名称:pykickstart,代码行数:7,代码来源:firewall.py
示例8: __init__
def __init__(self, writePriority=0, *args, **kwargs): # pylint: disable=super-init-not-called
KickstartCommand.__init__(self, writePriority, *args, **kwargs) # pylint: disable=non-parent-init-called
self.op = self._getParser()
self._keyboard = kwargs.get("_keyboard", "")
self.vc_keymap = kwargs.get("vc_keymap", "")
self.x_layouts = kwargs.get("x_layouts", [])
self.switch_options = kwargs.get("switch_options", [])
开发者ID:piyush1911,项目名称:pykickstart,代码行数:7,代码来源:keyboard.py
示例9: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.device = kwargs.get("device", "")
self.emulthree = kwargs.get("emulthree", False)
self.mouse = kwargs.get("mouse", "")
开发者ID:jlebon,项目名称:pykickstart,代码行数:7,代码来源:mouse.py
示例10: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.enabled = kwargs.get("enabled", False)
self.password = kwargs.get("password", "")
self.connect = kwargs.get("connect", "")
开发者ID:M4rtinK,项目名称:pykickstart,代码行数:7,代码来源:vnc.py
示例11: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.rescue = False
self.nomount = kwargs.get("nomount", False)
self.romount = kwargs.get("romount", False)
开发者ID:piyush1911,项目名称:pykickstart,代码行数:7,代码来源:rescue.py
示例12: __init__
def __init__(self, *args, **kwargs):
KickstartCommand.__init__(self, *args, **kwargs)
self.op = self._getParser()
self.osname = kwargs.get('osname', None)
self.remote = kwargs.get("remote", self.osname)
self.url = kwargs.get('url', None)
self.ref = kwargs.get('ref', None)
self.nogpg = kwargs.get('nogpg', False)
开发者ID:cathywife,项目名称:pykickstart,代码行数:8,代码来源:ostreesetup.py
示例13: __init__
def __init__(self, *args, **kwargs):
KickstartCommand.__init__(self, *args, **kwargs)
self.checksum = kwargs.get("checksum", "")
self.noverifyssl = kwargs.get("noverifyssl", None)
self.proxy = kwargs.get("proxy", None)
self.url = kwargs.get("url", None)
self.op = self._getParser()
开发者ID:jlebon,项目名称:pykickstart,代码行数:8,代码来源:liveimg.py
示例14: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.bootprotoList = [BOOTPROTO_DHCP, BOOTPROTO_BOOTP,
BOOTPROTO_STATIC]
self.op = self._getParser()
self.network = kwargs.get("network", [])
开发者ID:atodorov,项目名称:pykickstart,代码行数:8,代码来源:network.py
示例15: __init__
def __init__(self, writePriority=80, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.actionList = kwargs.get("actionList", [])
self.validActions = [NVDIMM_ACTION_RECONFIGURE, NVDIMM_ACTION_USE]
self.validModes = [NVDIMM_MODE_SECTOR]
self.op = self._getParser()
开发者ID:atodorov,项目名称:pykickstart,代码行数:8,代码来源:nvdimm.py
示例16: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.host = kwargs.get("host", "")
self.level = kwargs.get("level", "")
self.port = kwargs.get("port", "")
self._levelProvided = False
开发者ID:piyush1911,项目名称:pykickstart,代码行数:8,代码来源:logging.py
示例17: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.host = kwargs.get("host", "")
self.level = kwargs.get("level", "")
self.port = kwargs.get("port", "")
self._level_provided = bool(self.level)
if not self._level_provided:
self.level = "info"
开发者ID:atodorov,项目名称:pykickstart,代码行数:11,代码来源:logging.py
示例18: __init__
def __init__(self, writePriority=131, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
# A dict of all the RAID levels we support. This means that if we
# support more levels in the future, subclasses don't have to
# duplicate too much.
self.levelMap = {"RAID0": "RAID0", "0": "RAID0",
"RAID1": "RAID1", "1": "RAID1",
"RAID5": "RAID5", "5": "RAID5",
"RAID6": "RAID6", "6": "RAID6"}
self.raidList = kwargs.get("raidList", [])
self.op = self._getParser()
开发者ID:piyush1911,项目名称:pykickstart,代码行数:12,代码来源:raid.py
示例19: __init__
def __init__(self, writePriority=132, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
# A dict of all the RAID levels we support. This means that if we
# support more levels in the future, subclasses don't have to
# duplicate too much.
self.levelMap = {"raid0": "raid0", "0": "raid0",
"raid1": "raid1", "1": "raid1",
"raid10": "raid10", "10": "raid10",
"single": "single"}
self.btrfsList = kwargs.get("btrfsList", [])
开发者ID:atodorov,项目名称:pykickstart,代码行数:13,代码来源:btrfs.py
示例20: __init__
def __init__(self, writePriority=10, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.driveorder = kwargs.get("driveorder", [])
self.appendLine = kwargs.get("appendLine", "")
self.forceLBA = kwargs.get("forceLBA", False)
self.linear = kwargs.get("linear", True)
self.location = kwargs.get("location", "none")
self.md5pass = kwargs.get("md5pass", "")
self.password = kwargs.get("password", "")
self.upgrade = kwargs.get("upgrade", False)
self.useLilo = kwargs.get("useLilo", False)
self.deleteRemovedAttrs()
开发者ID:tradej,项目名称:pykickstart-old,代码行数:15,代码来源:bootloader.py
注:本文中的pykickstart.base.KickstartCommand类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论