[chef] Re: Re: Re: Re: Re: Re: Chef Node dummy data


Chronological Thread 
  • From: Nenad Petronijevic < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Chef Node dummy data
  • Date: Fri, 3 Jul 2015 22:46:14 +0200

Awesome sauce.
It seems just like the thing I need.

Thanks a bunch,
Nenad

On Jul 3, 2015 10:35 PM, "Jeremy Bingham" < "> > wrote:
I have this for creating a bunch of nodes: https://gist.github.com/ctdk/16623c2453640448b6d6

The only caveats are: you need to install fauxhai and chef-api, but you need to install version 0.3.0 of chef-api. For whatever reason it chokes on the most recent version. Otherwise, though, this'll generate as many fake nodes as you want. Change the number of nodes to create on line 31, and of course configure the right key and hostname in the config section on line 8.

-j

On Fri, Jul 3, 2015 at 1:16 PM, Nenad Petronijevic < " target="_blank"> > wrote:

Guess one of us will have to open source our solution :)

On Jul 3, 2015 7:10 PM, "Ranjib Dey" < " target="_blank"> > wrote:
i dont think theres anything out there. we use the same technique as you mentioned (fauxhai) ..

On Fri, Jul 3, 2015 at 9:55 AM, Nenad Petronijevic < " target="_blank"> > wrote:

Well, I need to generate valid nodes,
with ohai attributes included.

I thought about generating nodes
with ohai attrs filled from fauxhai,
but I still need to update fauxhai data to be unique across all nodes.

On Jul 3, 2015 6:30 PM, "Yoshi Spendiff" < " target="_blank"> > wrote:
Or are you only interested in the ohai generated attributes?

On Fri, Jul 3, 2015 at 9:27 AM, Yoshi Spendiff < " target="_blank"> > wrote:
Have a look at test kitchen, it's essentially the standard test suite for Chef at the moment.

In the suites section of the .kitchen.yml you can specify nodes and each node can have individual node level attributes set.

http://kitchen.ci/
https://github.com/test-kitchen/test-kitchen
https://docs.chef.io/config_yml_kitchen.html

On Fri, Jul 3, 2015 at 7:35 AM, Nenad Petronijevic < " target="_blank"> > wrote:
Hi all.

I need to generate large number of dummy Chef nodes for testing purposes, together with automatic attributes.

Is there any existing way to do that, maybe some testing script in chef repo?
I've looked in chef-server repo but haven't found anything useful.

I can create nodes manually and add ohai attributes from fauxhai,
but it would be great if there is an existing way to do that.

Thanks,
Nenad



--



--





Archive powered by MHonArc 2.6.16.

§