* Don't use executes for installing packages, use the package resource * Use node platform attribute to affect platform-specific behavior * Consolidate into a single cookbook
12 lines
208 B
Ruby
12 lines
208 B
Ruby
package "imagemagick" do
|
|
case node['platform']
|
|
when "debian"
|
|
package_name "imagemagick"
|
|
when "centos"
|
|
package_name "ImageMagick"
|
|
end
|
|
end
|
|
|
|
if platform?("debian")
|
|
package "libmagick9-dev"
|
|
end
|