maas ALL= NOPASSWD: /usr/bin/lshw
maas ALL= NOPASSWD: /sbin/blockdev

# MAAS network monitoring tools.
maas ALL= NOPASSWD: /usr/lib/maas/network-monitor
maas ALL= NOPASSWD: /usr/lib/maas/beacon-monitor

# Control of the NTP server: MAAS needs to reconfigure it after editing
# its configuration file, and start it again if stopped manually.
maas ALL= NOPASSWD: /bin/systemctl restart ntp
maas ALL= NOPASSWD: /bin/systemctl start ntp
maas ALL= NOPASSWD: /bin/systemctl status ntp

# Writing and deleting files as root.
maas ALL= NOPASSWD: /usr/lib/maas/maas-delete-file
maas ALL= NOPASSWD: /usr/lib/maas/maas-write-file

# Allow active subnet mapping
maas ALL= NOPASSWD: /usr/lib/maas/maas-common scan-network *
