Skip to content

Commit

Permalink
abstract package manager commands for clean and upgrade (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
crbaird committed Mar 30, 2017
1 parent e2634a1 commit c9c69e0
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/recipes/install/centos7/aarch64/warewulf/slurm/steps.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@
\newcommand{\rms}{SLURM}
\newcommand{\arch}{aarch64}

\newcommand{\clean}{yum clean expire-cache}
\newcommand{\chrootclean}{yum --installroot clean expire-cache}
\newcommand{\install}{yum -y install}
\newcommand{\chrootinstall}{yum -y --installroot=\$CHROOT install}
\newcommand{\groupinstall}{yum -y groupinstall}
\newcommand{\groupchrootinstall}{yum -y --installroot=\$CHROOT groupinstall}
\newcommand{\upgrade}{yum -y upgrade}
\newcommand{\chrootupgrade}{yum -y --installroot=\$CHROOT upgrade}

% boolean for os-specific formatting
\toggletrue{isCentOS}
Expand Down
4 changes: 4 additions & 0 deletions docs/recipes/install/centos7/x86_64/warewulf/pbspro/steps.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
\newcommand{\rms}{PBS Professional}
\newcommand{\arch}{x86\_64}

\newcommand{\clean}{yum clean expire-cache}
\newcommand{\chrootclean}{yum --installroot clean expire-cache}
\newcommand{\install}{yum -y install}
\newcommand{\chrootinstall}{yum -y --installroot=\$CHROOT install}
\newcommand{\groupinstall}{yum -y groupinstall}
\newcommand{\groupchrootinstall}{yum -y --installroot=\$CHROOT groupinstall}
\newcommand{\upgrade}{yum -y upgrade}
\newcommand{\chrootupgrade}{yum -y --installroot=\$CHROOT upgrade}

% boolean for os-specific formatting
\toggletrue{isCentOS}
Expand Down
4 changes: 4 additions & 0 deletions docs/recipes/install/centos7/x86_64/warewulf/slurm/steps.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
\newcommand{\rms}{SLURM}
\newcommand{\arch}{x86\_64}

\newcommand{\clean}{yum clean expire-cache}
\newcommand{\chrootclean}{yum --installroot clean expire-cache}
\newcommand{\install}{yum -y install}
\newcommand{\chrootinstall}{yum -y --installroot=\$CHROOT install}
\newcommand{\groupinstall}{yum -y groupinstall}
\newcommand{\groupchrootinstall}{yum -y --installroot=\$CHROOT groupinstall}
\newcommand{\upgrade}{yum -y upgrade}
\newcommand{\chrootupgrade}{yum -y --installroot=\$CHROOT upgrade}

% boolean for os-specific formatting
\toggletrue{isCentOS}
Expand Down
8 changes: 4 additions & 4 deletions docs/recipes/install/common/upgrade.tex
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ \subsection{Upgrading OpenHPC Packages} \label{appendix:upgrade}
the following can be used to sync to the latest.

\begin{lstlisting}[language=bash,keywords={}]
[sms](*\#*) yum clean expire-cache
[sms](*\#*) yum --installroot=$CHROOT clean expire-cache
[sms](*\#*) (*\clean*)
[sms](*\#*) (*\chrootclean*)
\end{lstlisting}

\item Upgrade master (SMS) node

\begin{lstlisting}[language=bash,keywords={}]
[sms](*\#*) yum upgrade "*-ohpc"
[sms](*\#*) (*\upgrade*) "*-ohpc"
\end{lstlisting}

\item Upgrade packages in compute image

\begin{lstlisting}[language=bash,keywords={}]
[sms](*\#*) yum --installroot=$CHROOT upgrade "*-ohpc"
[sms](*\#*) (*\chrootupgrade) "*-ohpc"
\end{lstlisting}

\item Rebuild VNFS image(s)
Expand Down
4 changes: 4 additions & 0 deletions docs/recipes/install/sles12/aarch64/warewulf/slurm/steps.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@
\newcommand{\rms}{SLURM}
\newcommand{\arch}{aarch64}

\newcommand{\clean}{zypper clean}
\newcommand{\chrootclean}{zypper --root \$CHROOT clean}
\newcommand{\install}{zypper -n install}
\newcommand{\chrootinstall}{zypper -n --root \$CHROOT install}
\newcommand{\groupinstall}{zypper -n install -t pattern}
\newcommand{\groupchrootinstall}{zypper -n --root \$CHROOT install -t pattern}
\newcommand{\upgrade}{zypper -n dup}
\newcommand{\chrootinstall}{zypper -n --root \$CHROOT dup}

% boolean for os-specific formatting
\togglefalse{isCentOS}
Expand Down
4 changes: 4 additions & 0 deletions docs/recipes/install/sles12/x86_64/warewulf/pbspro/steps.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
\newcommand{\rms}{PBS Professional}
\newcommand{\arch}{x86\_64}

\newcommand{\clean}{zypper clean}
\newcommand{\chrootclean}{zypper --root \$CHROOT clean}
\newcommand{\install}{zypper -n install}
\newcommand{\chrootinstall}{zypper -n --root \$CHROOT install}
\newcommand{\groupinstall}{zypper -n install -t pattern}
\newcommand{\groupchrootinstall}{zypper -n --root \$CHROOT install -t pattern}
\newcommand{\upgrade}{zypper -n dup}
\newcommand{\chrootinstall}{zypper -n --root \$CHROOT dup}

% boolean for os-specific formatting
\togglefalse{isCentOS}
Expand Down
4 changes: 4 additions & 0 deletions docs/recipes/install/sles12/x86_64/warewulf/slurm/steps.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
\newcommand{\rms}{SLURM}
\newcommand{\arch}{x86\_64}

\newcommand{\clean}{zypper clean}
\newcommand{\chrootclean}{zypper --root \$CHROOT clean}
\newcommand{\install}{zypper -n install}
\newcommand{\chrootinstall}{zypper -n --root \$CHROOT install}
\newcommand{\groupinstall}{zypper -n install -t pattern}
\newcommand{\groupchrootinstall}{zypper -n --root \$CHROOT install -t pattern}
\newcommand{\upgrade}{zypper -n dup}
\newcommand{\chrootinstall}{zypper -n --root \$CHROOT dup}

% boolean for os-specific formatting
\togglefalse{isCentOS}
Expand Down

0 comments on commit c9c69e0

Please sign in to comment.