Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6769741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:13:46+00:00 2026-05-26T15:13:46+00:00

I’ve just started using chef-solo. I’ve started using chef-solo to build my Ruby on

  • 0

I’ve just started using chef-solo. I’ve started using chef-solo to build my Ruby on Rails web servers from scratch. Along with my bootstrapping files (deploy.rb and install.rb) I have two config files (solo.json and solo.rb). I’ve setup my solo.json to run a set of roles and recipes that will setup a web server.

Now I want to use chef-solo to build a mythtv box with my own customisations. Instead of having solo.json should I have ‘web_server.json’ and ‘mythtv.json’ to list my different recipes/roles for creating these servers?

Logically it should work but is there a better way? / is this the correct way?

Here is my full setup so far (as it stands it builds a web server for Ruby on Rails);

https://github.com/map7/chef-solo

One way would be to copy my whole chef-solo directory and customise it for creating my Mythtv box, but then I have to maintain two sets of chef-solo bootstrappings and config files and some of the cookbooks will be used in both situations. Such as apache2 which I want on both Mythtv & my web server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:13:47+00:00Added an answer on May 26, 2026 at 3:13 pm

    I have poured over the docs and the few chef-solo tutorials and here is what I came up with. Like nearly all programs there is more that one way to do it (TIMTOWTDI). I am thinking of doing my own tutorial…

    Create a base.json as your primary configuration options: users accounts, maybe iptables with access to ssh only, sudo for your user, etc. Things that would be the same on both (all) machines. Then create a role for your myth machine and put it in the roles folder. When you create a new role just edit the base.json and add the role to the run list.

    Also, I don’t see a site-cookbooks folder. I was unclear on this when I started with chef-solo too. You need this. If you alter a cookbook (which you will eventually) you place the altered file in site-cookbooks folder, in the same directory structure as the original cookbook. Say you want edit an apache2 template, you would put it in site-cookbooks–>apache2–>templates–>default–>apache2.conf.erb (for example). At runtime chef will look to your template instead of the original. This makes it easy to track your additions/changes and also allows for easy upgrade of original cookbook. So, you will only ever have one cookbook tarball. If you don’t call the recipe/role from json then it won’t be executed.
    Within my chef-solo repo, to create my tarball, I run:

    tar zcvf chef-solo.tar.gz ./cookbooks ./roles ./site-cookbooks ./data-bags
    

    Last note, later versions of chef-solo have gotten some love with ability to use data-bags and a cookbook has been created to allow for search. Both are big parts of the client-server setup and I did not think they would ever get added to chef-solo. Chef-solo FTW!

    My bootstrap fwiw.
    https://github.com/tripleonard/chef-solo-bootstrap

    Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.