summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-09-30 13:26:03 -0400
committerScott Moser <smoser@ubuntu.com>2014-09-30 13:26:03 -0400
commita429725ede3395a7e9c21b864a82e2c092657ae2 (patch)
tree3f3ae31e40ddd7f94c662c2d3f5f2108af5cda97 /templates
parentb76866ad72d433cc9008a137c464c7ed44401549 (diff)
parent87080e18f8fb2522a01ccbe58c60b5e06bfdd5d7 (diff)
downloadvyos-cloud-init-a429725ede3395a7e9c21b864a82e2c092657ae2.tar.gz
vyos-cloud-init-a429725ede3395a7e9c21b864a82e2c092657ae2.zip
FreeBSD: Support ConfigDrive
Add support for freebsd reading config drive. Primary work is related to re-factoring mount_cb to not be so linux specific. Other changes: * declare PATH in freebsd initscripts * list dependency on e2fsprogs (for blkid) * enable ConfigDrive in freebsd config * hosts.freebsd.tmpl added
Diffstat (limited to 'templates')
-rw-r--r--templates/hosts.freebsd.tmpl24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/hosts.freebsd.tmpl b/templates/hosts.freebsd.tmpl
new file mode 100644
index 00000000..7ded762f
--- /dev/null
+++ b/templates/hosts.freebsd.tmpl
@@ -0,0 +1,24 @@
+## template:jinja
+{#
+This file /etc/cloud/templates/hosts.freebsd.tmpl is only utilized
+if enabled in cloud-config. Specifically, in order to enable it
+you need to add the following to config:
+ manage_etc_hosts: True
+-#}
+# Your system has configured 'manage_etc_hosts' as True.
+# As a result, if you wish for changes to this file to persist
+# then you will need to either
+# a.) make changes to the master file in /etc/cloud/templates/hosts.freebsd.tmpl
+# b.) change or remove the value of 'manage_etc_hosts' in
+# /etc/cloud/cloud.cfg or cloud-config from user-data
+#
+# The following lines are desirable for IPv4 capable hosts
+127.0.0.1 {{fqdn}} {{hostname}}
+127.0.0.1 localhost.localdomain localhost
+127.0.0.1 localhost4.localdomain4 localhost4
+
+# The following lines are desirable for IPv6 capable hosts
+::1 {{fqdn}} {{hostname}}
+::1 localhost.localdomain localhost
+::1 localhost6.localdomain6 localhost6
+