コード例 #1
0
ファイル: oscap.py プロジェクト: M4rtinK/oscap-anaconda-addon
    def __init__(self, name, just_clear=False):
        """
        :param name: name of the addon
        :type name: str

        """

        if not just_clear:
            # do not call the parent's __init__ more than once
            AddonData.__init__(self, name)

        ## values specifying the content
        self.content_type = ""
        self.content_url = ""
        self.datastream_id = ""
        self.xccdf_id = ""
        self.profile_id = ""
        self.xccdf_path = ""
        self.cpe_path = ""
        self.tailoring_path = ""

        ## additional values
        self.fingerprint = ""

        # certificate to verify HTTPS connection or signed data
        self.certificates = ""

        ## internal values
        self.rule_data = rule_handling.RuleData()
        self.dry_run = False
コード例 #2
0
ファイル: kdump.py プロジェクト: ryncsn/kdump-anaconda-addon
    def __init__(self, name):
        AddonData.__init__(self, name)

        self.enabled = False
        lower, upper, step = getMemoryBounds()
        self.reserveMB = "%d" % lower
        self.enablefadump = False
コード例 #3
0
    def __init__(self, name, just_clear=False):
        """
        :param name: name of the addon
        :type name: str

        """

        if not just_clear:
            # do not call the parent's __init__ more than once
            AddonData.__init__(self, name)

        # values specifying the content
        self.content_type = ""
        self.content_url = ""
        self.datastream_id = ""
        self.xccdf_id = ""
        self.profile_id = ""
        self.content_path = ""
        self.cpe_path = ""
        self.tailoring_path = ""

        # additional values
        self.fingerprint = ""

        # certificate to verify HTTPS connection or signed data
        self.certificates = ""

        # internal values
        self.rule_data = rule_handling.RuleData()
        self.dry_run = False
コード例 #4
0
    def __init__(self, name):
        AddonData.__init__(self, name)

        self.name = name
        self.content = ""
        self.header_args = ""

        self.rhsm_data = KickstartRhsmData()

        # TODO: make this a data class
        self.serverurl = None
        self.activationkeys = []
        self.auto_attach = True
        self.username = None
        # Unsure if we should support this at all
        self.password = None
        self.org = None
        self.servicelevel = []
        self.force = False

        self.arg_names = {}
        self.line_handlers = {
            'serverurl': self._parse_serverurl,
            'activationkey': self._parse_activationkey,
            'auto-attach': self._parse_auto_attach,
            'username': self._parse_username,
            'password': self._parse_password,
            'servicelevel': self._parse_servicelevel,
            'force': self._parse_force,
            'org': self._parse_org
        }
コード例 #5
0
    def __init__(self, name):
        AddonData.__init__(self, name)

        self.name = name
        self.content = ""
        self.header_args = ""

        self.rhsm_data = KickstartRhsmData()

        # TODO: make this a data class
        self.serverurl = None
        self.activationkeys = []
        self.auto_attach = True
        self.username = None
        # Unsure if we should support this at all
        self.password = None
        self.org = None
        self.servicelevel = []
        self.force = False

        self.arg_names = {}
        self.line_handlers = {'serverurl': self._parse_serverurl,
                              'activationkey': self._parse_activationkey,
                              'auto-attach': self._parse_auto_attach,
                              'username': self._parse_username,
                              'password': self._parse_password,
                              'servicelevel': self._parse_servicelevel,
                              'force': self._parse_force,
                              'org': self._parse_org}
コード例 #6
0
ファイル: kdump.py プロジェクト: M4rtinK/kdump-anaconda-addon
    def __init__(self, name):
        AddonData.__init__(self, name)

        self.enabled = False
        lower, upper, step = getMemoryBounds()
        self.reserveMB = "%d" % lower
        self.enablefadump = False
コード例 #7
0
    def __init__(self, name):

        AddonData.__init__(self, name)
        #TODO: add a dictionary instead of these variables
        self.lines = ""
        self.arguments = "none"
        self.state = "none"
        self.env = "anaconda"  # Other possible value: firstboot
