Allow configuring ha_propagate default per-service
There are many services on TrueNAS for which we should not propogate
service changes to standby controller. Historically the default has
been to always propagate these changes to the standby controller.
This commit allows changing the default on a per-service basis, which
reduces risk of introducing issues by forgetting to specify not to
propagate to other controller.
Allow configuring ha_propagate default per-service
There are many services on TrueNAS for which we should not propogate
service changes to standby controller. Historically the default has
been to always propagate these changes to the standby controller.
This commit allows changing the default on a per-service basis, which
reduces risk of introducing issues by forgetting to specify not to
propagate to other controller.
Avoid restarting SMB / NFS in critical group if DS enabled
SMB and NFS services will be restarted once we have initialized
kerberos tickets and directory services if they are enabled.
Avoid restarting SMB / NFS in critical group if DS enabled
SMB and NFS services will be restarted once we have initialized
kerberos tickets and directory services if they are enabled.
Refactor SMB and Directory Services plugins
The various plugins and methods still had vestigial code and
design from when these plugins were clustered. This commit
simplifies general SMB configuration (flat file for global
settings rather than using the registry).
This commit moves registry-related functions to dedicated utils
that can be imported and directly called.
Methods using a samba loadparm context are moved into a dedicated
utils file as well and mutex-protected.
Various constants are moved into a dedicated file as well.
Improved error handling is added for wrappers around "net conf"
which uses libsmbconf to effect changes in the Samba running
configuration. Specifically, there are edge cases where user can
use auxiliary parameters to ram garbage into our configuration.
[2 lines not shown]