Skip to content

Crowbar 2 build instructions

cloudedge edited this page Jul 15, 2012 · 8 revisions

Steps to get Crowbar 2 Edge

These are VERY early notes! Please update and be patient.

Note: We are working on branch release/rails3anddb/master

  1. Build a Ubuntu 12.04 environment 1 sudo -i
  2. apt-get update
  3. apt-get install curl git-core ruby ssh
  4. read https://github.com/galthaus/railsready
    1. `wget --no-check-certificate -O crowbar.sh https://raw.github.com/galthaus/railsready/master/crowbar.sh && bash crowbar.sh'
    2. verify: rvm list and gem list
    3. if rails is not in the gem list, gem install rails
  5. get the code
    1. git clone https://github.com/dellcloudedge/barclamp-crowbar.git
    2. mkdir /opt/dell
    3. mv barclamp-crowbar /opt/dell
    4. cd /opt/dell/barclamp-crowbar
    5. git checkout release/rails3anddb/master
    6. cd /crowbar_framework
    7. bundle
  6. setup offline mode (or configure a chef server)
    1. copy over cache into db (you need to supply the cache dump from an existing Crowbar Utils..Export)
    2. vi config/config/environments/development.rb
    3. change CHEF_ONLINE to be CHEF_ONLINE = false #File.exist? CHEF_CLIENT_KEY
    4. change OFFLINE_FILES_DIR to match where you copied the cache files
  7. prep environment
    1. cd config
    2. cp catalog.yml.example catalog.yml
  8. run the code
    1. script/rails server
    2. open http://[your server ip]:3000/ in a friendly browser (hint, IE is not friendly)
Clone this wiki locally