コード例 #8
0
ファイル: homer.py プロジェクト: biddyweb/homer
	def __init__(self, name):

		AddonData.__init__(self, name)
		self.homer_user = ""
		self.homer_password = ""
		self.homer_database_name = ""
		self.homer_database_host = ""
		self.homer_webserver_type = ""
コード例 #9
0
    def __init__(self, name):

        AddonData.__init__(self, name)
        self.homer_user = ""
        self.homer_password = ""
        self.homer_database_name = ""
        self.homer_database_host = ""
        self.homer_webserver_type = ""
コード例 #10
0
    def __init__(self, name):

        AddonData.__init__(self, name)
        #TODO: add a dictionary instead of these variables
        self.lines = ""
        self.arguments = "none"
        self.state = "none"
        self.env = "anaconda" # Other possible value: firstboot
コード例 #11
0
    def __init__(self, name):
        AddonData.__init__(self, name)

        self.enabled = True
        self.reserveMB = "auto"
        if getOS() == "fedora":
            self.enabled = False
            lower, upper, step = getMemoryBounds()
            self.reserveMB = "%d" % lower
コード例 #12
0
    def __init__(self, name):
        AddonData.__init__(self, name)

        self.enabled = True
        self.reserveMB = "auto"
        if getOS() == "fedora":
            self.enabled = False
            lower, upper, step = getMemoryBounds()
            self.reserveMB = "%d" % lower
コード例 #13
0
    def __init__(self, name):
        """
        :param name: name of the addon
        :type name: str

        """

        AddonData.__init__(self, name)
        self.text = ""
        self.reverse = False
コード例 #14
0
ファイル: docker.py プロジェクト: bcl/docker-anaconda-addon
 def __init__(self, name):
     """ :param str name: Addon name """
     log.info("Initializing docker addon")
     # Called very early in anaconda setup
     AddonData.__init__(self, name)
     self.vgname = "docker"
     self.fstype = "xfs"
     self.enabled = False
     self.extra_args = []
     self.save_args = False
コード例 #15
0
    def __init__(self, name):
        """
        :param name: name of the addon
        :type name: str

        """

        AddonData.__init__(self, name)
        self.text = ""
        self.reverse = False
コード例 #16
0
    def __init__(self, name):
        """
        :param name: name of the addon
        :type name: str

        """

        AddonData.__init__(self, name)
        self.text = ""
        self.reverse = False
        self.postscripts = None
        self.haverolls = None
        self.clientInstall = RocksEnv.RocksEnv().clientInstall
コード例 #17
0
ファイル: rocksrolls.py プロジェクト: rocksclusters/kernel
    def __init__(self, name):
        """
        :param name: name of the addon
        :type name: str

        """

        AddonData.__init__(self, name)
        self.text = ""
        self.reverse = False
        self.postscripts = None
        self.haverolls = None
        self.clientInstall = RocksEnv.RocksEnv().clientInstall
コード例 #18
0
    def __init__(self, name):
        """ :param str name: Addon name """
        log.info("Initializing docker addon")
        # Called very early in anaconda setup
        AddonData.__init__(self, name)

        # This is set to one of the storage classes in handle_header
        self.storage = None
        self.vgname = None
        self.fstype = "xfs"
        self.enabled = False
        self.extra_args = []
        self.save_args = False
コード例 #19
0
ファイル: packages.py プロジェクト: dvahlin/anaconda-addon
 def __init__(self, name):
     AddonData.__init__(self, name)
     self.software = {
         "wireshark": {
             "Desc": "Network traffic analyzer",
             "Active": False,
         },
         "nmap": {
             "Desc": "Network exploration tool and security scanner",
             "Active": False,
         },
         "gimp": {
             "Desc": "GNU Image Manipulation Program",
             "Active": False,
         },
         "Linux ISO": {
             "Desc": "linus och hans iso",
             "Active": False,
         },
     }
コード例 #20
0
 def __init__(self, name):
     AddonData.__init__(self, name)
     self.yubikey = False
     self.passphrase = ""
コード例 #21
0
ファイル: kdump.py プロジェクト: bcl/kdump-anaconda-addon
    def __init__(self, name):
        AddonData.__init__(self, name)

        self.enabled = True
        self.reserveMB = "auto"