Giter Club home page Giter Club logo

chef_solo_os's Introduction

chef_solo_os

This repository is used to build a generic server via Chef Solo.

Chef Solo allows you to run Chef Cookbooks in the absence of a Chef Server. It does this by requiring that the complete cookbook be present on disk, which it will fetch by getting a tarball from a remote URL.

Tested

Ubuntu 32 and 64-bit

8.04 LTS Hardy Heron
8.10 Intrepid Ibex
9.04 Jaunty Jackalop
9.10 Karmic Koala

Debian 32 and 64-bit

4.0 Etch
5.0 Lenny

Installation

wget -q -O - http://github.com/freerange/chef_solo_os/raw/master/build.sh | sh

SSH Keys

This setup creates a user deploy. You will have to manually add authorized keys, private keys for github, etc.

Setting up server as CI

To set up the server as a CI server, run the following rake on the server. This will run the required chef recipes and apache setup.

cd /opt/chef_solo_os
sudo git pull (just in case updates have been made)

sudo rake ci:setup HOSTNAME="ci.mycompany.com"

Then to add an application you can run this rake task from the same directory.

sudo rake ci:add_project GIT_URL="[email protected]:user/example_project.git" PROJECT_NAME=example_project

This task will create a new directory in /var/www/ci/projects named after PROJECT_NAME. This folder will contain app which is the git clone and configuration files and folders for it to run as CI Joe rack application. There will also be a symlink with the PROJECT_NAME in /var/www/ci that is used for passenger. If the application requires a database connection or other configuration go to /var/www/ci/projects/#{PROJECT_NAME}/app and you’ll find the application. Once all done, you can visit the application at this url.

http://#{HOSTNAME}/example_project

Setting up Mongodb on server

To install Mongodb on the server do the below.

cd /opt/chef_solo_os
sudo git pull (just in case updates have been made)

sudo rake mongodb:setup

chef_solo_os's People

Contributors

lazyatom avatar lukeredpath avatar retr0h avatar tomafro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chef_solo_os's Issues

root user's ruby is still the system ruby, not REE

When logged in as deploy and running a command like "sudo gem install", it will use the ruby indicated by the root user's environment, not the deploy user. This means gems get installed in the wrong place, for example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.