5 # Copyright:: 2012, OpenStreetMap Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # https://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
20 cookbook_file "/usr/local/bin/fixeep-82574_83.sh" do
26 execute "udevadm-trigger" do
28 command "/bin/udevadm trigger --action=add"
31 template "/etc/udev/rules.d/99-chef.rules" do
32 source "udev.rules.erb"
36 notifies :run, "execute[udevadm-trigger]"
39 template "/etc/modprobe.d/nvme.conf" do
40 source "nvme.conf.erb"
44 only_if { ::File.exist?("/sys/module/nvme/parameters/poll_queues") }
47 execute "update-initramfs" do
49 command "/usr/sbin/update-initramfs -u"
50 subscribes :run, "template[/etc/modprobe.d/nvme.conf]"