Comments (2)
Now, I can get around this by doing a partial_search like so
nodes = ridley.partial_search(:node, 'name:*', ['ec2'])
puts nodes.count
puts ridley.node.all.count
nodes.each do |node|
puts node.automatic.ec2.public_hostname
sleep 5
end
⋊> ~/w/w/chef_ec2_dossier ruby test.rb 22:38:14
1000
13188
ec2-54-87-46-137.compute-1.amazonaws.com
However, partial search has a page limit of 1000? A full search caused Ridley to crash. Not surprising given the obscene node count (I just came into a role where the Chef environment was extremely neglected).
It also looks like the .automatic
method doesn't return values when taken from a node collection?
ridley.node.all.each do |node|
puts node.automatic.to_hash
sleep 5
end
Returns an empty hash for each node.
from ridley.
Oh, duh. Found it in your README.md.
Notify: You have to send the #reload message to node objects returned from a full listing. Their attributes aren't automatically populated from the initial search.
Herp a derp derp. Now everything works.
For anyone searching through issues to find out why your code doesn't work. Well, here it is.
Also, to grab node attributes: .default
.automatic
.blah
. Totally forgot I had to do a reload from last time I touched this library. Hah.
from ridley.
Related Issues (20)
- Ridley 4.4.2 doesn't work with Chef < 12.5 HOT 2
- `berks upload` fails due to missing /sandboxes route in supermarket HOT 2
- chef_version setting in cookbook metadata HOT 1
- dot-separated attribute name HOT 1
- Actor death breaks Ridley as an instance, Thread leak blocks instance re-creation
- Reading databag items with `.all` does not work correctly HOT 2
- Celluloid block
- Replace celluloid with thin actor model based on ruby Threads? HOT 1
- ridley 4.6.1 not compatible with ruby 1.9 anymore HOT 5
- Unable to search data bags
- Unable to terminate ridley
- Warnings from Hashie gem HOT 16
- Digester breaks when trying to checksum non-files
- How to retrieve node last checkin time? HOT 3
- gemspec constraints for celluloid are quite strict HOT 1
- Increase timeout for search, partial_search.
- Update client version HOT 5
- Ridley gem for knife-vsphere HOT 1
- ridley bootstap
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 ridley.