[chef] Re: Re: Multiple chef-repo with Berkshelf


Chronological Thread 
  • From: Bryan Stenson < >
  • To:
  • Subject: [chef] Re: Re: Multiple chef-repo with Berkshelf
  • Date: Wed, 8 Jan 2014 09:39:25 -0800

you might try to manage them via linked files...ala chefvm (https://github.com/trobrock/chefvm)

it's sort of like rvm, but for chef config files...


On Wed, Jan 8, 2014 at 7:23 AM, Brian Fletcher < " target="_blank"> > wrote:
Hey Mark,

If I understand your question correctly, you have the option to pass a config file to the berks command. e.g.

  berks upload —config==/home/blah/.berkshelf/config_A.json
  berks upload —config==/home/blah/.berkshelf/config_B.json

Thanks,

Brian


All -

Currently I have three Chef instances, meaning three chef-repos, call them A, B, and C. (We are hoping to merge into one repo soon.) I want to use Berkshelf. However, Berkshelf creates its config.json file at $HOME/.berkshelf/config.json which means that the “chef”: portion is shared for all three instance.

Can I split this file into two, putting the “chef”: portion specific to my chef-repo at the chef-repo level while leaving the rest of the config.json at $HOME?

If I can’t split the file, can I just create the .berkshelf directory at the chef-repo level and have three, one for each chef-repo?

Thanks,
Mark
--
mark nichols | @zanshin | zanshin.net 








Archive powered by MHonArc 2.6.16.

§