Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Ruby Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config Added app-1, 2
data_bags initial commit
nodes We have now only app-3 instance.
roles recipes for logrotate
site-cookbooks restart service to re-open log when execute logrotate
.gitignore update knife to 0.0.3
Cheffile use xbuild instead of plenv to install perl 5.16.3
Cheffile.lock update xbuild
Gemfile update knife to 0.0.3
Gemfile.lock update knife to 0.0.3 fix docs to use knife solo

Chef Cookbooks for PrePAN


Ruby Libraries

You have to install the gem libraries listed below:

  • knife-solo
  • librarian
  • ec2ssh

the gem libraries except ec2ssh are managed by bundler. So You can install these libraries by following commands.

$ gem install ec2ssh
$ gem install bundler
$ bundle install --path vendor/bundle


Make a file named '~/.ec2ssh' as below:

    access_key_id:     your access key
    secret_access_key: your secret access key
  - us-west-1

Then setup your $HOME/.ssh/config:

$ ec2ssh init --path ~/.ssh/config
$ ec2ssh update --aws_key prepan --path ~/.ssh/config


You need to install Vagrant by the installer. You can get it from See also for details.

Add the config to your ~/.ssh/config to enable SSH login:

  User vagrant
  Port 2222
  IdentityFile ~/.vagrant.d/insecure_private_key

Then add the line below into your /etc/hosts:

Chef cookbooks

Download dependent Chef cookbooks with librarian-chef:

$ bundle exec librarian-chef install

Provision Vagrant

Launch Vagrant at first:

$ vagrant up

This take a long while at the first time.

Then provision it:

$ bundle exec knife solo prepare
$ bundle exec knife solo cook

Provision Hosts on Production (EC2)

Prepare remote host:

$ bundle exec knife solo prepare -i ~/.ssh/prepan.pem

Edit node/${hostname}.json if it's not thre.

Then provision it:

$ bundle exec knife solo cook -i ~/.ssh/prepan.pem

From the 2nd time, you have to use deployer user for login user:

$ bundle exec knife solo cook -i ~/.ssh/prepan.pem
Something went wrong with that request. Please try again.