[Pulp-list] client (alt) config

Jeff Ortel jortel at redhat.com
Thu Aug 26 16:23:37 UTC 2010


On 08/26/2010 08:43 AM, Jeff Ortel wrote:
>
>
> On 08/25/2010 07:38 PM, jdobies at redhat.com wrote:
>> Awesome. If I pass --server to pulp-client will it update the override
>> or just the default one?
>
> Looks like the --server updates the default (/etc/pulp/client.conf).
> Since the alt config is merged into the config object in memory, the
> merged (def + alt overrides) will be written to the default.
>
> The override is really designed for developers so not sure why you'd use
> --server and specify and alt config. Seems like the --server is mainly
> intended for end users. That said, I guess it would make sense to write
> to the alt config instead when one is specified. That would continue to
> preserve the default config in you git checkout.

This made sense so I pushed the change.  Now when the in memory configuration is updated 
(as with --server) and environment variable PULP_CLEINT_ALTCONF is defined, only the *alt* 
configuration file is updated.  Only those sections/properties defined in the alt 
configuration are updated.

>
>>
>> Sent from my iPhone
>>
>> On Aug 25, 2010, at 7:53 PM, Jeff Ortel<jortel at redhat.com> wrote:
>>
>>> All,
>>>
>>> I enhanced the client configuration class to read and merge an
>>> alternate configuration defined by the PULP_CLIENT_ALTCONF
>>> environment variable. This variable (when specified) contains the
>>> fully qualified path to a complete or partial client configuration
>>> file. Properties from the alternate configuration are merged into the
>>> standard configuration (/etc/pulp/client.conf) at runtime.
>>>
>>> I have PULP_CLIENT_ALTCONF=/home/jortel/.pulp/client.conf
>>>
>>> which contains:
>>>
>>> [server]
>>> host = localhost.localdomain
>>>
>>> to override the server host to match the certificate.
>>>
>>> Hope this is helpful.
>>>
>>> -jeff
>>>
>>> _______________________________________________
>>> Pulp-list mailing list
>>> Pulp-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/pulp-list
>
>
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5126 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20100826/7bac2e78/attachment.p7s>


More information about the Pulp-list mailing list