GithubHelp home page GithubHelp logo

bottkv488 / resolver_ccope Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ccope/resolver

0.0 1.0 0.0 111 KB

Development repository for Opscode Cookbook resolver

Home Page: http://community.opscode.com/cookbooks/resolver

License: Apache License 2.0

Ruby 95.16% HTML 4.84%

resolver_ccope's Introduction

resolver Cookbook

Configures /etc/resolv.conf, unless the nameservers attribute is empty.

Attributes

See attributes/default.rb for default values.

  • node['resolver']['search'] - the search domain to use
  • node['resolver']['nameservers'] - Required, an array of nameserver IP address strings; the default is an empty array, and the default recipe will not change resolv.conf if this is not set. See Usage.
  • node['resolver']['options'] - a hash of resolv.conf options. See Usage for examples.

Recipes

Use one of the recipes to set up /etc/resolv.conf for your system(s).

default

Configure /etc/resolv.conf based on attributes.

from_server_role

Configure /etc/resolv.conf's nameservers based on a search for a specific role (by Chef environment).

Usage

Using the default recipe, set the resolver attributes in a role, for example from my base.rb:

"resolver" => {
  "nameservers" => ["10.13.37.120", "10.13.37.40"],
  "search" => "int.example.org",
  "options" => {
    "timeout" => 2, "rotate" => nil
  }
}

The resulting /etc/resolv.conf will look like:

domain int.example.org
search int.example.org
nameserver 10.13.37.120
nameserver 10.13.37.40
options timeout:2 rotate

Using the from_server_role recipe, assign the node['resolver']['server_role'] attribute's role to a system that is the DNS resolver in the same Chef environment.

License & Authors

Copyright 2009-2012, Opscode, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

resolver_ccope's People

Contributors

sethvargo avatar jblaine avatar nathenharvey avatar mattray avatar josephholsten avatar stevendanna avatar tjabri avatar tas50 avatar

Watchers

James Cloos avatar

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.