Provisioning

Automatic provisioning using Chef, Puppet, etc.


Installing test-kitchen from github

Normally you would do this to install test-kitchen: sudo gem install test-kitchen To get the latest stable dev version from github, do it rather this way: cd /tmp git clone https://github.com/test-kitchen/test-kitchen.git cd test-kitchen/ sudo gem build test-kitchen.gemspec sudo gem install test-kitchen-1.1.2.dev.gem You eventuelly need to replace test-kitchen-1.1.2.dev.gem with the version that is shown after the build […]


Installing Chef 11 Server on Debian configuring knife

Having your Debian Squeeze installed you can install Chef Server 11 using the Ubuntu 10.10 package. You can get the package from http://www.opscode.com/chef/install/. The current version is 11.08. Before doing your installation, check that the hostname command is giving a fully qualified domain name. If not, you should modify the contents of /etc/hostname (example: chef.example.net) and add the […]


Install Jenkins on Debian

First of all add the key of the Jenkins server to apt: wget -q -O – http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add – Then create the sources.list entry or better create a file in /etc/apt/sources.list.d/: echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list Then install the package: apt-get update apt-get install jenkins   Jenkins will by default run on […]


Creating an encrypted Databag in Chef

Create a random encryption key: openssl rand -base64 512 | tr -d '\r\n' > secret_key  Use this to encrypt a data bag item named “passwords” located in a data bag named “production”: knife data bag create −−editor /usr/bin/vi −−secret-file ./secret_key production passwords This will open an text editor, example JSON data would be: {   "id": […]


Install Chef 10 Client on Debian

The installation is very similar to the server installation, with a few differences. For the server installation have a look here. First of all add the Opscode repository to apt:  echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | tee /etc/apt/sources.list.d/opscode.list lsb_release -cs will correspond to the name if your release (put in "squeeze" or "wheezy" instead for example […]


Installing Chef 10 Server on Debian

First of all add the Opscode repository to apt:  echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | tee /etc/apt/sources.list.d/opscode.list Then add the GPG key: mkdir -p /etc/apt/trusted.gpg.d gpg –keyserver keys.gnupg.net –recv-keys 83EF826A gpg –export packages@opscode.com | tee /etc/apt/trusted.gpg.d/opscode-keyring.gpg > /dev/null Then install the Chef Server: apt-get update apt-get upgrade apt-get install opscode-keyring apt-get install chef chef-server While […]