- From: Steffen Gebert <
>
- To:
- Subject: [chef] Re: Automating Gerrit Ssh Keys
- Date: Fri, 10 Jan 2014 08:40:29 +0100
>
What did you do about flushing cache? Maybe cache gets flushed if you
>
restart gerrit anyway...
Sure, the caches are in-memory.
When setting up one user in the beginning this might be okay, but in
general, restarting over and over again is not practical.
Yours
Steffen
On 10/01/14 01:52, Stephen Nelson-Smith wrote:
>
What did you do about flushing cache? Maybe cache gets flushed if you
>
restart gerrit anyway...
>
>
>
On 9 January 2014 20:44, Adam Jacob
>
<
>
>
wrote:
>
>
> I jammed the admin in the database directly. Then the api after.
>
> On Jan 9, 2014 10:35 AM, "Stephen Nelson-Smith" <
>
>
>
>
> wrote:
>
>
>
>> Ohai,
>
>>
>
>> I find myself in a bit of a dependency cycle. I want to be able to
>
>> automate the creation of accounts and running of gerrit commands over ssh.
>
>> In the simplest case, I want to automate the creation of a
>
>> non-interactive
>
>> Jenkins user, but that's just a specific example of a general requirement.
>
>>
>
>> As far as I can tell, there are three ways to get ssh keys for Gerrit
>
>> users into Gerrit:
>
>>
>
>> 1) Upload them via the web interface
>
>> 2) Supply them via the gerrit create-account command
>
>> 3) Stick them directly in the database and flush the cache
>
>>
>
>> I have issues with all 3:
>
>>
>
>> 1) This just really sucks. Sure I can automate it, but… really?
>
>> 2) This has a dependency problem - you need a user with an ssh key in the
>
>> first place
>
>> 3) This is a bit nasty, and so far I haven't found a way to flush the
>
>> cache without using the ssh command, so has the same dependency issue
>
>>
>
>> Have any of you chefs solved this?
>
>>
>
>> S.
>
>>
>
>> --
>
>> Stephen Nelson-Smith
>
>> @LordCope
>
>> http://www.agilesysadmin.net
>
>>
>
>
>
>
Archive powered by MHonArc 2.6.16.