\noindent Similarly, we can configure Slurm and import the cryptographic
key that is required by the {\em munge} authentication library to be available
on every host in the resource management pool, issue the following:

% begin_ohpc_run
\begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true]
# Configure Slurm server in the overlay (using "configless" option)
# using a tag in a template file (slurmd.ww)
[sms](*\#*) wwctl overlay import --parents nodeconfig \
 /opt/ohpc/pub/examples/slurm/slurmd.ww /etc/sysconfig/slurmd.ww

# Set the value of the slurmctld tag to the $sms_ip for the nodes profile.
[sms](*\#*) wwctl profile set --yes nodes --tagadd slurmctld=${sms_ip}

# Configure munge
[sms](*\#*) wwctl overlay import --parents nodeconfig /etc/munge/munge.key
[sms](*\#*) wwctl overlay chown nodeconfig /etc/munge/munge.key $(id -u munge) $(id -g munge)
[sms](*\#*) wwctl overlay chown nodeconfig /etc/munge $(id -u munge) $(id -g munge)
[sms](*\#*) wwctl overlay chmod nodeconfig /etc/munge 0700
\end{lstlisting}
% \end_ohpc_run
