aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/testbed-setup/playbooks/01-host-setup.yaml37
-rw-r--r--resources/tools/testbed-setup/playbooks/files/interfaces_physical14
-rw-r--r--resources/tools/testbed-setup/playbooks/files/interfaces_virl (renamed from resources/tools/testbed-setup/playbooks/files/interfaces)0
3 files changed, 46 insertions, 5 deletions
diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
index 4401fbb958..a9e9989cfe 100644
--- a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
+++ b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
@@ -9,8 +9,6 @@
template: src=files/hosts dest=/etc/hosts owner=root group=root mode=644
- name: copy hostname file
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 grub file
template: src=files/grub dest=/etc/default/grub owner=root group=root mode=644
- name: update grub
@@ -31,10 +29,14 @@
apt: name=socat state=present
- name: install qemu
apt: name=qemu-system-x86 state=present
+ - name: Install packages to allow apt to use a repository over HTTPS
+ apt: name=apt-transport-https state=present
- hosts: virl
remote_user: testuser
sudo: yes
tasks:
+ - name: interfaces file
+ template: src=files/interfaces_virl dest=/etc/network/interfaces owner=root group=root mode=644
- name: Add VIRL user
user: name=virl shell=/bin/bash comment="VIRL user" password="$6$mJPlK5FKLar6$xxXPP0LRhC7T1yhHtym18Z3nKZweTtfTxzi1WpvVHJ0U/Em1UWcHqfMhRApFp0rsY9jHRuL6FfeFbKPN..uDK."
- name: Add VIRL user to sudoers
@@ -69,6 +71,8 @@
remote_user: testuser
sudo: yes
tasks:
+ - name: interfaces file
+ template: src=files/interfaces_physical dest=/etc/network/interfaces owner=root group=root mode=644
- 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
@@ -89,8 +93,6 @@
copy: src=files/cpufrequtils dest=/etc/default/cpufrequtils owner=root group=root mode=0644
- name: Disable IRQ load balancing
copy: src=files/irqbalance dest=/etc/default/irqbalance owner=root group=root mode=0644
- - name: Pinning of IRQs
- command: for l in `ls /proc/irq`; do echo 1 | sudo tee /proc/irq/$l/smp_affinity; done
- name: Disable ondemand
service: name=ondemand enabled=no
- name: Install cgroup-support
@@ -141,6 +143,31 @@
- name: Install lxc
apt: name=lxc state=present
- name: Disable 80-vpp.conf
- command: ln -s /dev/null /etc/sysctl.d/80-vpp.conf
+ file:
+ src: /dev/null
+ dest: /etc/sysctl.d/80-vpp.conf
+ state: link
- name: Install java
apt: name=openjdk-8-jdk state=present
+ - name: Add Docker's official GPG key
+ apt_key:
+ url: "https://download.docker.com/linux/ubuntu/gpg"
+ state: present
+ - name: Add Docker's stable repository
+ apt_repository:
+ repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
+ state: present
+ - name: Install Docker CE
+ apt: name=docker-ce state=present
+ - name: Add Kubernetes's official GPG key
+ apt_key:
+ url: "https://packages.cloud.google.com/apt/doc/apt-key.gpg"
+ state: present
+ - name: Add Kubernetes's stable repository
+ apt_repository:
+ repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
+ state: present
+ - name: Install Kubernetes kubelet
+ apt: name=kubelet state=present
+ - name: Install Kubernetes kubeadm
+ apt: name=kubeadm state=present
diff --git a/resources/tools/testbed-setup/playbooks/files/interfaces_physical b/resources/tools/testbed-setup/playbooks/files/interfaces_physical
new file mode 100644
index 0000000000..734d8cd18f
--- /dev/null
+++ b/resources/tools/testbed-setup/playbooks/files/interfaces_physical
@@ -0,0 +1,14 @@
+# This file describes the network interfaces available on your system
+# and how to activate them. For more information, see interfaces(5).
+
+# The loopback network interface
+auto lo
+iface lo inet loopback
+
+# The primary network interface
+auto {{ ansible_default_ipv4["interface"] }}
+iface {{ ansible_default_ipv4["interface"] }} inet static
+ address {{ ansible_default_ipv4["address"] }}
+ netmask {{ ansible_default_ipv4["netmask"] }}
+ gateway {{ ansible_default_ipv4["gateway"] }}
+ dns-nameservers 199.204.44.24 199.204.47.54
diff --git a/resources/tools/testbed-setup/playbooks/files/interfaces b/resources/tools/testbed-setup/playbooks/files/interfaces_virl
index 25ea35a0c5..25ea35a0c5 100644
--- a/resources/tools/testbed-setup/playbooks/files/interfaces
+++ b/resources/tools/testbed-setup/playbooks/files/interfaces_virl