aboutsummaryrefslogtreecommitdiffstats
path: root/templates/etc_rc.conf.j2
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-05-12 15:06:28 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-05-12 22:27:15 +0300
commit4715a28fdcd87440400d17154bfa361d99db29cc (patch)
tree52b825ca69ed3fc535f8f46de0ee1d2b1a6e2ade /templates/etc_rc.conf.j2
parented338ea29f1c0f2ad82d3a45b23c0544371b5575 (diff)
Add local vm for testing, adjust configs
Diffstat (limited to 'templates/etc_rc.conf.j2')
-rw-r--r--templates/etc_rc.conf.j216
1 files changed, 13 insertions, 3 deletions
diff --git a/templates/etc_rc.conf.j2 b/templates/etc_rc.conf.j2
index 6ee2583..5380056 100644
--- a/templates/etc_rc.conf.j2
+++ b/templates/etc_rc.conf.j2
@@ -8,13 +8,21 @@ moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
-defaultrouter="192.168.0.1"
+{% if is_test_vm %}
+defaultrouter="10.0.20.1"
+{% else %}
+defaultrouter="{{ lan_ipv4_gateway }}"
+{% endif %}
cloned_interfaces="bridge0 bridge1"
-ifconfig_igc0_name="lan0"
-ifconfig_igc1_name="wan0"
+ifconfig_{{ nic_lan }}_name="lan0"
+ifconfig_{{ nic_wan }}_name="wan0"
ifconfig_bridge0_name="brlan0"
ifconfig_bridge1_name="brwan0"
+{% if is_test_vm %}
+ifconfig_lan0="inet 10.0.20.2/24"
+{% else %}
ifconfig_lan0="inet {{ lan_ipv4_cidr }}"
+{% endif %}
ifconfig_lan0_ipv6="inet6 accept_rtadv"
ifconfig_wan0="up"
ifconfig_brlan0="addm lan0 up"
@@ -31,8 +39,10 @@ clear_tmp_enable="YES"
cleanvar_enable="YES"
auditd_enable="YES"
devd_enable="YES"
+{% if not is_test_vm %}
vm_enable="YES"
vm_dir="zfs:zroot/vm"
vm_list="alpine0"
vm_delay="5"
kld_list="if_wg i915kms"
+{% endif %}