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

knife cookbook upload chef-rvm fails #20

Closed
gangster opened this issue May 13, 2011 · 5 comments
Closed

knife cookbook upload chef-rvm fails #20

gangster opened this issue May 13, 2011 · 5 comments

Comments

@gangster
Copy link

Hi. I am very new (~1 day) to Chef so this in fact may not be a bug and may be user error. With that said, when I try to upload the Cookbook up to opscode, I get the following error

$ knife cookbook upload chef-rvm
ERROR: Chef::Exceptions::ValidationFailed: Option type must be equal to one of: string, array, hash, symbol! You passed "boolean".

It would appear the offending code is in metadata.rb:

attribute "rvm/install_rubies",
:display_name => "Can enable or disable installation of a default ruby and additional rubies set attribute metadata.",
:description => "Can enable or disable installation of a default ruby and additional rubies set attribute metadata. The primary use case for this attribute is when you don't want any rubies installed (but you want RVM installed).",
:type => "boolean",
:default => true

Any ideas on how to get around it? I tried changing :type to "string" and :default to "true" but for my troubles all I got was:

Uploading chef-rvm [0.6.0]
ERROR: EOFError: end of file reached

@fnichol
Copy link
Contributor

fnichol commented May 14, 2011

Sorry, you're totally correct. I've updated this attribute value to "true" or "false" strings. Still getting the hang of valid cookbook metadata, thank you for the heads up!

@arikfr
Copy link

arikfr commented May 15, 2011

I downloaded the latest version (0.7.0) and experiencing the same problem as @gangster:
> knife cookbook upload chef-rvm Uploading chef-rvm [0.7.0] ERROR: EOFError: end of file reached

I'm using Chef 0.10. if it helps.

@fnichol
Copy link
Contributor

fnichol commented May 15, 2011

Just tracked it down. The README.md appears too long to be included in metadata.rb. I'll push an update to fix.

@arikfr
Copy link

arikfr commented May 15, 2011

Thanks! It worked.

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
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

3 participants