Infra: Azure - file cleanup 72/31372/2
authorTomas Alexy <tomas.alexy@pantheon.tech>
Mon, 22 Feb 2021 08:43:54 +0000 (09:43 +0100)
committerPeter Mikus <pmikus@cisco.com>
Wed, 24 Feb 2021 10:21:47 +0000 (10:21 +0000)
Signed-off-by: Tomas Alexy <tomas.alexy@pantheon.tech>
Change-Id: I8b97123711a76bf8851f6c4997e819d79364b83b

resources/tools/testbed-setup/ansible/site.yaml
resources/tools/testbed-setup/ansible/site_azure.yaml [deleted file]
resources/tools/testbed-setup/ansible/sut.yaml
resources/tools/testbed-setup/ansible/sut_azure.yaml [deleted file]
resources/tools/testbed-setup/ansible/tg.yaml
resources/tools/testbed-setup/ansible/tg_azure.yaml [deleted file]
terraform-ci-infra/3n_azure_fsv2/main.tf

index 1d755db..4436c21 100644 (file)
@@ -5,11 +5,13 @@
   tags:
     - tg
     - tg_aws
   tags:
     - tg
     - tg_aws
+    - tg_azure
 
 - import_playbook: sut.yaml
   tags:
     - sut
     - sut_aws
 
 - import_playbook: sut.yaml
   tags:
     - sut
     - sut_aws
+    - sut_azure
 
 - import_playbook: vpp_device.yaml
   tags:
 
 - import_playbook: vpp_device.yaml
   tags:
diff --git a/resources/tools/testbed-setup/ansible/site_azure.yaml b/resources/tools/testbed-setup/ansible/site_azure.yaml
deleted file mode 100644 (file)
index c60e8b8..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
----
-# file: site_azure.yaml
-
-- import_playbook: tg_azure.yaml
-  tags: tg
-
-- import_playbook: sut_azure.yaml
-  tags: sut
index 972c56b..afa4d40 100644 (file)
   remote_user: testuser
   become: yes
   become_user: root
   remote_user: testuser
   become: yes
   become_user: root
+  gather_facts: false
+  pre_tasks:
+    - name: Gathering Facts
+      gather_facts:
+      tags:
+        - always
   roles:
     - role: user_add
       tags: user_add
   roles:
     - role: user_add
       tags: user_add
     # resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml
     # - role: calibration
     #   tags: calibration
     # resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml
     # - role: calibration
     #   tags: calibration
+
+- hosts: sut_azure
+  become: yes
+  become_user: root
+  gather_facts: false
+  pre_tasks:
+    - name: Gathering Facts
+      gather_facts:
+      tags:
+        - always
+  roles:
+    - role: user_add
+      tags: user_add
+    - role: common
+      tags: common
+    - role: docker
+      tags: docker
+    - role: vpp
+      tags: vpp
+    - role: azure
+      tags: azure
+    - role: iperf
+      tags: iperf
+    - role: dpdk
+      tags: dpdk
+    - role: cleanup
+      tags: cleanup
+    # TODO: 'Check Kernel Parameters' failing in
+    # resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml
+    # - role: calibration
+    #   tags: calibration
diff --git a/resources/tools/testbed-setup/ansible/sut_azure.yaml b/resources/tools/testbed-setup/ansible/sut_azure.yaml
deleted file mode 100644 (file)
index eb1b001..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
----
-# file: sut_azure.yaml
-
-- hosts: sut
-  become: yes
-  become_user: root
-  gather_facts: false
-  pre_tasks:
-    - name: Gathering Facts
-      gather_facts:
-      tags:
-        - always
-  roles:
-    - role: user_add
-      tags: user_add
-    - role: common
-      tags: common
-    - role: docker
-      tags: docker
-    - role: vpp
-      tags: vpp
-    - role: azure
-      tags: azure
-    - role: iperf
-      tags: iperf
-    - role: dpdk
-      tags: dpdk
-    - role: cleanup
-      tags: cleanup
-#    - role: calibration
-#      tags: calibration
index 3de55e6..2b18b5d 100644 (file)
   remote_user: testuser
   become: yes
   become_user: root
   remote_user: testuser
   become: yes
   become_user: root
