Giter VIP home page Giter VIP logo

Comments (12)

patcon avatar patcon commented on June 10, 2024

fwiw, it seems automatic_attribute_whitelist needs at least ["fqdn/"] in order for knife-zero to continue to work. But this is probably a minimum, so that the knife node show NAME is still maximally populated:

# client.rb
automatic_attribute_whitelist [
  "fqdn/",
  "ipaddress/",
  "roles/",
  "recipes/",
  "ipaddress/",
  "platform/",
  "platform_version/",
]

from knife-zero.

patcon avatar patcon commented on June 10, 2024

Oh hey, this can be done here:
https://github.com/opscode-cookbooks/chef-client

But hey, I'll leave this open in case you want to have a simple flag in knife.rb that quiets down all the noisy linux automatic attrs.

from knife-zero.

sawanoboly avatar sawanoboly commented on June 10, 2024

I see. Thank you for good report of use case!

from knife-zero.

sawanoboly avatar sawanoboly commented on June 10, 2024

Note: I've catched up similar feedback from twitter. https://twitter.com/masudaK/status/608555090165776384

from knife-zero.

sawanoboly avatar sawanoboly commented on June 10, 2024

https://github.com/chef/chef/blob/59da09f64b72dbd712c890f999322493a4bc9ec4/lib/chef/knife/core/bootstrap_context.rb#L64

client.rb is made by .config_content . I'm going to append content by around_alias.

Which do you think is better? @patcon @rmoriz

  • be able to append free format content to client.rb.
  • create new option such as --[no-]suppress-attributes for add whitelist automatically.
  • create new options such as --attribute_whitelist, attribute_blacklist as Array.

from knife-zero.

sawanoboly avatar sawanoboly commented on June 10, 2024

hmm... how about #43 ?

from knife-zero.

patcon avatar patcon commented on June 10, 2024

Hm. I realize I made the request, but I'd actually moved away from the idea of using the whitelist (unless they add negating and make a blacklist possible). So much node information seems to be lost unless the whitelist is VERY extensive, which strikes me as very hard to manage (different platforms have different top-level keys for automatic attrs, etc.)

Perhaps this is best implemented as a recommended wrapper cookbook around one of the blacklist attrs cookbooks mentioned in chef/chef#3533?

from knife-zero.

patcon avatar patcon commented on June 10, 2024

I'm going to close this for now, as you've created a feature that addresses the initial request, and my new preferred way approach will be done outside this project :)

Thanks @sawanoboly, and sorry for the confusion!

from knife-zero.

rmoriz avatar rmoriz commented on June 10, 2024

(Let me just add my notes, which may help other people having the same issue:

I was manging the node.json files manually (coming from a knife-solo setup) and initially had the same issue until I found out, that knife node edit <name> removes a lot of the clutter before opening the editor. This fits my use case, as I'm happy to store everything in git.)

from knife-zero.

sawanoboly avatar sawanoboly commented on June 10, 2024

@patcon
Thanks, I also seemed blacklist approach is better. ( discussed in chef/chef#3533 )

Apart from that, I thought also likely case useful to append whitelist, so I implemented it.

from knife-zero.

sawanoboly avatar sawanoboly commented on June 10, 2024

@rmoriz Yes, It's kind of use case πŸ˜ƒ

from knife-zero.

patcon avatar patcon commented on June 10, 2024

Rockin :)

And thanks @rmoriz! That's actually really helpful for our workflow! I hadn't put two and two together on that

from knife-zero.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.