def update_system_dependencies(): deb.uptodate_index(max_age={'hour': 1}) deb.packages([ 'python-software-properties', 'build-essential', 'python-dev', 'python-pip', 'python-virtualenv', 'postgresql', 'postgresql-server-dev-9.3', 'nginx', 'libxml2', 'libxml2-dev', 'libxslt1-dev', 'libxslt-dev', 'supervisor', 'libjpeg-dev', 'libtiff-dev', 'zlib1g-dev', 'git', # not required but nice to have 'tig', 'tmux', 'htop', 'ack-grep', ])
def install_dependencies(): deb.uptodate_index(max_age={'hour': 1}) deb.packages([ 'python-software-properties', 'python-dev', 'build-essential', 'nginx', 'libxslt1-dev', 'supervisor', 'git', 'tig', 'vim', 'multitail', 'curl', 'tmux', 'htop', 'ack-grep', 'libmysqlclient-dev', 'mysql-server', 'mysql-client', 'python-mysqldb', 'libjpeg-dev', 'libtiff-dev', 'zlib1g-dev', 'python-virtualenv', ])
def deb_upgrade(dist=False): 'Upgrade everything' with watch('/var/lib/apt/periodic/update-success-stamp') as update: deb.uptodate_index(max_age=3600) if update.changed: run('DEBIAN_FRONTED=noninteractive APT_LISTCHANGES_FRONTEND=none apt-get' ' -o Dpkg::Options::="--force-confnew"' ' --force-yes' ' -fuy' ' --quiet' ' upgrade') run('DEBIAN_FRONTED=noninteractive APT_LISTCHANGES_FRONTEND=none apt-get' ' -o Dpkg::Options::="--force-confnew"' ' --force-yes' ' -fuy' ' --quiet' ' autoremove')
def update_dependencies(): deb.uptodate_index(max_age={'hour': 1}) deb.packages([ 'python-software-properties', 'python-dev', 'build-essential', 'python-pip', 'nginx', 'supervisor', 'postgresql-9.3', 'postgresql-client-9.3', 'postgresql-server-dev-9.3', 'git', 'tig', 'vim-nox', 'curl', 'tmux', 'htop', 'ack-grep', ]) sudo('pip install -U pip') sudo('pip install -U virtualenv') sudo('pip install -U setproctitle')
def _update_package_index(): from fabtools.system import distrib_family family = distrib_family() if family == 'debian': from fabtools.require.deb import uptodate_index uptodate_index()