diff options
author | pmikus <pmikus@cisco.com> | 2016-10-06 08:39:28 +0100 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2016-10-09 11:52:13 +0000 |
commit | a7568a2eabf0872d25260c14ec084cb3d5ffb0f3 (patch) | |
tree | ca04df304087388812b255dbb5e98cde0f6a648c /resources/tools/testbed-setup/playbooks/01-host-setup.yaml | |
parent | f6d229a1498a0b1f0ad7c76ece111e47d20f90f9 (diff) |
Update ansible playbooks with documentation
- Update ansible playbooks scripts for Ubuntu 16.04.1 with latest
requirement for setting of physical hosts including VIRL
- Update readme file
Change-Id: I94e7ab62f729ea2eefb2a6640d0c53f3abc54bac
Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/playbooks/01-host-setup.yaml')
-rw-r--r-- | resources/tools/testbed-setup/playbooks/01-host-setup.yaml | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml index b4907c6d45..7158ce2428 100644 --- a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml +++ b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml @@ -3,6 +3,8 @@ remote_user: testuser sudo: yes tasks: + - name: install python-apt + raw: apt-get update && apt-get install python-apt -y -q - name: copy sudoers file copy: src=files/sudoers dest=/etc/sudoers.d/testuser owner=root group=root mode=660 - name: copy hosts file @@ -11,10 +13,6 @@ template: src=files/hostname dest=/etc/hostname owner=root group=root mode=644 - name: interfaces file template: src=files/interfaces dest=/etc/network/interfaces owner=root group=root mode=644 - - name: copy ttyS0 file - template: src=files/ttyS0 dest=/etc/init/ttyS0.conf owner=root group=root mode=644 - - name: start ttyS0 - service: name=ttyS0 state=started - name: copy grub file template: src=files/grub dest=/etc/default/grub owner=root group=root mode=644 - name: update grub @@ -29,6 +27,8 @@ apt: name=crudini state=present - name: install expect apt: name=expect state=present + - name: install qemu + apt: name=qemu-system-x86 state=present - hosts: virl remote_user: testuser sudo: yes @@ -39,16 +39,22 @@ copy: src=files/sudoers_virl dest=/etc/sudoers.d/virl owner=root group=root mode=660 - name: Set VIRL user authorized key authorized_key: user=virl key="{{ lookup('file', '/home/testuser/.ssh/id_rsa.pub') }}" - - name: install qemu (as a workaround) - apt: name=qemu-system-x86 state=present - hosts: tg:sut remote_user: testuser sudo: yes tasks: + - name: copy sysctl file + template: src=files/90-csit dest=/etc/sysctl.d/90-csit.conf owner=root group=root mode=644 + - name: isolcpus and pstate parameter + lineinfile: dest=/etc/default/grub regexp=^GRUB_CMDLINE_LINUX= line=GRUB_CMDLINE_LINUX="\"isolcpus={{ isolcpus }} nohz_full={{ isolcpus }} rcu_nocbs={{ isolcpus }} intel_pstate=disable\"" + - name: update grub + command: update-grub - name: Install python-dev apt: name=python-dev state=present - name: Install python-virtualenv apt: name=python-virtualenv state=present + - name: Install python pip + apt: name=python-pip state=present - name: Install cpufrequtils apt: name=cpufrequtils state=present - name: Set cpufrequtils defaults @@ -71,22 +77,12 @@ tasks: - name: Install unzip apt: name=unzip state=present - - name: pstate parameter - lineinfile: dest=/etc/default/grub regexp=^GRUB_CMDLINE_LINUX= line=GRUB_CMDLINE_LINUX="\"intel_pstate=disable\"" - - name: update grub - command: update-grub - hosts: sut remote_user: testuser sudo: yes tasks: - - name: copy sysctl file - template: src=files/90-csit dest=/etc/sysctl.d/90-csit.conf owner=root group=root mode=644 - 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 }} 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 @@ -95,3 +91,5 @@ apt: name=autoconf state=present - name: Install libtool apt: name=libtool state=present + - name: Disable 80-vpp.conf + command: ln -s /dev/null /etc/sysctl.d/80-vpp.conf |