Exemplo n.º 1
0
    def __init__(self):
        '''
        Constructor.
        
        Ensure that package directory exists.
        '''
        self._basedir = common.props['cluster.emversionmgr.packages_base']

        if not os.path.exists(self._basedir):
            raise Exception("Package reference directory %s does not exist!" %
                            self._basedir)

        self._pkgfilenameparser = PkgFileNameParser()
Exemplo n.º 2
0
    def __init__(self, cluster, optype):
        '''
        Constructor
        '''
        self._cluster = cluster
        self._optype = optype
        if ((self._optype != 'pkginstall') and (self._optype != 'pkgupgrade')
                and (self._optype != 'bininstall')
                and (self._optype != 'binupgrade')):
            raise Exception(
                "Invalid cluster ansible playbook installer type: %s" %
                self._optype)
        self._pkgfilenameparser = PkgFileNameParser()

        self._ansible_file = ""
        self._extra_vars = ""
        self._inventory_filename = "infinidb"