Comments (12)
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.
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.
I see. Thank you for good report of use case!
from knife-zero.
Note: I've catched up similar feedback from twitter. https://twitter.com/masudaK/status/608555090165776384
from knife-zero.
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.
hmm... how about #43 ?
from knife-zero.
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.
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.
(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.
@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.
@rmoriz Yes, It's kind of use case π
from knife-zero.
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)
- Cannot bootstrap a new node (ssh authentication fails) HOT 2
- Dependabot can't resolve your Ruby dependency files
- knife zero converge not doing anything !? HOT 9
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Using MOSH for flaky internet connection HOT 2
- Chef 16η³»γ§cincγγγΎγεγγͺγ HOT 15
- Chef dependency should be >= 17 for 2.4.x HOT 2
- knife zero converge "name:xxx-*" ERROR: Too many open files HOT 3
- knife zero converge command got sudo: chef-client: command not found error HOT 6
- knife zero converge - sudo: chef-client: command not found HOT 2
- Can't use with cinc
- Knife ignores ssh config file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife-zero.