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.yaml6
-rw-r--r--fdio.infra.ansible/roles/calibration/tasks/main.yaml50
-rw-r--r--fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml6
3 files changed, 12 insertions, 50 deletions
diff --git a/fdio.infra.ansible/roles/calibration/defaults/main.yaml b/fdio.infra.ansible/roles/calibration/defaults/main.yaml
index 5dc3330e08..302f6d9663 100644
--- a/fdio.infra.ansible/roles/calibration/defaults/main.yaml
+++ b/fdio.infra.ansible/roles/calibration/defaults/main.yaml
@@ -12,6 +12,9 @@ packages_by_distro:
jammy:
- "build-essential"
- "dmidecode"
+ debian:
+ bullseye:
+ - "build-essential"
packages_by_arch:
aarch64:
@@ -31,6 +34,9 @@ kernel_version_by_distro_by_arch:
- "5.4.0-1009-aws" # Placeholder
aarch64:
- "5.15.0-46-generic" # Placeholder
+ debian:
+ bullseye:
+ - "5.15.0-107-generic"
pma_directory: "/tmp/pma_tools"
jitter_core: 7
diff --git a/fdio.infra.ansible/roles/calibration/tasks/main.yaml b/fdio.infra.ansible/roles/calibration/tasks/main.yaml
index 5807d7e2a4..9db95a87a0 100644
--- a/fdio.infra.ansible/roles/calibration/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/calibration/tasks/main.yaml
@@ -1,7 +1,7 @@
---
-# file: roles/calibration/tasks/main.yaml
+# file: tasks/main.yaml
-- name: Inst - Update Package Cache (APT)
+- name: Update Package Cache (APT)
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
@@ -10,29 +10,13 @@
tags:
- calibration-inst-prerequisites
-- name: Inst - Prerequisites
+- name: Prerequisites
ansible.builtin.package:
name: "{{ packages | flatten(levels=1) }}"
state: latest
tags:
- calibration-inst-prerequisites
-- name: Check CPU Power States
- ansible.builtin.shell: "lscpu"
- register: current_lscpu
- changed_when: false
- tags:
- - check-cpu-frequency
-
-- name: Check CPU Power States
- ansible.builtin.assert:
- that:
- - "'CPU min MHz' not in current_lscpu.stdout or 'Intel(R) Xeon(R)' not in ansible_processor"
- fail_msg: "CPU configuration!"
- success_msg: "CPU configuration match."
- tags:
- - check-cpu-frequency
-
- name: Check Kernel Parameters
ansible.builtin.assert:
that:
@@ -54,34 +38,6 @@
tags:
- check-kernel-version
-- name: Spectre Meltdown Checker Status
- ansible.builtin.stat:
- path: "/opt/spectre-meltdown-checker.sh"
- register: spectre_meltdown_status
- tags:
- - check-spectre-meltdown
-
-- name: Get Spectre Meltdown Checker
- ansible.builtin.get_url:
- url: "https://meltdown.ovh"
- dest: "/opt/spectre-meltdown-checker.sh"
- mode: "744"
- when:
- - not spectre_meltdown_status.stat.exists
- tags:
- - check-spectre-meltdown
-
-- name: Run Spectre Meltdown Checker
- ansible.builtin.shell: "/opt/spectre-meltdown-checker.sh --no-color --sysfs-only || true"
- ignore_errors: true
- register: spectre_meltdown_sync
- tags:
- - check-spectre-meltdown
-
-- debug: var=spectre_meltdown_sync.stdout_lines
- tags:
- - check-spectre-meltdown
-
- name: "{{ ansible_machine }} Specific"
include_tasks: "{{ ansible_machine }}.yaml"
tags:
diff --git a/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml b/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml
index 2d28f92ae3..dd4e307ca6 100644
--- a/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml
+++ b/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml
@@ -1,14 +1,14 @@
---
-# file: roles/calibration/tasks/x86_64.yaml
+# file: tasks/x86_64.yaml
-- name: Calibration - Clone PMA Tool
+- name: Clone PMA Tool
ansible.builtin.git:
repo: "https://gerrit.fd.io/r/pma_tools"
dest: "{{ pma_directory }}"
tags:
- check-jitter-tool
-- name: Calibration - Compile PMA Tool
+- name: Compile PMA Tool
ansible.builtin.raw: "cd {{ pma_directory }}/jitter && make"
tags:
- check-jitter-tool