~craigtracey/cloud-init/resolv-conf-config

« back to all changes in this revision

Viewing changes to doc/examples/cloud-config-resolv-conf.txt

  • Committer: ctracey
  • Date: 2013-01-25 22:27:06 UTC
  • Revision ID: ctracey@craigtracey.com-20130125222706-sook1el47e4f04nr
Adding a doc example for resolv_conf handler.

As per harlowja's suggestion addding an example to the doc directory for
cc_resolv_conf.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#cloud-config
 
2
#
 
3
# This is an example file to automatically configure resolv.conf when the
 
4
# instance boots for the first time.
 
5
#
 
6
# Ensure that your yaml is valid and pass this as user-data when starting
 
7
# the instance. Also be sure that your cloud.cfg file includes this
 
8
# configuration module in the appropirate section.
 
9
#
 
10
manage-resolv-conf: true
 
11
 
 
12
resolv_conf:
 
13
  nameservers: ['8.8.4.4', '8.8.8.8']
 
14
  searchdomains:
 
15
    - foo.example.com
 
16
    - bar.example.com
 
17
  domain: example.com
 
18
  options:
 
19
    rotate: true
 
20
    timeout: 1