cookbook-openstack-common/bootstrap.sh
Jan Klare ef40fb0aa5 moving from bundler to chefdk
- deprecated Gemfile
 - updated Rakefile to use 'chef exec' instead of 'bundle exec'
 - updated TESTING.md
 - added fauxhai permission workaround to bootstrap.sh

Change-Id: I4dfa2082cff38f8d73cf89676215dc7f469fe970
2015-04-27 10:12:20 +02:00

14 lines
570 B
Bash
Executable File

#!/bin/bash -x
## This script is for installing all the needed packages on trusty to run the chef tests with 'chef exec rake'
# install needed packages
sudo apt-get -y install build-essential liblzma-dev zlib1g-dev
# install chefdk
chefdk=chefdk_0.4.0-1_amd64.deb
wget -nv -t 3 https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/$chefdk
sudo dpkg -i $chefdk
## workaround to fix redhat fauxhai permission issue (can be removed with fauxhai > 2.3 in chefdk)
sudo chef exec ruby -e "require 'fauxhai'; Fauxhai.mock(platform:'redhat', version:'7.1')"