Re: how to move advskew out of hostname.carpXXX ?

2012-02-15 Thread Stuart Henderson
On 2012/02/15 10:36, PP;QQ P(P8P?P8QP8P= wrote:
 I wonder if /etc/rc.conf.local included into hostname.xxx scripts ?
 
 if so, I could use
 
 advskew=100 in rc.conf.local and
 
 $advskew in hostname.xxx later

It might work; try it.. I don't think it is any more clean than backquotes
though. The problem with things like this is that changes to the OS may break
them in the future.

But maybe this would be useful enough to document it and support it properly..



Re: how to move advskew out of hostname.carpXXX ?

2012-02-14 Thread Stuart Henderson
On 2012-02-13, PP;QQ P(P8P?P8QP8P= chipits...@gmail.com wrote:
  Hello!

 I'd like to sync /etc/hostname.carpXXX files between MASTER and BACKUP, the
 only difference, of course is advskew paramter. Is there a way to specify
 it in different config file ?

 I seen bug report on fwbuilder (www.fwbuilder.org), which describes
 something called create_args_carp0, but I didn't found any other presence
 of it:


 see #2636
 carp : Incorrect output in rc.conf.local format. Should use
 create_args_carp0 instead of ifconfig_carp0 to set up CARP interface vhid,
 pass and adskew parameters.


 Cheers,
 Ilya Shipitsin



Adding something like this currently seems to work, but it's pretty dirty:

`cat /etc/advskew`



Re: how to move advskew out of hostname.carpXXX ?

2012-02-14 Thread Илья Шипицин
I wonder if /etc/rc.conf.local included into hostname.xxx scripts ?

if so, I could use

advskew=100 in rc.conf.local and

$advskew in hostname.xxx later

14 FEWRALQ 2012 G. 23:29 POLXZOWATELX Stuart Henderson
s...@spacehopper.orgNAPISAL:

 On 2012-02-13, P P;Q Q  P(P8P?P8Q P8P= chipits...@gmail.com wrote:
   Hello!
 
  I'd like to sync /etc/hostname.carpXXX files between MASTER and BACKUP,
 the
  only difference, of course is advskew paramter. Is there a way to
 specify
  it in different config file ?
 
  I seen bug report on fwbuilder (www.fwbuilder.org), which describes
  something called create_args_carp0, but I didn't found any other
 presence
  of it:
 
 
  see #2636
  carp : Incorrect output in rc.conf.local format. Should use
  create_args_carp0 instead of ifconfig_carp0 to set up CARP interface
 vhid,
  pass and adskew parameters.
 
 
  Cheers,
  Ilya Shipitsin
 
 

 Adding something like this currently seems to work, but it's pretty dirty:

 `cat /etc/advskew`



how to move advskew out of hostname.carpXXX ?

2012-02-13 Thread Илья Шипицин
 Hello!

I'd like to sync /etc/hostname.carpXXX files between MASTER and BACKUP, the
only difference, of course is advskew paramter. Is there a way to specify
it in different config file ?

I seen bug report on fwbuilder (www.fwbuilder.org), which describes
something called create_args_carp0, but I didn't found any other presence
of it:


see #2636
carp : Incorrect output in rc.conf.local format. Should use
create_args_carp0 instead of ifconfig_carp0 to set up CARP interface vhid,
pass and adskew parameters.


Cheers,
Ilya Shipitsin



Re: how to move advskew out of hostname.carpXXX ?

2012-02-13 Thread James A. Peltier
Why not just use sed to modify the file before the copy to the backup.  Else, 
you can use puppet templates or some other solution.

- Original Message -
| Hello!
| 
| I'd like to sync /etc/hostname.carpXXX files between MASTER and
| BACKUP, the
| only difference, of course is advskew paramter. Is there a way to
| specify
| it in different config file ?
| 
| I seen bug report on fwbuilder (www.fwbuilder.org), which describes
| something called create_args_carp0, but I didn't found any other
| presence
| of it:
| 
| 
| see #2636
| carp : Incorrect output in rc.conf.local format. Should use
| create_args_carp0 instead of ifconfig_carp0 to set up CARP interface
| vhid,
| pass and adskew parameters.
| 
| 
| Cheers,
| Ilya Shipitsin
| 
|