[rancid] How .cloginrc works and can i have separate .cloginrc files for each group

Doug Hughes doug.hughes at keystonenap.com
Mon Feb 20 14:20:32 UTC 2017


That's basically what I would have recommended. Put a line like that in 
each cron that you want to execute as a separate rancid instance right 
above the cron entry.



On 2/20/2017 8:56 AM, Adrian Dimitrov wrote:
> Hello Again,
>
> I made it work with adding the following:
>
> CLOGINRC="/usr/local/rancid/var/Group/.cloginrc"; export CLOGINRC
>
> Still an example will be apriciated.
>
> Best Regards,
> Adrian Dimitrov
> System Administrator
>
>
> -----Original Message-----
> From: Adrian Dimitrov
> Sent: Monday, February 20, 2017 11:49 AM
> To: 'heasley' <heas at shrubbery.net>
> Cc: rancid-discuss at shrubbery.net
> Subject: RE: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group
>
> Hello Heasley , team ,
>
> I tried another thing, adjusting .cloginrc file with include <file>, and made a new file for each group/customer. This works as a charm, but still, it is not suitable for our environment, so I tried to add variable to custom rancid.conf file, but unfortunately it didn't work. I am still not skillful enough, can u please give me a simple example.
>
> What I did was:
> 1. Copied original rancid.conf and move it to Group1 directory, same thing for .cloginrc.
> 2. creating variable .cloginrc=Directory where the new file is, in this case directory of group1.
>
> Still rancid is using the original .cloginrc file or if there is no such file I get an error.
>
> Best Regards,
> Adrian Dimitrov
> System Administrator
>
>
> -----Original Message-----
> From: heasley [mailto:heas at shrubbery.net]
> Sent: Thursday, February 16, 2017 6:46 PM
> To: Adrian Dimitrov <adrian.dimitrov at efellows.bg>
> Cc: heasley <heas at shrubbery.net>; rancid-discuss at shrubbery.net
> Subject: Re: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group
>
> Thu, Feb 16, 2017 at 04:36:46PM +0000, Adrian Dimitrov:
>> Hello I get the point and went through the manuals, one last thing, I cannot find where in the rancid.conf file I can set which .cloginrc to use.
> just add a line; its just shell variables.
>
>> One last thing I guess custom rancid.conf should be copied from the original one and customized.
> customize it.
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

-- 
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562) 	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170220/3f5b36ec/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keystone-nap.png
Type: image/png
Size: 3476 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170220/3f5b36ec/attachment.png>


More information about the Rancid-discuss mailing list