示例#1
0
    def task_install(self,
                slavename=None,
                hostInfo=None,
                buildmaster='buildbot.twistedmatrix.com',
                port=9987,
                adminInfo='Tom Prince <*****@*****.**>',
                password=None):
        """
        Install buildslave
        """

        if slavename is None:
            slavename = env.slaves[env.host]

        if password is None:
            password = passwordFromPrivateData(slavename)

        # Twisted's dependencies
        # (ubuntu/debian version)
        package.update()
        package.install([
            packageEquivs[info.distroFamily()].get(pkg, pkg)
            for pkg in
            'python-pyasn1',
            'python-crypto',
            'python-gmpy',
            'python-gobject',
            'python-soappy',
            'python-subunit',
            'python-openssl',
            'python-dev',
            'bzr',
            'git',
            'gcc',
            'subversion',
            'python-subvertpy',
            'python-pip',
            # cpython translator
            'make',
            'gmp-devel',
            # subunit
            'cppunit-devel',
            'check-devel',
            'g++',
            'perl-devel',
            # Docs
            'texlive',
            'netpbm-progs',
            'bzip2',
            'python-sphinx',
            # For pypy translator
            'hg',
            'libffi-devel',
            'openssl-devel',
            'ncurses-devel',
            'expat-devel',
            'sqlite-devel',
            'zlib-devel',
            'bzip2-devel',
            ])
示例#2
0
 def task_install(self):
     """
     Install mailman.
     """
     debconf.setDebconfValue('mailman', 'mailman/site_languages', 'multiselect', 'en')
     debconf.setDebconfValue('mailman', 'mailman/create_site_list', 'note', '')
     package.install(['mailman'])
     put(sibpath(__file__, 'mm_cfg.py'), '/etc/mailman/mm_cfg.py', use_sudo=True)
     sudo('/usr/sbin/usermod -a -G service --home /var/lib/mailman {}'.format(self.serviceUser))
示例#3
0
 def task_install(self):
     """
     Install mailman.
     """
     debconf.setDebconfValue('mailman', 'mailman/site_languages',
                             'multiselect', 'en')
     debconf.setDebconfValue('mailman', 'mailman/create_site_list', 'note',
                             '')
     package.update()
     package.install(['mailman'])
     put(sibpath(__file__, 'mm_cfg.py'),
         '/etc/mailman/mm_cfg.py',
         use_sudo=True)
     sudo('/usr/sbin/usermod -a -G service --home /var/lib/mailman {}'.
          format(self.serviceUser))
示例#4
0
    def task_install(self):
        """
        Install diffresource.
        """
        # Bootstrap a new service environment
        self.bootstrap()

        package.install(['diffstat'])

        with settings(user=self.serviceUser):
            run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir))
            self.update()
            cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))

            run('PYTHONPATH=~/divmod/Combinator COMBINATOR_PROJECTS=~/Projects ~/divmod/Combinator/bin/chbranch Twisted trunk svn://svn.twistedmatrix.com/svn/Twisted/trunk')
示例#5
0
    def task_install(self):
        """
        Install codespeed, a benchmark reporting tool
        """
        # Bootstrap a new service environment
        self.bootstrap(python='system')

        package.install(['python-svn'])

        with settings(user=self.serviceUser):
            run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir))
            run('mkdir -p ~/data')
            pip.install('Django==1.2.7', python='system')
            self.update()
            cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))
            if env.get('installTestData'):
                self.task_installTestData()
            self.task_generateSecretKey()
示例#6
0
def bootstrap():
    """
    Prepare the machine to be able to correctly install, configure and execute
    twisted services.
    """
    sudo('apt-get update')

    package.install(['sudo'])

    # Each service specific system user shall be added to the 'service' group
    sudo('/usr/sbin/groupadd -f --system service')

    # pypy is installed with a tarball downloaded with wget.
    package.install(['wget'])
    # libssl-dev is needed for installing pyOpenSSL for PyPy.
    package.install(['libssl-dev'])

    package.install(['python2.7', 'python2.7-dev'])
    # gcc is needed for 'pip install'
    package.install(['gcc', 'python-pip'])
    # For trac
    package.install(['python-subversion', 'enscript'])
    # For equivs
    package.install(['equivs'])
    # For buildbot/codespeed
    package.install(['sqlite3'])
    # Development and deployment
    package.install(['python-virtualenv'])
    package.install(['python-twisted', 'python-openssl'])
    pypy.install()
    authbind.install()
    git.install()
    bazaar.install()
    postgres.install()

    sshConfig()
示例#7
0
def install():
    package.install(['authbind'])
示例#8
0
文件: base.py 项目: tomprince/braid
def bootstrap():
    """
    Prepare the machine to be able to correctly install, configure and execute
    twisted services.
    """

    # Each service specific system user shall be added to the 'service' group
    sudo('/usr/sbin/groupadd -f --system service')

    package.install(['python2.7', 'python2.7-dev'])
    # gcc is needed for 'pip install'
    package.install(['gcc', 'python-pip'])
    # For trac
    package.install(['python-subversion', 'enscript'])
    # For equivs
    package.install(['equivs'])
    # For buildbot/codespeed
    package.install(['sqlite3'])
    # Development and deployment
    package.install(['python-virtualenv'])
    package.install(['python-twisted', 'python-openssl'])
    pypy.install()
    authbind.install()
    git.install()
    bazaar.install()
    postgres.install()

    sshConfig()
示例#9
0
def bootstrap():
    """
    Prepare the machine to be able to correctly install, configure and execute
    twisted services.
    """
    sudo('apt-get update')

    package.install(['sudo'])

    # Each service specific system user shall be added to the 'service' group
    sudo('/usr/sbin/groupadd -f --system service')

    # pypy is installed with a tarball downloaded with wget.
    package.install(['wget'])
    # libssl-dev is needed for installing pyOpenSSL for PyPy.
    package.install(['libssl-dev', 'libffi-dev'])

    package.install(['python2.7-dev', 'pypy-dev' ])

    # We don't have pip for python2.7 on Ubuntu 20.04
    sudo('curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py')
    sudo('python2 get-pip.py')
    sudo('pip2 install virtualenv')

    # gcc and svn is needed for 'pip install'
    package.install(['gcc', 'subversion'])
    # For trac
    package.install(['enscript', 'python-subversion'])
    # For equivs
    package.install(['equivs'])
    # For buildbot/codespeed
    package.install(['sqlite3'])
    authbind.install()
    git.install()
    postgres.install()

    sshConfig()
示例#10
0
def install():
    package.install(['postgresql-12'])
示例#11
0
def install():
    package.install(['bzr'])
示例#12
0
def install():
    package.install(['postgresql-9.1', 'postgresql-server-dev-9.1'])
示例#13
0
def install():
    package.install(['git'])
示例#14
0
文件: postgres.py 项目: rodrigc/braid
def install():
    try:
        package.install(['postgresql-9.1', 'postgresql-server-dev-9.1'])
    except:
        package.install(['postgresql-9.3', 'postgresql-server-dev-9.3'])
示例#15
0
文件: bazaar.py 项目: tomprince/braid
def install():
    package.install(['bzr'])
示例#16
0
def install():
    package.install(['postgresql-9.1', 'postgresql-server-dev-9.1'])
示例#17
0
文件: git.py 项目: tomprince/braid
def install():
    package.install(['git'])