Skip to content
Browse files

Add readme for 'resolver' cookbook

  • Loading branch information...
1 parent 3642fe2 commit b47591e5810b30acfdb6c2ef132088f3641e64d5 @jtimberman jtimberman committed Jul 10, 2010
Showing with 44 additions and 3 deletions.
  1. +40 −0 resolver/README.md
  2. +2 −2 resolver/metadata.json
  3. +2 −1 resolver/metadata.rb
View
40 resolver/README.md
@@ -0,0 +1,40 @@
+DESCRIPTION
+===========
+
+Configures /etc/resolv.conf.
+
+USAGE
+=====
+
+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"
+ }
+
+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
+
+LICENSE AND AUTHOR
+==================
+
+Author:: Joshua Timberman (<joshua@opscode.com>)
+
+Copyright 2009, 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.
View
4 resolver/metadata.json
@@ -81,7 +81,7 @@
]
},
"license": "Apache 2.0",
- "version": "0.8.1",
+ "version": "0.8.2",
"maintainer": "Opscode, Inc.",
"suggestions": {
},
@@ -93,5 +93,5 @@
"conflicting": {
},
"description": "Configures /etc/resolv.conf",
- "long_description": ""
+ "long_description": "DESCRIPTION\n===========\n\nConfigures /etc/resolv.conf.\n\nUSAGE\n=====\n\nSet the resolver attributes in a role, for example from my base.rb:\n\n \"resolver\" => {\n \"nameservers\" => [\"10.13.37.120\", \"10.13.37.40\"],\n \"search\" => \"int.example.org\"\n }\n\nThe resulting /etc/resolv.conf will look like:\n\n domain int.example.org\n search int.example.org\n nameserver 10.13.37.120\n nameserver 10.13.37.40\n\nLICENSE AND AUTHOR\n==================\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright 2009, Opscode, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
}
View
3 resolver/metadata.rb
@@ -2,7 +2,8 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures /etc/resolv.conf"
-version "0.8.1"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version "0.8.2"
recipe "resolver", "Configures /etc/resolv.conf via attributes"

0 comments on commit b47591e

Please sign in to comment.
Something went wrong with that request. Please try again.