Skip to content

Cookbook fails on Linux instance with Chef-Client 13.8.5 #8

@chefbob

Description

@chefbob

An error is thrown when trying to use the cookbook with Chef-Client 13.8.5, "ERROR: Cannot find a resource for windows_package on redhat version 7.4". It does not seem to honor the only_if platform windows directive.

   107:  # Install for Windows
   108>> windows_package 'awsagent' do
   109:    source node[:inspector][:win_installer_url]
   110:    installer_type :custom
   111:    options '-silent'
   112:    only_if { platform?('windows') }
   113:  end

This does not happen with the latest 14.x version. I'll see if there is a way to fix this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions