Add loader.conf.

This commit is contained in:
Tom Alexander 2022-10-14 01:59:15 -04:00
parent c34aab16af
commit ae6673e182
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 21 additions and 13 deletions

View File

@ -9,3 +9,4 @@ pflog_conf:
dev: pflog0
network_rc: "homeserver_network.conf"
rc_conf: "homeserver_rc.conf"
loader_conf: "homeserver_loader.conf"

View File

@ -0,0 +1,5 @@
security.bsd.allow_destructive_dtrace=0
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
zfs_load="YES"

View File

@ -2,14 +2,9 @@ clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="computer"
# wlans_ath0="wlan0"
wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
local_unbound_enable="YES"
sshd_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"

View File

@ -59,14 +59,21 @@
name: daily_scrub_zfs_default_threshold
value: "7"
path: /etc/periodic.conf.local
# - name: Install loader.conf
# copy:
# src: "{{loader_conf}}"
# dest: /boot/loader.conf
# owner: root
# group: wheel
# mode: 0644
# when: loader_conf is defined
- name: Install loader.conf
copy:
src: "{{loader_conf}}"
dest: /boot/loader.conf
owner: root
group: wheel
mode: 0644
when: loader_conf is defined
- name: Delete loader.conf
file:
path: /boot/loader.conf
state: absent
when: loader_conf is not defined
- name: Install rc.conf
copy: