X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftestbed-setup%2Fplaybooks%2F01-host-setup.yaml;h=4640260a2d5f9e9e376f705b42464b9d085a3d17;hp=21cef818230c33c0a15b008123ab89394515bcbe;hb=db5622a08830a8f6cd2a3955f7cced99e1705ec5;hpb=e8cb6da0c3687f63b4973ef11ee2aed43c37bd87 diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml index 21cef81823..4640260a2d 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,17 +56,19 @@ - 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 tasks: - - name: Install zlib1g-dev - apt: name=zlib1g-dev state=present - name: Install unzip apt: name=unzip state=present - name: pstate parameter @@ -76,6 +82,14 @@ - name: Install dkms apt: name=dkms state=present - name: isolcpus and pstate parameter - lineinfile: dest=/etc/default/grub regexp=^GRUB_CMDLINE_LINUX= line=GRUB_CMDLINE_LINUX="\"isolcpus={{ isolcpus }} intel_pstate=disable\"" + lineinfile: dest=/etc/default/grub regexp=^GRUB_CMDLINE_LINUX= line=GRUB_CMDLINE_LINUX="\"isolcpus={{ isolcpus }} nohz_full={{ nohz }} rcu_nocbs={{ rcu }} intel_pstate=disable\"" - name: update grub command: update-grub + - name: Install pkg-config + apt: name=pkg-config state=present + - name: Install libglib2.0-dev + apt: name=libglib2.0-dev state=present + - name: Install autoconf + apt: name=autoconf state=present + - name: Install libtool + apt: name=libtool state=present