Deploy the `/etc/multppath.conf` not to output the error message.

This commit is contained in:
Kazuhiro MUSASHI 2020-11-07 13:01:28 +09:00
parent 87b181c012
commit b78aee2026
2 changed files with 21 additions and 0 deletions

View File

@ -72,6 +72,21 @@ if node['platform_version'].to_f == 16.04
include_recipe './unnecessary.rb'
end
# recipes for Ubuntu 20.04
if node['platform_version'].to_f == 20.04
remote_file '/etc/multipath.conf' do
owner 'root'
group 'root'
mode '0644'
notifies :restart, 'service[multipath-tools]'
end
service 'multipath-tools' do
action :nothing
end
end
# AWS EC2 Swap Setting:
if node['is_ec2']
include_recipe './aws_ec2.rb'

View File

@ -0,0 +1,6 @@
defaults {
user_friendly_names yes
}
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|sda)[0-9]*"
}