aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible')
-rw-r--r--fdio.infra.ansible/roles/calibration/defaults/main.yaml30
-rw-r--r--fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml2
-rw-r--r--fdio.infra.ansible/roles/calibration/tasks/main.yaml26
-rw-r--r--fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml35
4 files changed, 3 insertions, 90 deletions
diff --git a/fdio.infra.ansible/roles/calibration/defaults/main.yaml b/fdio.infra.ansible/roles/calibration/defaults/main.yaml
index 0b7362b01f..dac42b84d4 100644
--- a/fdio.infra.ansible/roles/calibration/defaults/main.yaml
+++ b/fdio.infra.ansible/roles/calibration/defaults/main.yaml
@@ -1,30 +1,6 @@
---
# file: defaults/main.yaml
-# Packages to install.
-packages: "{{ packages_base + packages_by_distro[ansible_distribution|lower][ansible_distribution_release] + packages_by_arch[ansible_machine] }}"
-
-packages_base:
- - []
-
-packages_by_distro:
- ubuntu:
- jammy:
- - "build-essential"
- - "dmidecode"
- noble:
- - "build-essential"
- - "dmidecode"
- debian:
- bullseye:
- - "build-essential"
-
-packages_by_arch:
- aarch64:
- - []
- x86_64:
- - []
-
# Kernel version to check.
kernel_version: "{{ kernel_version_by_distro_by_arch[ansible_distribution | lower][ansible_distribution_release][ansible_machine] }}"
@@ -46,8 +22,4 @@ kernel_version_by_distro_by_arch:
- "6.8.0-45-generic"
debian:
bullseye:
- - "5.15.0-107-generic"
-
-pma_directory: "/tmp/pma_tools"
-jitter_core: 7
-jitter_iterations: 20
+ - "5.15.0-107-generic" \ No newline at end of file
diff --git a/fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml b/fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml
deleted file mode 100644
index e01245556a..0000000000
--- a/fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-# file: tasks/aarch64.yaml
diff --git a/fdio.infra.ansible/roles/calibration/tasks/main.yaml b/fdio.infra.ansible/roles/calibration/tasks/main.yaml
index 9db95a87a0..77c9a43430 100644
--- a/fdio.infra.ansible/roles/calibration/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/calibration/tasks/main.yaml
@@ -1,23 +1,7 @@
---
# file: tasks/main.yaml
-- name: Update Package Cache (APT)
- ansible.builtin.apt:
- update_cache: true
- cache_valid_time: 3600
- when:
- - ansible_distribution|lower == 'ubuntu'
- tags:
- - calibration-inst-prerequisites
-
-- name: Prerequisites
- ansible.builtin.package:
- name: "{{ packages | flatten(levels=1) }}"
- state: latest
- tags:
- - calibration-inst-prerequisites
-
-- name: Check Kernel Parameters
+- name: "Check Kernel Parameters"
ansible.builtin.assert:
that:
- item in ansible_cmdline
@@ -29,7 +13,7 @@
tags:
- check-kernel-params
-- name: Check Kernel Version
+- name: "Check Kernel Version"
ansible.builtin.assert:
that:
- ansible_kernel not in kernel_version_by_distro_by_arch
@@ -37,9 +21,3 @@
success_msg: "Kernel version match."
tags:
- check-kernel-version
-
-- name: "{{ ansible_machine }} Specific"
- include_tasks: "{{ ansible_machine }}.yaml"
- tags:
- - check-machine-specific
- - check-jitter-tool
diff --git a/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml b/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml
deleted file mode 100644
index dd4e307ca6..0000000000
--- a/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml
+++ /dev/null
@@ -1,35 +0,0 @@
----
-# file: tasks/x86_64.yaml
-
-- name: Clone PMA Tool
- ansible.builtin.git:
- repo: "https://gerrit.fd.io/r/pma_tools"
- dest: "{{ pma_directory }}"
- tags:
- - check-jitter-tool
-
-- name: Compile PMA Tool
- ansible.builtin.raw: "cd {{ pma_directory }}/jitter && make"
- tags:
- - check-jitter-tool
-
-- name: Calibration - Run Jitter Tool
- ansible.builtin.shell: "{{ pma_directory }}/jitter/jitter -c {{ jitter_core }} -i {{ jitter_iterations }} -f"
- become: true
- async: 60
- poll: 0
- ignore_errors: true
- register: jitter_async
- tags:
- - check-jitter-tool
-
-- name: Check sync status
- ansible.builtin.async_status:
- jid: "{{ jitter_async.ansible_job_id }}"
- register: "jitter_poll_results"
- until: jitter_poll_results.finished
- retries: 30
-
-- ansible.builtin.debug: var=jitter_poll_results.stdout_lines
- tags:
- - check-jitter-tool