Пример #1
0
def ldap():
    '''Install dependencies to run the slapd server'''
    dist = distro.detect_distro()

    if dist.pkgman == PkgMan.Apt:
        pkgs = LDAP_DISTRO_DEB_RDEPS
        package_manager.sh_apt_install(pkgs)

    elif dist.pkgman == PkgMan.Yum:
        pkgs = LDAP_DISTRO_RPM_RDEPS
        package_manager.sh_yum_install(pkgs)
Пример #2
0
def zcp():
    '''Install dependencies to run zarafa services'''
    dist = distro.detect_distro()

    if dist.pkgman == PkgMan.Apt:
        pkgs = [
            'mysql-server',
        ]

    elif dist.pkgman == PkgMan.Yum:
        pkgs = [
            'mysql-server',
        ]
        package_manager.sh_yum_install(pkgs)
Пример #3
0
def qa():
    '''Install dependencies to run qa tasks'''
    dist = distro.detect_distro()

    if dist.pkgman == PkgMan.Apt:
        pkgs = [
            'build-essential',
            'python-dev',
        ]
        package_manager.sh_apt_install(pkgs)

    elif dist.pkgman == PkgMan.Yum:
        pkgs = [
            '"Development Tools"',
            'python-devel',
        ]
        package_manager.sh_yum_install(pkgs)

    pypkgs = CMDLINE_PYTHON_RDEPS + WEBSERVICE_PYTHON_RDEPS + [
        # Development/Testing tools
        'coverage',
        'ipdbplugin',
        'nose',
        'nose-cov',
        'nose-selecttests',
        'rednose',
        'beautifulsoup4',
        'flake8',

        'ipdb',
        'ipython',
    ]

    if sys.version_info < (2, 7):
        pypkgs.extend([
            # Development/Testing tools
            'unittest2',
        ])

    package_manager.sh_pip_install(pypkgs)
Пример #4
0
def webservice():
    '''Install dependencies to run the webservice'''
    dist = distro.detect_distro()

    if dist.pkgman == PkgMan.Apt:
        pkgs = [
            'build-essential',
            'python-dev',
            'libldap2-dev',
            'libsasl2-dev',

            'python-ldap',

            'libapache2-mod-wsgi',
        ]
        package_manager.sh_apt_install(pkgs)

    elif dist.pkgman == PkgMan.Yum:
        pkgs = [
            '"Development Tools"',
            'python-devel',
            'openldap-devel',
            'cyrus-sasl-devel',

            'python-ldap',

            'mod_wsgi',
        ]
        package_manager.sh_yum_install(pkgs)

    pypkgs = WEBSERVICE_PYTHON_RDEPS + [
        # Development/Testing tools
        'django-extensions',
        'ipython',
        'ipdb',
    ]

    package_manager.sh_pip_install(pypkgs)
Пример #5
0
def pkg():
    '''Install dependencies to run qa tasks'''
    dist = distro.detect_distro()

    if dist.pkgman == PkgMan.Apt:
        pkgs = [
            'dh-make',
            'dpkg-dev',
            'rpm',

            # to build python-ldap (dep pulled in by pumpkin)
            'build-essential',
            'python-dev',
            'libldap2-dev',
            'libsasl2-dev',
        ]
        package_manager.sh_apt_install(pkgs)

    elif dist.pkgman == PkgMan.Yum:
        pkgs = [
            'rpm-build',

            # to build python-ldap (dep pulled in by pumpkin)
            '"Development Tools"',
            'python-devel',
            'openldap-devel',
            'cyrus-sasl-devel',
        ]
        package_manager.sh_yum_install(pkgs)

    pypkgs = [
        'jinja2',
        'virtualenv',
    ]

    package_manager.sh_pip_install(pypkgs)