Utility that installs the packages needed to setup and run an Autotest server. Current distro support includes Red Hat, Fedora and Ubuntu.
Signed-off-by: Cleber Rosa <[email protected]> --- .../autotest-install-packages-deps | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 installation_support/autotest-install-packages-deps diff --git a/installation_support/autotest-install-packages-deps b/installation_support/autotest-install-packages-deps new file mode 100755 index 0000000..a1f4e42 --- /dev/null +++ b/installation_support/autotest-install-packages-deps @@ -0,0 +1,40 @@ +#!/usr/bin/env python + + +""" +This script attemps to make it trivial to create install the packages +needed for the operation of an Autotest server +""" + + +try: + import autotest.common as common +except ImportError: + import common + + +from autotest.client.shared import software_manager + + +FEDORA_REDHAT_PKGS = ['unzip', 'wget', 'httpd', 'mod_wsgi', 'Django', + 'mysql-server', 'MySQL-python', 'git', 'java-devel', + 'python-imaging', 'python-crypto', 'python-paramiko', + 'python-httplib2', 'numpy', 'python-matplotlib', + 'urw-fonts', 'python-atfork', 'selinux-policy', + 'selinux-policy-targeted', 'policycoreutils-python'] + +UBUNTU_PKGS = ['unzip', 'wget', 'gnuplot', 'makepasswd', 'apache2-mpm-prefork', + 'libapache2-mod-wsgi', 'python-django', 'mysql-server', + 'python-mysqldb', 'git', 'openjdk-7-jre-headless', + 'python-imaging', 'python-crypto', 'python-paramiko', + 'python-httplib2', 'python-numpy', 'python-matplotlib', + 'python-setuptools', 'python-simplejson', 'libgwt-dev-java'] + + +PKG_DEPS = {'Fedora' : FEDORA_REDHAT_PKGS, + 'Red Hat' : FEDORA_REDHAT_PKGS, + 'Ubuntu' : UBUNTU_PKGS} + + +if __name__ == '__main__': + software_manager.install_distro_packages(PKG_DEPS) -- 1.7.11.7 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
