- From: Sean OMeara <
>
- To: "
" <
>
- Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Chef Node dummy data
- Date: Sat, 4 Jul 2015 05:14:25 -0400
I believe this may be an example ChefSpec droid you're looking for.
https://github.com/chef-cookbooks/mysql/blob/e13c394c0e7cce1ff720632f9ed098f6766403de/spec/mysql_service/rhel/amazon_201409_service_55_multi_spec.rb
On Fri, Jul 3, 2015 at 4:58 PM, Ranjib Dey
<
>
wrote:
>
i have added a comment with raw chef api, useful if you dont want to use
>
chef-api etc.
>
>
On Fri, Jul 3, 2015 at 1:46 PM, Nenad Petronijevic
>
<
>
>
wrote:
>
>
>
> 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
>
>> <
>
>
>> wrote:
>
>>>
>
>>> Guess one of us will have to open source our solution :)
>
>>>
>
>>> On Jul 3, 2015 7:10 PM, "Ranjib Dey"
>
>>> <
>
>
>>> 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
>
>>>> <
>
>
>>>> 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"
>
>>>>> <
>
>
>>>>> wrote:
>
>>>>>>
>
>>>>>> Or are you only interested in the ohai generated attributes?
>
>>>>>>
>
>>>>>> On Fri, Jul 3, 2015 at 9:27 AM, Yoshi Spendiff
>
>>>>>> <
>
>
>>>>>> 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
>
>>>>>>> <
>
>
>>>>>>> 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
>
>>>>>>>
>
>>>>>>>
>
>>>>>>>
>
>>>>>>>
>
>>>>>>> --
>
>>>>>>> Yoshi Spendiff
>
>>>>>>> Ops Engineer
>
>>>>>>> Indochino
>
>>>>>>> Mobile: +1 778 952 2025
>
>>>>>>> Email:
>
>>>>>>>
>
>>>>>>
>
>>>>>>
>
>>>>>>
>
>>>>>>
>
>>>>>> --
>
>>>>>> Yoshi Spendiff
>
>>>>>> Ops Engineer
>
>>>>>> Indochino
>
>>>>>> Mobile: +1 778 952 2025
>
>>>>>> Email:
>
>>>>>>
>
>>>>
>
>>>>
>
>>
>
Archive powered by MHonArc 2.6.16.