Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource "package", attribute "package_name" doesnt work as expected #3786

Closed
philicious opened this issue Aug 17, 2015 · 2 comments
Closed

Comments

@philicious
Copy link

According to http://docs.chef.io/release/11-16/resource_package.html and http://docs.chef.io/release/11-16/resource_apt_package.html

you should be able to specify an array for package_name, however I get an error

 Chef::Exceptions::ValidationFailed
  ----------------------------------
  Option package_name must be a kind of [String]!  You passed ["python-openssl", "libnl-3-200", "libnl-route-3-200", "python-dbus", "python-apt", "python-newt", "python-gudev", "python-dmidecode", "python-libxml2"].

Recipe

package 'install-spacewalk-deps' do
  package_name %w(python-openssl libnl-3-200 libnl-route-3-200 python-dbus
                  python-apt python-newt python-gudev python-dmidecode python-libxml2)
end
chef-client -v
Chef: 11.16.4

This is working fine with chef-client 12.x

@coderanger
Copy link
Contributor

Multi-package installs were added in 12.1.0.

@philicious
Copy link
Author

then the docs need updates because they clearly say arrays are supported for 11.x
http://docs.chef.io/release/11-16/resource_package.html
http://docs.chef.io/release/11-16/resource_apt_package.html

@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants