hot plug role

This commit is contained in:
Ruben Blanco 2024-01-09 18:58:56 +01:00
parent 5a1e45e774
commit 6cdcc644c2
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Install and configure HOT-PLUG
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# configure /usr/lib/udev/rules.d/80-hotplug-cpu-mem.rules
- name: configure /usr/lib/udev/rules.d/80-hotplug-cpu-mem.rules file
lineinfile:
path: "{{ path_hot_plug_udev }}"
line: "{{ line_hot_plug_udev }}"
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# configure /etc/default/grub.d/hotplug.cfg
- name: configure /etc/default/grub.d/hotplug.cfg file
lineinfile:
path: "{{ path_hot_plug_grub }}"
line: "{{ line_hot_plug_grub }}"
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

View File

@ -0,0 +1,5 @@
# vars file
path_hot_plug_udev: /usr/lib/udev/rules.d/80-hotplug-cpu-mem.rules
line_hot_plug_udev: "SUBSYSTEM==”cpu”, ACTION==”add”, TEST==”online”, ATTR{online}==”0”, ATTR{online}=”1”"
path_hot_plug_grub: /etc/default/grub.d/hotplug.cfg
line_hot_plug_grub: "GRUB_CMDLINE_LINUX_DEFAULT="quiet memhp_default_state=online""