Code Monkey home page Code Monkey logo

fredz_cookbooks's Introduction

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......== [email protected]"
      }
    },
    "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": {
    }
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.