+  gather_facts: false
+  pre_tasks:
+    - name: Gathering Facts
+      gather_facts:
+      tags:
+        - always
   roles:
     - role: user_add
       tags: user_add
   roles:
     - role: user_add
       tags: user_add
     # resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml
     # - role: calibration
     #   tags: calibration
     # resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml
     # - role: calibration
     #   tags: calibration
+
+- hosts: tg_azure
+  become: yes
+  become_user: root
+  gather_facts: false
+  pre_tasks:
+    - name: Gathering Facts
+      gather_facts:
+      tags:
+        - always
+  roles:
+    - role: user_add
+      tags: user_add
+    - role: common
+      tags: common
+    - role: azure
+      tags: azure
+    - role: docker
+      tags: docker
+    - role: tg
+      tags: tg
+    - role: iperf
+      tags: iperf
+    - role: trex
+      tags: trex
+    - role: ab
+      tags: ab
+    - role: cleanup
+      tags: cleanup
+    # TODO: 'Check Kernel Parameters' failing in
+    # resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml
+    # - role: calibration
+    #   tags: calibration
\ No newline at end of file
diff --git a/resources/tools/testbed-setup/ansible/tg_azure.yaml b/resources/tools/testbed-setup/ansible/tg_azure.yaml
deleted file mode 100644 (file)
index 3713dc8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
----
-# file: tg_azure.yaml
-
-- hosts: tg
-  become: yes
-  become_user: root
-  gather_facts: false
-  pre_tasks:
-    - name: Gathering Facts
-      gather_facts:
-      tags:
-        - always
-  roles:
-    - role: user_add
-      tags: user_add
-    - role: common
-      tags: common
-    - role: azure
-      tags: azure
-    - role: docker
-      tags: docker
-    - role: tg
-      tags: tg
-    - role: iperf
-      tags: iperf
-    - role: trex
-      tags: trex
-    - role: ab
-      tags: ab
-    - role: cleanup
-      tags: cleanup
-#    - role: calibration
-#      tags: calibration
index 9f6739e..87d02aa 100644 (file)
@@ -487,10 +487,10 @@ resource "null_resource" "deploy_tg" {
   provisioner "ansible" {
     plays {
       playbook {
   provisioner "ansible" {
     plays {
       playbook {
-        file_path = "../../testbed-setup/ansible/site_azure.yaml"
+        file_path = "../../testbed-setup/ansible/site.yaml"
         force_handlers = true
       }
         force_handlers = true
       }
-      hosts = ["tg"]
+      hosts = ["tg_azure"]
       extra_vars = {
         ansible_python_interpreter = "/usr/bin/python3"
         azure = true
       extra_vars = {
         ansible_python_interpreter = "/usr/bin/python3"
         azure = true
@@ -511,10 +511,10 @@ resource "null_resource" "deploy_dut1" {
   provisioner "ansible" {
     plays {
       playbook {
   provisioner "ansible" {
     plays {
       playbook {
-        file_path = "../../testbed-setup/ansible/site_azure.yaml"
+        file_path = "../../testbed-setup/ansible/site.yaml"
         force_handlers = true
       }
         force_handlers = true
       }
-      hosts = ["sut"]
+      hosts = ["sut_azure"]
       extra_vars = {
         ansible_python_interpreter = "/usr/bin/python3"
         azure = true
       extra_vars = {
         ansible_python_interpreter = "/usr/bin/python3"
         azure = true
@@ -535,10 +535,10 @@ resource "null_resource" "deploy_dut2" {
   provisioner "ansible" {
     plays {
       playbook {
   provisioner "ansible" {
     plays {
       playbook {
-        file_path = "../../testbed-setup/ansible/site_azure.yaml"
+        file_path = "../../testbed-setup/ansible/site.yaml"
         force_handlers = true
       }
         force_handlers = true
       }
-      hosts = ["sut"]
+      hosts = ["sut_azure"]
       extra_vars = {
         ansible_python_interpreter = "/usr/bin/python3"
         azure = true
       extra_vars = {
         ansible_python_interpreter = "/usr/bin/python3"
         azure = true