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=bc7eb861dbb2e2d5682d319421c6061c4dff365a;hb=db5622a08830a8f6cd2a3955f7cced99e1705ec5;hpb=bca7bcede75d4fa3713a2317b87820d4d3439b7b diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml index bc7eb861db..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,15 +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 @@ -74,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