On 01/11/13 12:28 PM, Tim Foster wrote:
Fair enough. I'm going to be on vacation for the next 2 weeks, but I'll
see if there's a way I can make this work when I get back
Ok, here's another round of this wad. The main changes are:
* Configuration is done with the SMF properties:
'config/ref_image' A reference pkg(5) image
'config/publishers' The publishers in that image we should
mirror.
By default, these are set to:
config/ref_image = '/'
config/publishers = 'solaris'
* We deliver a new SMF service
svc:/application/pkg/varshare-repositories:default, enabled by
default which creates a new dataset called rpool/VARSHARE/pkg/repositories.
* When starting an instance of svc:/application/pkg/mirror, if the
repository directory parent is the leaf of a ZFS dataset, we create a
new child ZFS dataset for the repository.
So, as shipped out of the box, if you just do:
# svcadm enable mirror
you get a new zfs dataset rpool/VARSHARE/pkg/repositories/solaris
containing a repository that mirrors whatever 'solaris' origins you have
configured in '/' (whether that's 'support', or 'release' or both)
whenever the cron job fires - monthly at 2:30 am on a day of the month
randomly chosen the first time the service ever starts, by default.
There's a webrev, and incremental at:
https://cr.opensolaris.org/action/browse/pkg/timf/periodic-recv-1
I'll file a man-page bug to add a new section to pkgrecv(1) to document
the service once we've settled on the interface.
cheers,
tim
_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss