I have a few low importance utility servers running CentOS 6.6 x64 .They are basically just used as SSH jump boxes and a few little utilities installed here and there. I'd like them to just go ahead and patch themselves when ever they feel like it. I really don't care if they break, go down or anything like that. The challenge is that there is 1 package in our repos that I don't want them updating since our config management system manages that package and just immediately downgrades it.
Here is what I started with.
Code: Select all
host=`hostname`
yum clean all
yum update -y
logger "app=patching start=true host=$host message=host_was_patched"