I''ve posted a FreeBSD portsnap class for those wanting to automate the
use of portsnap for ports maintenance (fetch, extraction, cron, and
update).
http://reductivelabs.com/trac/puppet/wiki/PuppetFreeBSD#portsnap
## EXAMPLE
import ''freebsd.pp''
import ''schedule.pp''
node ''freebsd.local'' {
include freebsd::portsnap
}
## END
Depends on a schedule ''maint'' that runs once a night and class
freebsd
having $_portsdir set. I recommend using tricks like the following so
that you can set $freebsd::portsdir wherever to whatever, if you need
to.
class freebsd {
$_portsdir = $portsdir ? { '''' =>
''/usr/ports'', default => $portsdir }
}
schedule { maint:
range => "1 - 5",
period => daily,
repeat => 1
}
-sc
--
Sean Chittenden
sean@chittenden.org