Here's the system repository work that Tim and I have been working on for quite a while now.
http://cr.opensolaris.org/~bpytlik/ips-sysrepo-v1/

Bugs:
    11684 desire option to not propagate certs to non-global zones
    17522 system repository should provide basic functionality
    17523 Need a functioning sysdepo
17524 system depot should auto generate its configuration based on system image
    17525 system depot should respond to versions/0
    17526 system depot should provide publisher configuration
    17527 caching should be enabled for system depot
    17528 system depot should proxy http repositories
    17529 system depot should proxy https repositories
    17530 pkg client needs to be aware of the system repository
    17531 pkg needs to cache system publisher information
17532 pkg should retrieve publisher information from the system repository when configured 17533 pkg needs to use the system repository as a proxy for http repositories 17534 pkg needs to use the system repository as a proxy for https repositories 17535 need an image property to indicate whether to use the system repository
    17536 an image shouldn't require any configured publishers
    17537 notion of preferred publisher should be removed
17538 pkg should be able to merge system publisher info with locally configured publishers 17539 pkg should notify that users cannot modify system publishers in certain ways 17540 pkg publisher needs to be updated to include information about system publishers
    17541 pkg will need a way to specify alternate system repository urls
    17547 file repositories need to be proxied by the system repository
    17594 pkg set-publisher in GZ should refresh sysdepo service
17604 converting an imageconfig object to a string causes an infinite loop
    17847 pkg set-publisher shouldn't allow -P along with --search-*
17911 pkg image-create should allow an image to be created without a publisher


I put together some examples of the output when the system repo is involved, but I probably didn't get everything, so if you're curious what something looks like, just let me know and I'll put and example together.

Output of 'pkg publisher test1'
# Publisher: test1
#                 Alias:
#            Origin URI: proxy://http://localhost:12003/
#               SSL Key: None
#              SSL Cert: None
#           Client UUID: aea0ff56-5b4f-11e0-b301-8021283cb48c
#       Catalog Updated: March 31, 2011 04:30:55 AM
#               Enabled: Yes


Output of pkg publisher with 1 system publisher and one local publisher configured.Test 12 has two origins, a locally configured origin which points to a file repo, and a proxied http repo.
# PUBLISHER                             TYPE     STATUS   URI
# test12 (non-sticky, syspub) origin online file:///tmp/bpytlik/ips.test.28131/repo_contents2/ # test12 (non-sticky, syspub) origin online proxy://http://localhost:12004/ # test1 origin online file:///tmp/bpytlik/ips.test.28131/repo_contents1/


Output of pkg publisher with 3 system publishers, each with a proxied file repo as an origin and a proxied http repo as a mirror.
# PUBLISHER                             TYPE     STATUS   URI
# test1 (syspub) origin online http://localhost:12001/test1/11c3103539833d8b29497bc9f65223fa7d51a474/ # test1 (syspub) mirror online proxy://http://localhost:12003/ # test12 (non-sticky, syspub) origin online http://localhost:12001/test12/48f97a268a56deb8eae7a7a864c441fa215e44da/ # test12 (non-sticky, syspub) mirror online proxy://http://localhost:12004/ # test3 (syspub) origin online http://localhost:12001/test3/af1a6c938ed2eae9bc3b4a7e5b1a5a8e178bb7fa/ # test3 (syspub) mirror online proxy://http://localhost:12005/


Here are some examples of messages when a user attempts to modify a system publisher.
# pkg set-publisher: Cannot enable or disable a system publisher

# pkg set-publisher: Cannot enable or disable a system publisher

# pkg set-publisher: Cannot change the stickiness of a system publisher

# pkg set-publisher: Cannot change the stickiness of a system publisher

# pkg set-publisher: Cannot set a property for a system publisher. The property was:foo

# pkg set-publisher: Cannot unset a property for a system publisher.

# pkg set-publisher: Cannot set a property for a system publisher. The property was:test-property

# pkg set-publisher: Cannot remove a value from the property test-property because the property does not exist.

# pkg unset-publisher: Removal failed for 'test1': test1 is a system publisher and cannot be unset.
#
# pkg set-publisher: Publisher 'test1' is a system publisher and cannot be moved.


Thanks for taking a look!
Brock
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to