aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/azure
diff options
context:
space:
mode:
authorMaros Mullner <maros.mullner@pantheon.tech>2020-03-13 09:43:04 +0100
committerPeter Mikus <pmikus@cisco.com>2020-03-16 06:56:43 +0000
commitcd64c25a7e245264554b958d2a33e0afbde8dc8e (patch)
treeed4d601983a5cbdd69a78f518cb02c0a1164d68b /resources/tools/testbed-setup/ansible/roles/azure
parent41b29c01d434b4536c33903423e1b28900e829bd (diff)
Ansible fixes for AZURE.
Signed-off-by: Maros Mullner <maros.mullner@pantheon.tech> Change-Id: I071c5184dcbc25a8bc6b53d65d9a3478194c72fc
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/azure')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/azure/handlers/main.yaml7
-rw-r--r--resources/tools/testbed-setup/ansible/roles/azure/tasks/main.yaml11
2 files changed, 18 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/azure/handlers/main.yaml b/resources/tools/testbed-setup/ansible/roles/azure/handlers/main.yaml
index c0b3ea970f..246e8dbfe0 100644
--- a/resources/tools/testbed-setup/ansible/roles/azure/handlers/main.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/azure/handlers/main.yaml
@@ -6,3 +6,10 @@
reboot_timeout: 3600
tags:
- reboot-server
+
+- name: Reload systemd-modules
+ systemd:
+ name: "systemd-modules-load"
+ state: "restarted"
+ tags:
+ - reload-systemd-modules
diff --git a/resources/tools/testbed-setup/ansible/roles/azure/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/azure/tasks/main.yaml
index 38c0b7c7f8..3513bb7132 100644
--- a/resources/tools/testbed-setup/ansible/roles/azure/tasks/main.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/azure/tasks/main.yaml
@@ -11,5 +11,16 @@
- "ib_uverbs"
- "mlx4_ib"
- "mlx5_ib"
+ notify: "Reload systemd-modules"
tags:
- load-kernel-modules
+
+- name: Azure - Performance Tuning - Adjust nr_hugepages
+ sysctl:
+ name: "vm.nr_hugepages"
+ value: "8192"
+ state: "present"
+ sysctl_file: "/etc/sysctl.d/90-csit.conf"
+ reload: "yes"
+ tags:
+ - set-sysctl