ArgumentError
---------------
You must supply a name when declaring a package resource.
Cookbook Trace
----------------
c:/chef/cache/cookbooks/f5/libraries/gem_helper.rb:16:in 'install_f5_gem'
c:/chef/cache/cookbooks/f5/libraries/gem_helper.rb:4:in 'install_f5_gem'
c:/chef/cache/cookbooks/f5/resources/pool:13:in 'block in class_from_file'
Root cause
When converging and using f5 resources on a node where 'node['platform_family']` was not one of:
ensure that we only call that package resource when we have packages to install.
Test cases
successfully converged a recipe using the f5_pool and f5_vip resources on a Windows 2012R2 instance in test kitchen; it turns out this referencing this cookbook is sufficient to install the required dependencies to use these resources on a Windows node.
Problem
Root cause
When converging and using
f5
resources on a node where 'node['platform_family']` was not one of:rhel
fedora
amazon
suse
debian
this error would occur becausepackages
would benil
at line 16 (due to thewhen
case statement excluding alternative cases, such aswindows
)Fix
package
resource when we havepackages
to install.Test cases
f5_pool
andf5_vip
resources on a Windows 2012R2 instance in test kitchen; it turns out this referencing this cookbook is sufficient to install the required dependencies to use these resources on a Windows node.