Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Customized Chef Cookbooks, mostly for debian and ubuntu systems.
branch: master

This branch is 8 commits behind fred:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
aa_mathaba
apache2
build-essential
debian_basic
git
logrotate
memcached
monit
munin
mysql
networking_basic
nginx
ntp
openssh
openssl
openvpn
redis
ruby
rubygems
screen
subversion
users
utilities
xcache
xml
zlib
README.textile

README.textile

Sample Roles file

Some recipes are from Opscode, some are from this repo.

  # File: CHEF_HOME/roles/base.json
  {
    "name": "base",
    "description": "This role is the bootstrap for every server, putting admin accounts on it, installing debian/ubuntu sources file, update/upgrade, install networking tools and install libraries for ruby.", 
    "default_attributes": {
      "chef": {
        "server_url": "https://api.opscode.com/organizations/YOUR_ORG",
        "cache_path": "/var/chef/cache",
        "backup_path": "/var/chef/backup",
        "validation_client_name": "YOUR_ORG-validator",
        "run_path": "/var/chef"
      },
      "groups" : {
        "admin" : {
          "gid" : 7000 
        }
      },
      "active_groups" : [
        "admin" 
      ],
      "active_users" : [
        "fred"
        ],
      "users" : {
        "fred" : {
          "password" : "from {openssl passwd -1}",
          "comment" : "Fred",
          "uid" : 7001,
          "groups" : [
            "admin"
          ]
        }
      },
      "ssh_keys" : {
        "fred" : "ssh-rsa AAAAB3N......== fred@Freds-MacBook-Pro.local"
      }
    },
    "json_class": "Chef::Role",
    "run_list": [
      "recipe[build-essential::default]",
      "recipe[debian_basic::default]",
      "recipe[networking_basic::default]",
      "recipe[openssl::default]",
      "recipe[ntp::default]",
      "recipe[git::default]",
      "recipe[subversion::client]",
      "recipe[screen::default]",
      "recipe[ruby:default]",
      "recipe[rubygems:default]",
      "recipe[ruby:source]",
      "recipe[rubygems:default]",
      "recipe[users]",
      "recipe[mysql::server]"
    ],
    "chef_type": "role",
    "override_attributes": {
    }
  }
Something went wrong with that request. Please try again.