Print

Print


Hi Adrian,

It should work to have a general rule overwritten later in the config.
However, you could also use if .... else.... statements here, like:

if MYREDIRECTOR
    all.role manager
    ....
    ....
else
    all.role server
    .......
    .....
fi

There you can put all options that are different for the redirector
and the servers into the corresponding block.
That way you could put anything for the server into the "else" part,
e.g. one may want to have the logging level differently on server and
redirector.
If you want to restrict the machines that can connect as a server to
your redirector, you could use the "cms.allow" directive.

Hope it helps.

Cheers,
  Marcus


On 2 March 2017 at 22:37, Adrian Sevcenco <[log in to unmask]> wrote:
> Hi! I am trying to construct a configuration file to be used by both manager
> and servers ...
>
> while i am aware that i can do :
> all.role manager if $myRedirector
>
> is there a way to do something like? :
> if not $myRedirector && myRedirector_domain
>   all.role server
> fi
>
> or is it possible to do
> all.role server
> all.role manager if $myRedirector
>
> and the second declaration to overwrite the first?
>
> also is it possible to apply conditions for role?
> if role server
>   apply settings only if server mode
> fi
>
> Thank you!
> Adrian
>
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the XROOTD-L list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1