Tyson
thanks for this - just what I needed!
only other thing I needed to do was add the definition of the repo root
(in your example)
# svccfg -s pkg/server:lab setprop pkg/inst_root="/rpool/repo/lab_repo"
Cheers
Frank
Date: Mon, 28 Nov 2011 13:27:29 -0600
From: Tyson Ainsworth<[email protected]>
To:[email protected]
Subject: Re: [caiman-discuss] multiple instances of pkg/server on same
system
Message-ID:<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Hi Frank,
I didn't see a response to your question but I had the same
problem/question not to long ago. I don't know if this is the best way
but after many trails this is what finally worked for me.
Creating a second repo and pkg/server:
# mkdir /rpool/repo/lab_repo
# pkgrepo create /rpool/repo/lab_repo
# pkgrepo set -s /rpool/repo/lab_repo publisher/prefix=lab
# svccfg -s pkg/server add lab
# svccfg -s pkg/server:lab addpg pkg application
# svccfg -s pkg/server:lab setprop pkg/port=81
# svccfg -s pkg/server:lab addpg general framework
# svccfg -s pkg/server:lab addpropvalue general/complete astring: "lab"
# svccfg -s pkg/server:lab addpropvalue general/enabled boolean: true
-Tyson
On 11/27/11 10:19 PM, Frank Allan wrote:
Ok, I give up.
As Sanjay said I just need to create new instances of pkg/server with
different ports, but for the life of me I cannot find a way to do this.
I tried 'svccfg export pkg/server>
/lib/svc/manifest/site/pkg/pkgserv-site.xml'
and then attempted to add an instance name but I keep running into DTD
validation errors
Is there some documented way to create another instance of a service?
If it is in the docs, it is well hidden.
Any pointers on a recommended (or documented) way of doing this?
Cheers
Frank
--
on 14 Nov, Sanjay wrote:
What you have described is exactly what needs to be done. Of course you
will have multiple pkg.depotd daemons running, one for each port.
On 11/14/11 07:15, Frank Allan wrote:
I have a pkg/server:default instance running on a disconnected system
using port 3333
Can I have another instance (pkg/server:updates for example) running
on port 3334 or another port, and just define multiple publishers for
systems I want to use both.
What I want to have is:
- a*single* repository server
- the standard 11/11 repo available as the default for all systems
- a site-specific repo available for all clients
- SRU1 repo also available for selected clients
- s11u1b<nn> repo also available for selected clients
so that I can define a set of publishers for a client that would look
like:
solarishttp://internalrepo:3333 (s11 11/11)
sitebitshttp://internalrepo:3334
sru1http://internalrepo:3335
and for other clients
solarishttp://internalrepo:4444 (s11u1bnn)
sitebitshttp://internalrepo:3334
I believe this is possible.
Is it just a case of creating other instances of pkg/server with
appropriate names and specifying the source and the port number for
each, or is there something else which needs to be done?
Cheers
Frank
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss