hot plug role
This commit is contained in:
parent
5a1e45e774
commit
6cdcc644c2
|
@ -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 }}"
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
@ -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""
|
Loading…
Reference in New Issue