aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-06-27 23:30:36 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-06-27 23:30:36 +0300
commitb0730ad31c13f573feb9bd527167ce78700a7209 (patch)
treee57b6efb02ed7a8426ebeee9f64124565eef7e19 /templates
parent592be65638236b81dd1c30391d97febb7d946a7b (diff)
Refactor out sysrc calls, improve things
Diffstat (limited to 'templates')
-rw-r--r--templates/etc_jail.conf.j21
-rw-r--r--templates/etc_periodic.conf.j21
-rw-r--r--templates/etc_rc.conf.j225
-rw-r--r--templates/etc_resolv.conf.j23
4 files changed, 30 insertions, 0 deletions
diff --git a/templates/etc_jail.conf.j2 b/templates/etc_jail.conf.j2
index eb6d128..bcfcef0 100644
--- a/templates/etc_jail.conf.j2
+++ b/templates/etc_jail.conf.j2
@@ -16,6 +16,7 @@ path = "/usr/local/jails/containers/${name}";
{% for jail in jails %}
{{ jail.name }} {
ip4.addr = {{ jail.ip }};
+ interface = lan0;
}
{% endfor %}
diff --git a/templates/etc_periodic.conf.j2 b/templates/etc_periodic.conf.j2
new file mode 100644
index 0000000..22602c2
--- /dev/null
+++ b/templates/etc_periodic.conf.j2
@@ -0,0 +1 @@
+daily_status_smart_enable="YES"
diff --git a/templates/etc_rc.conf.j2 b/templates/etc_rc.conf.j2
new file mode 100644
index 0000000..c7e7b83
--- /dev/null
+++ b/templates/etc_rc.conf.j2
@@ -0,0 +1,25 @@
+hostname="pursotin"
+keymap="fi.kbd"
+sshd_enable="YES"
+ntpd_enable="YES"
+ntpd_sync_on_start="YES"
+powerd_enable="YES"
+moused_nondefault_enable="NO"
+# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
+dumpdev="AUTO"
+zfs_enable="YES"
+defaultrouter="{{ lan_ipv4_gateway }}"
+ifconfig_igc0_name="lan0"
+ifconfig_igc1_name="wan0"
+ifconfig_lan0="inet {{ lan_ipv4_cidr }}"
+ifconfig_lan0_ipv6="inet6 accept_rtadv"
+ifconfig_wan0="DHCP"
+ifconfig_wan0_ipv6="inet6 accept_rtadv"
+zpool_gpt_labels_enable="YES"
+smartd_enable="YES"
+pf_enable="YES"
+syslogd_enable="YES"
+syslogd_flags="-s"
+jail_enable="YES"
+jail_parallel_start="YES"
+nginx_enable="YES"
diff --git a/templates/etc_resolv.conf.j2 b/templates/etc_resolv.conf.j2
new file mode 100644
index 0000000..29f6bf6
--- /dev/null
+++ b/templates/etc_resolv.conf.j2
@@ -0,0 +1,3 @@
+search {{ lan_search_domain }}
+nameserver {{ lan_ipv4_gateway }}
+nameserver 8.8.8.8