unique template common/torque2/munge/key_file_nfs; # #Configuring mountpoint for exporting the Munge key # variable NFS_MOUNT_POINTS ?= nlist(); variable NFS_MOUNT_POINTS ={ if(is_defined(TORQUE_SERVER_HOST) && (TORQUE_SERVER_HOST != FULL_HOSTNAME)){ SELF['mountedFS'][escape('/etc/munge')] = nlist('nfsPath',TORQUE_SERVER_HOST+':/etc/munge', 'nfsVersion', NFS_DEFAULT_VERSION); }else{ SELF['servedFS'][escape('/etc/munge')] = nlist('localPath','/etc/munge','nfsVersion',NFS_DEFAULT_VERSION); }; SELF; }; variable NFS_SERVER_ENABLED = if ( !is_defined(TORQUE_SERVER_HOST) || (TORQUE_SERVER_HOST == FULL_HOSTNAME) ) { true } else { false }; include { 'components/filecopy/config' }; variable MUNGE_KEY_GENERATOR_CONTENT = <