From 9ac28a0341f378009bd0af9d8a80ed86463f085f Mon Sep 17 00:00:00 2001 From: Carsten Koester Date: Sat, 11 Jun 2016 16:32:56 -0400 Subject: CSIT-157: HW testbed installation scripts to include PIP requirements Change-Id: I457d5c2a7cc90afaae929617802d126e6a045a66 Signed-off-by: Carsten Koester Signed-off-by: pmikus --- resources/tools/testbed-setup/playbooks/01-host-setup.yaml | 12 +++++++++--- .../tools/testbed-setup/playbooks/files/requirements.txt | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) create mode 120000 resources/tools/testbed-setup/playbooks/files/requirements.txt (limited to 'resources/tools/testbed-setup') diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml index f2822d285a..de32beb361 100644 --- a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml +++ b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml @@ -45,6 +45,10 @@ remote_user: testuser sudo: yes tasks: + - name: Install python-dev + apt: name=python-dev state=present + - name: Install python-virtualenv + apt: name=python-virtualenv state=present - name: Install cpufrequtils apt: name=cpufrequtils state=present - name: Set cpufrequtils defaults @@ -52,13 +56,15 @@ - name: Disable IRQ load balancing copy: src=files/irqbalance dest=/etc/default/irqbalance owner=root group=root mode=0644 - name: Disable ondemand - shell: update-rc.d ondemand disable - - name: Install 4.2 kernel - apt: name=linux-generic-lts-xenial state=present + service: name=ondemand enabled=no - name: Install cgroup-support apt: name=cgroup-bin state=present - name: Install zlib1g-dev apt: name=zlib1g-dev state=present + - name: Copy Python requirements file + copy: src=files/requirements.txt dest=/tmp/requirements.txt + - name: Install PIP requirements + pip: requirements=/tmp/requirements.txt - hosts: tg remote_user: testuser sudo: yes diff --git a/resources/tools/testbed-setup/playbooks/files/requirements.txt b/resources/tools/testbed-setup/playbooks/files/requirements.txt new file mode 120000 index 0000000000..f96397df02 --- /dev/null +++ b/resources/tools/testbed-setup/playbooks/files/requirements.txt @@ -0,0 +1 @@ +../../../../../requirements.txt \ No newline at end of file -- cgit 1.2.3-korg