4 node doas.conf && nodeinstall -m 600 -o root:wheel doas.conf /etc
8 node login.conf && nodeinstall -m 644 -o root:wheel login.conf /etc
12 node hosts && nodeinstall -m 644 -o root:wheel hosts /etc
16 node sysctl.conf && nodeinstall -m 644 -o root:wheel sysctl.conf /etc &&
17 sysctl -f /etc/sysctl.conf
21 for cron in daily.local weekly.local monthly.local; do
22 node "$cron" && nodeinstall -m 644 -o root:wheel "$cron" /etc
26 install_installurl() {
27 node installurl && nodeinstall -m 644 -o root:wheel installurl /etc
31 node myname && nodeinstall -m 644 -o root:wheel myname /etc
35 node mygate && nodeinstall -m 644 -o root:wheel mygate /etc
38 networking_hostname_if() {
39 for interface in "$(nodedir)"/hostname.*; do
40 ifname=${interface##*.}
41 install -m 640 -o root:wheel "$interface" /etc && sh /etc/netstart "$ifname"
46 node dhcpcd.conf && nodeinstall -m 644 -o root:wheel dhcpcd.conf /etc
50 node rad.conf && nodeinstall -m 644 -o root:wheel rad.conf /etc
54 node pf.conf && nodeinstall -m 600 -o root:wheel pf.conf /etc &&
55 pfctl -nf /etc/pf.conf && pfctl -ef /etc/pf.conf
59 node ssh/ssh_config && nodeinstall -m 644 -o root:wheel ssh/ssh_config /etc/ssh
60 node ssh/sshd_config && nodeinstall -m 644 -o root:wheel ssh/sshd_config /etc/ssh &&
61 sshd -t && rcctl enable sshd && rcctl restart sshd
65 node dhcpd.conf && nodeinstall -m 640 -o root:wheel dhcpd.conf /etc &&
66 dhcpd -n && rcctl enable dhcpd && rcctl restart dhcpd
70 node ntpd.conf && nodeinstall -m 640 -o root:wheel ntpd.conf /etc &&
71 ntpd -n && rcctl enable ntpd && rcctl restart ntpd
75 node httpd.conf && nodeinstall -m 644 -o root:wheel httpd.conf /etc &&
76 httpd -n && rcctl enable httpd && rcctl restart httpd
79 service_acme_client() {
80 node acme-client.conf && nodeinstall -m 640 -o root:wheel acme-client.conf /etc &&
87 unwind -nf "$(nodedir)/unwind.conf" &&
88 nodeinstall -m 644 -o root:wheel unwind.conf /etc &&
89 rcctl enable unwind && rcctl restart unwind
93 if ! node apmd.ignore; then
94 if ! rcctl get apmd flags | grep -qe '-A'; then
96 rcctl set apmd flags -A
102 # shellcheck disable=SC2046
104 node packages.local && nodeinstall -m 640 -o root:wheel packages.local /etc &&
105 pkg_add $(cat /etc/packages.local)
108 state_storage_devices() {
109 dmesg | grep -e ^sd -e ^wd
112 state_storage_disknames() {
116 state_storage_disklabel() (
118 sysctl -n hw.disknames | tr , \\n |
119 awk -F: '{ print $1 }'
121 for drive in $drives; do
126 state_firmware_upgrades() {
130 state_system_patches() {
134 state_packages_upgrades() {
138 state_packages_repository() {
142 state_networking_interfaces() {