On 08/19/2013 04:36 PM, Kashif Mohammad wrote:
> For SL6 there is no yum autoupdate service. yum-autoupdate-2-5.2.noarch provides a daily cronjob. It can be disabled by editing /etc/sysconfig/yum-autoupdate files.
Re: puppet/yum integration. Puppet "expects" any repo it needs to be
enabled. It has no way to toggle them according to whether it "thinks"
it might need them. It just installs/updates the package, and hopes for
the best. If the repo containing the package is disabled, nothing is found.
It would be easy to write a (say) sed script that does the enable, and
another that does the disable. These could be executed in order each
time puppet polls the puppet-server, around the package "commands"
(which ultimately result in yum updates). There are several ways of
doing this that I can think of, both inside and outside puppet. However,
the ways involve scripts and/or execs, which are (to be honest) in
contravention of the puppet ethos, which is non-procedural (supposedly).
Cheers,
Steve
--
Steve Jones [log in to unmask]
System Administrator office: 220
High Energy Physics Division tel (int): 42334
Oliver Lodge Laboratory tel (ext): +44 (0)151 794 2334
University of Liverpool http://www.liv.ac.uk/physics/hep/
|