System utils & tools relatives methods

This class is for sytem relatives tools and commands

pydiploy.require.system.add_group(*args, **kwargs)[source]

Creates user’s group (=name) on a remote server

pydiploy.require.system.add_user(*args, **kwargs)[source]

Creates user on remote system

commands : string parameter to add commands in a sudoers file so that you could execute commands on remote system without PASSWORD:

execute(your_task,commands='/usr/bin/rsync,/usr/sbin/service ipsec restart')

here rsync and service ipsec restart could then be launch without password

pydiploy.require.system.check_python3_install(*args, **kwargs)[source]

Installs python 3 on ubuntu remote server

pydiploy.require.system.install_extra_packages(*args, **kwargs)[source]

Install extra packages on remote server

pydiploy.require.system.install_extra_ppa(*args, **kwargs)[source]

Install extra ppa source on remote server

pydiploy.require.system.package_installed(*args, **kwargs)[source]

Checks if a debian/ubuntu package is installed ref: http:superuser.com/questions/427318/#comment490784_427339

pydiploy.require.system.permissions(*args, **kwargs)[source]

Makes the release group-writable

pydiploy.require.system.set_locale(*args, **kwargs)[source]

Sets server’s locales

pydiploy.require.system.set_timezone(*args, **kwargs)[source]

Sets the timezone

pydiploy.require.system.update_pkg_index(*args, **kwargs)[source]

Updates packages on remote server (ubuntu/debian)

Previous topic

Releases manager relatives methods

Next topic

A simple fab file to deploy a django web app with circus/nginx using postgres and oracle

This Page