Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 chef-repo
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Readme.md
Octocat-spinner-32 Vagrantfile
Readme.md

Setup a Server for Remote Pairing

First

knife bootstrap <pairing_server_name> --template-file ubuntu-12.04-lts.erb

Edit the node json file for what you want

{
  "domain": "example.com",
  "build-essential" : {
      "compiletime" : true
  },
  "mysql" : {
    "server_root_password" : "SECRET_PASSWORD"
  },
  "postgresql" : {
    "password" : {
      "postgres" : "SECRET_PASSWORD"
    }
  },
  "openssh" : {
    "permit_root_login" : "no",
    "password_authentication": "no"
  },
  "authorization" : {
    "sudo" : {
      "groups" : [
        "sudo"
      ],
      "passwordless" : true
    }
  },
  "run_list" : [
    "recipe[build-essential]",
    "recipe[annoyances]",
    "recipe[openssl]",
    "recipe[openssh]",
    "recipe[sudo]",
    "recipe[mysql::server]",
    "recipe[postgresql::server]",
    "recipe[packages]",
    "recipe[projects]"
  ]
}

Then setup databags for people and projects, see samples.

Then

bundle exec knife cook <pairing_server_name>

Adding cookbooks

knife cookbook site install <COOKBOOK NAME>
Something went wrong with that request. Please try again.