Re: how to move "advskew" out of hostname.carpXXX ?
On 2012/02/15 10:36, PP;QQ 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 ?
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 NAPISAL: > On 2012-02-13, P P;Q Q P(P8P?P8Q P8P= 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 ?
On 2012-02-13, PP;QQ P(P8P?P8QP8P= 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 ?
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 | |
how to move "advskew" out of hostname.carpXXX ?
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