aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/common
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/common')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/common/defaults/main.yaml59
-rw-r--r--resources/tools/testbed-setup/ansible/roles/common/files/grub_aarch6434
-rw-r--r--resources/tools/testbed-setup/ansible/roles/common/files/grub_x86_6434
-rw-r--r--resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml8
-rw-r--r--resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml113
5 files changed, 0 insertions, 248 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/common/defaults/main.yaml b/resources/tools/testbed-setup/ansible/roles/common/defaults/main.yaml
deleted file mode 100644
index 5517b20e1f..0000000000
--- a/resources/tools/testbed-setup/ansible/roles/common/defaults/main.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
----
-# file: roles/common/defaults/main.yaml
-
-packages: "{{ packages_base + packages_by_distro[ansible_distribution | lower] + packages_by_arch[ansible_machine] }}"
-
-packages_base:
- - "autoconf"
- - "cgroup-tools"
- - "dkms"
- - "iperf3"
- - "linux-tools-common"
- - "ninja-build"
- - "qemu-system"
- - "socat"
- - "unzip"
- - "virtualenv"
-
-packages_by_distro:
- ubuntu:
- - "build-essential"
- - "libpcap-dev"
- - "net-tools"
- - "python-all"
- - "python-apt"
- - "python-cffi"
- - "python-cffi-backend"
- - "python-dev"
- - "python-pip"
- - "python-setuptools"
- - "python3-all"
- - "python3-apt"
- - "python3-cffi"
- - "python3-cffi-backend"
- - "python3-dev"
- - "python3-pip"
- - "python3-setuptools"
-
-packages_by_arch:
- aarch64:
- - "gfortran"
- - "libblas-dev"
- - "libffi-dev"
- - "liblapack-dev"
- - "libssl-dev"
- x86_64:
- - []
-
-# Proxy settings: Uncomment and fill the proper values. These variables will be
-# set globally by writing into /etc/environment file on target machine.
-#proxy_env:
-# http_proxy: http://proxy.com:80
-# HTTP_PROXY: http://proxy.com:80
-# https_proxy: http://proxy.com:80
-# HTTPS_PROXY: http://proxy.com:80
-# ftp_proxy: http://proxy.com:80
-# FTP_PROXY: http://proxy.com:80
-# no_proxy: localhost,127.0.0.1,{{ ansible_default_ipv4.address }}
-# NO_PROXY: localhost,127.0.0.1,{{ ansible_default_ipv4.address }}
-
diff --git a/resources/tools/testbed-setup/ansible/roles/common/files/grub_aarch64 b/resources/tools/testbed-setup/ansible/roles/common/files/grub_aarch64
deleted file mode 100644
index 38a2cc38e0..0000000000
--- a/resources/tools/testbed-setup/ansible/roles/common/files/grub_aarch64
+++ /dev/null
@@ -1,34 +0,0 @@
-# If you change this file, run 'update-grub' afterwards to update
-# /boot/grub/grub.cfg.
-# For full documentation of the options in this file, see:
-# info -f grub -n 'Simple configuration'
-
-GRUB_DEFAULT=0
-GRUB_TIMEOUT=10
-GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
-GRUB_CMDLINE_LINUX_DEFAULT="console=ttyAMA0,115200n8"
-GRUB_CMDLINE_LINUX=""
-
-# Uncomment to enable BadRAM filtering, modify to suit your needs
-# This works with Linux (no patch required) and with any kernel that obtains
-# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
-#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
-
-# Uncomment to disable graphical terminal (grub-pc only)
-#GRUB_TERMINAL=console
-GRUB_TERMINAL=serial
-GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
-
-# The resolution used on graphical terminal
-# note that you can use only modes which your graphic card supports via VBE
-# you can see them in real GRUB with the command `vbeinfo'
-#GRUB_GFXMODE=640x480
-
-# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
-#GRUB_DISABLE_LINUX_UUID=true
-
-# Uncomment to disable generation of recovery mode menu entries
-#GRUB_DISABLE_RECOVERY="true"
-
-# Uncomment to get a beep at grub start
-#GRUB_INIT_TUNE="480 440 1"
diff --git a/resources/tools/testbed-setup/ansible/roles/common/files/grub_x86_64 b/resources/tools/testbed-setup/ansible/roles/common/files/grub_x86_64
deleted file mode 100644
index d4e27b3f0f..0000000000
--- a/resources/tools/testbed-setup/ansible/roles/common/files/grub_x86_64
+++ /dev/null
@@ -1,34 +0,0 @@
-# If you change this file, run 'update-grub' afterwards to update
-# /boot/grub/grub.cfg.
-# For full documentation of the options in this file, see:
-# info -f grub -n 'Simple configuration'
-
-GRUB_DEFAULT=0
-GRUB_TIMEOUT=10
-GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
-GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8"
-GRUB_CMDLINE_LINUX=""
-
-# Uncomment to enable BadRAM filtering, modify to suit your needs
-# This works with Linux (no patch required) and with any kernel that obtains
-# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
-#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
-
-# Uncomment to disable graphical terminal (grub-pc only)
-#GRUB_TERMINAL=console
-GRUB_TERMINAL=serial
-GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
-
-# The resolution used on graphical terminal
-# note that you can use only modes which your graphic card supports via VBE
-# you can see them in real GRUB with the command `vbeinfo'
-#GRUB_GFXMODE=640x480
-
-# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
-#GRUB_DISABLE_LINUX_UUID=true
-
-# Uncomment to disable generation of recovery mode menu entries
-#GRUB_DISABLE_RECOVERY="true"
-
-# Uncomment to get a beep at grub start
-#GRUB_INIT_TUNE="480 440 1"
diff --git a/resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml b/resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml
deleted file mode 100644
index e7327d3944..0000000000
--- a/resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-# file: roles/common/handlers/main.yaml
-
-- name: Reboot server
- reboot:
- reboot_timeout: 3600
- tags:
- - reboot-server
diff --git a/resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml
deleted file mode 100644
index e60b32ae2a..0000000000
--- a/resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml
+++ /dev/null
@@ -1,113 +0,0 @@
----
-# file: roles/common/tasks/main.yaml
-
-- name: Add permanent proxy settings
- lineinfile:
- path: "/etc/environment"
- state: "present"
- line: "{{ item.key }}={{ item.value }}"
- with_dict: "{{ proxy_env }}"
- when: proxy_env is defined
- tags:
- - set-proxy
-
-- name: Install Distribution - Release - Machine Prerequisites
- package:
- name: "{{ packages | flatten(levels=1) }}"
- state: latest
- update_cache: true
- tags:
- - install-dependencies
-
-- name: Install CSIT PIP requirements
- pip:
- name:
- - "ecdsa==0.13.3"
- - "paramiko==2.6.0"
- - "pycrypto==2.6.1"
- - "pypcap==1.2.3"
- - "PyYAML==5.1.1"
- - "requests==2.22.0"
- - "robotframework==3.1.2"
- - "scapy==2.4.3"
- - "scp==0.13.2"
- - "ansible==2.7.8"
- - "dill==0.2.8.2"
- - "numpy==1.17.3"
- - "hdrhistogram==0.6.1"
- - "plotly==4.1.1"
- - "PTable==0.9.2"
- - "Sphinx==2.2.1"
- - "sphinx-rtd-theme==0.4.0"
- - "sphinxcontrib-programoutput==0.15"
- - "sphinxcontrib-robotdoc==0.11.0"
- - "alabaster==0.7.12"
- - "Babel==2.7.0"
- - "bcrypt==3.1.7"
- - "certifi==2019.9.11"
- - "cffi==1.13.2"
- - "chardet==3.0.4"
- - "cryptography==2.8"
- - "docutils==0.15.2"
- - "future==0.18.2"
- - "idna==2.8"
- - "imagesize==1.1.0"
- - "Jinja2==2.10.3"
- - "MarkupSafe==1.1.1"
- - "packaging==19.2"
- - "pbr==5.4.3"
- - "pycparser==2.19"
- - "Pygments==2.4.2"
- - "PyNaCl==1.3.0"
- - "pyparsing==2.4.4"
- - "python-dateutil==2.8.1"
- - "pytz==2019.3"
- - "retrying==1.3.3"
- - "six==1.13.0"
- - "snowballstemmer==2.0.0"
- - "sphinxcontrib-applehelp==1.0.1"
- - "sphinxcontrib-devhelp==1.0.1"
- - "sphinxcontrib-htmlhelp==1.0.2"
- - "sphinxcontrib-jsmath==1.0.1"
- - "sphinxcontrib-qthelp==1.0.2"
- - "sphinxcontrib-serializinghtml==1.1.3"
- - "urllib3==1.25.6"
- tags:
- - install-pip
-
-- name: Install CSIT PIP requirements - Pandas and SciPy workaround
- pip:
- name:
- - "pandas==0.25.3"
- - "scipy==1.1.0"
- tags:
- - install-pip
-
-- name: Install Meson (repository version is too old)
- pip:
- name:
- - "meson==0.47.1"
- tags:
- - install-meson
-
-- name: Set sudoers admin
- lineinfile:
- path: "/etc/sudoers"
- state: "present"
- regexp: "^%admin ALL="
- line: "%admin ALL=(ALL) ALL"
- validate: "/usr/sbin/visudo -cf %s"
- tags:
- - set-sudoers
-
-- name: Set sudoers sudo
- lineinfile:
- path: "/etc/sudoers"
- state: "present"
- regexp: "^%sudo"
- line: "%sudo ALL=(ALL:ALL) NOPASSWD: ALL"
- validate: "/usr/sbin/visudo -cf %s"
- tags:
- - set-sudoers
-
-- meta: flush_handlers