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

Type Boolean not supported in metadata.rb #10

Closed
alainchiasson opened this issue Feb 25, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@alainchiasson
Copy link

commented Feb 25, 2015

While it usualy does not seem to matter - we user RightScale, which depends on the metadata.rb information. From the chef docs at https://docs.chef.io/cookbook_repo.html :

type (the type of value, either string, array, or hash)

Rightscale is strict about this :

In your metadata.rb file - you have a type boolean :

attribute 'system/permanent_ip',
          display_name: 'Permanent IP Address',
          description: 'Whether the system has a permenent IP address (http://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution).',
          required: 'optional',
          type: 'boolean',
          recipes: ['system::hostname', 'system::default']
@alainchiasson

This comment has been minimized.

Copy link
Author

commented Feb 25, 2015

The second issue - and it is more my issue - I don't think I can pass a boolean via right scale inputs - only a string.

I noticed ['system']['permanent_ip'] is a true or false and via rightscale I can only pass it in as "true" or "false".

Or have you worked around this ?

@flaccid

This comment has been minimized.

Copy link
Contributor

commented Feb 26, 2015

@alainchiasson there is two reasons why this is not compatible in RightScale - first is that the RightLink agent uses a version of Chef before boolean (https://tickets.opscode.com/browse/CHEF-4075) was supported and the second is that boolean isn't supported for RS inputs either.

Having used to work at RightScale and still use it daily, I should of known better. Let me fix this up so its a string.

flaccid added a commit that referenced this issue Feb 26, 2015

@flaccid

This comment has been minimized.

Copy link
Contributor

commented Feb 26, 2015

This should be fixed now in https://github.com/xhost-cookbooks/system/releases/tag/v0.4.1. Please re-open if any issues.

@flaccid flaccid closed this Feb 26, 2015

@alainchiasson

This comment has been minimized.

Copy link
Author

commented Feb 26, 2015

Again, many Thanks. I will try it out!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.