summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorctracey <ctracey@craigtracey.com>2013-01-25 17:27:06 -0500
committerctracey <ctracey@craigtracey.com>2013-01-25 17:27:06 -0500
commit94c37c074aed4036160881f4f3a28d35f868d006 (patch)
tree87e1bfcef44a2cb5c5478e271aa645a7ab99755f /doc
parent2e5875ed212fb11a91b6b2bc81dfb038b960082b (diff)
downloadvyos-cloud-init-94c37c074aed4036160881f4f3a28d35f868d006.tar.gz
vyos-cloud-init-94c37c074aed4036160881f4f3a28d35f868d006.zip
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
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/cloud-config-resolv-conf.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-resolv-conf.txt b/doc/examples/cloud-config-resolv-conf.txt
new file mode 100644
index 00000000..37ffc91a
--- /dev/null
+++ b/doc/examples/cloud-config-resolv-conf.txt
@@ -0,0 +1,20 @@
+#cloud-config
+#
+# This is an example file to automatically configure resolv.conf when the
+# instance boots for the first time.
+#
+# Ensure that your yaml is valid and pass this as user-data when starting
+# the instance. Also be sure that your cloud.cfg file includes this
+# configuration module in the appropirate section.
+#
+manage-resolv-conf: true
+
+resolv_conf:
+ nameservers: ['8.8.4.4', '8.8.8.8']
+ searchdomains:
+ - foo.example.com
+ - bar.example.com
+ domain: example.com
+ options:
+ rotate: true
+ timeout: 1