Sha256: 979fbdaeb1ac0d2ce9926a0a7d5ecc0497e167bbe413b071f5acee300e773d19

Contents?: true

Size: 1.08 KB

Versions: 36

Compression:

Stored size: 1.08 KB

Contents

#!/bin/bash

if [ -f .veewee_params ]
then
  . .veewee_params
fi

# Default to Gem install
if [ -z "$CHEF_INSTALLMETHOD" ]; then
  export CHEF_INSTALLMETHOD="gems"
fi

# Installing chef
case $CHEF_INSTALLMETHOD in
  "gems")
    # Using gems
    if [ -z "$CHEF_VERSION" ]; then
      # Default to latest
      gem install chef --no-ri --no-rdoc
    else
      gem install chef --no-ri --no-rdoc --version $CHEF_VERSION
    fi
    ;;

  "omnibus")
    # Using omnibus
    if [ -z "$CHEF_VERSION" ]; then
      # Default to latest
      wget -O - http://opscode.com/chef/install.sh | sudo bash -s
    else
      wget -O - http://opscode.com/chef/install.sh | sudo bash -s -- -v $CHEF_VERSION
    fi
    ;;

  "package")
    # Using packages
    apt-get install -y debconf-utils
    echo "chef    chef/chef_server_url    string  $CHEF_SERVER_URL" | debconf-set-selections
    if [ -z "$CHEF_VERSION" ]; then
      # Default to latest
      apt-get install -y chef
    else
      apt-get install -y chef=$CHEF_VERSION
    fi
    ;;

  *)
    echo "Unsupported method for installing chef"
    exit -1
    ;;
esac

Version data entries

36 entries across 12 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 templates/ubuntu-12.10-server-i386-packages/chef.sh
veewee-0.5.0.alpha4 templates/ubuntu-12.10-server-amd64-packages/chef.sh
veewee-0.5.0.alpha4 templates/.ubuntu/chef.sh
veewee-0.5.0.alpha3 templates/.ubuntu/chef.sh
veewee-0.5.0.alpha3 templates/ubuntu-12.10-server-i386-packages/chef.sh
veewee-0.5.0.alpha3 templates/ubuntu-12.10-server-amd64-packages/chef.sh
veewee-0.5.0.alpha2 templates/ubuntu-12.10-server-amd64-packages/chef.sh
veewee-0.5.0.alpha2 templates/ubuntu-12.10-server-i386-packages/chef.sh
veewee-0.5.0.alpha2 templates/.ubuntu/chef.sh
veewee-0.5.0.alpha1 templates/ubuntu-12.10-server-amd64-packages/chef.sh
veewee-0.5.0.alpha1 templates/ubuntu-12.10-server-i386-packages/chef.sh
veewee-0.5.0.alpha1 templates/.ubuntu/chef.sh
veewee-0.4.5.1 templates/.ubuntu/chef.sh
veewee-0.4.5.1 templates/ubuntu-12.10-server-amd64-packages/chef.sh
veewee-0.4.5.1 templates/ubuntu-12.10-server-i386-packages/chef.sh
veewee-0.4.5 templates/ubuntu-12.10-server-amd64-packages/chef.sh
veewee-0.4.5 templates/ubuntu-12.10-server-i386-packages/chef.sh
veewee-0.4.5 templates/.ubuntu/chef.sh
veewee-0.4.5.pre1 templates/.ubuntu/chef.sh
veewee-0.4.5.pre1 templates/ubuntu-12.10-server-i386-packages/chef.sh