9 Set the networking attributes in a role, for example from my base.rb:
12 :nameservers => [ "10.13.37.120", "10.13.37.40" ],
13 :search => [ "int.example.org". "example.org" ]
16 The resulting /etc/resolv.conf will look like:
18 search int.example.org example.org
19 nameserver 10.13.37.120
20 nameserver 10.13.37.40
25 Author:: OpenStreetMap Administrators (<admins@openstreetmap.org>)
27 Copyright 2010, OpenStreetMap Foundation.
29 Licensed under the Apache License, Version 2.0 (the "License");
30 you may not use this file except in compliance with the License.
31 You may obtain a copy of the License at
33 http://www.apache.org/licenses/LICENSE-2.0
35 Unless required by applicable law or agreed to in writing, software
36 distributed under the License is distributed on an "AS IS" BASIS,
37 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38 See the License for the specific language governing permissions and
39 limitations under the License.
41 Based on resolver cookbook:
43 Author:: Joshua Timberman (<joshua@opscode.com>)
45 Copyright 2009, Opscode, Inc.
47 Licensed under the Apache License, Version 2.0 (the "License");
48 you may not use this file except in compliance with the License.
49 You may obtain a copy of the License at
51 http://www.apache.org/licenses/LICENSE-2.0
53 Unless required by applicable law or agreed to in writing, software
54 distributed under the License is distributed on an "AS IS" BASIS,
55 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56 See the License for the specific language governing permissions and
57 limitations under the License.