Merge pull request 'Deploy the `/etc/multppath.conf` not to output the error message.' (#54) from multipath-ignore-vm-disks into master

Reviewed-on: #54
This commit is contained in:
Kazuhiro MUSASHI 2020-11-08 13:04:43 +09:00
commit b499e69b29
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' include_recipe './unnecessary.rb'
end 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: # AWS EC2 Swap Setting:
if node['is_ec2'] if node['is_ec2']
include_recipe './aws_ec2.rb' 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]*"
}