Replace fixed value with variables
This commit is contained in:
parent
ce71e12139
commit
09f971ff9c
@ -3,9 +3,9 @@
|
|||||||
sleep 60
|
sleep 60
|
||||||
batctl=/usr/local/sbin/batctl
|
batctl=/usr/local/sbin/batctl
|
||||||
ip=/sbin/ip
|
ip=/sbin/ip
|
||||||
communitymacaddress="a2:8c:ae:6f:f6"
|
communitymacaddress="{{ communitymac }}"
|
||||||
localserver=$(/bin/hostname)
|
localserver=$(/bin/hostname)
|
||||||
communityname=troisdorf
|
communityname={{ communityname }}
|
||||||
|
|
||||||
# Rest Starten
|
# Rest Starten
|
||||||
$ip link set address $communitymacaddress:0${localserver#$communityname} dev bat0
|
$ip link set address $communitymacaddress:0${localserver#$communityname} dev bat0
|
||||||
|
@ -4,7 +4,7 @@ address={{ ansible_default_ipv4.address }}
|
|||||||
; Ports where the broker will listen on
|
; Ports where the broker will listen on
|
||||||
port={{ sn_l2tp_tb_port }}
|
port={{ sn_l2tp_tb_port }}
|
||||||
; Interface with that IP address
|
; Interface with that IP address
|
||||||
interface=ens18
|
interface={{ sn_interface_name }}
|
||||||
; Maximum number of cached cookies, required for establishing a
|
; Maximum number of cached cookies, required for establishing a
|
||||||
; session with the broker
|
; session with the broker
|
||||||
max_cookies=1024
|
max_cookies=1024
|
||||||
@ -21,7 +21,7 @@ pmtu_discovery=false
|
|||||||
; Namespace (for running multiple brokers); note that you must also
|
; Namespace (for running multiple brokers); note that you must also
|
||||||
; configure disjunct ports, and tunnel identifiers in order for
|
; configure disjunct ports, and tunnel identifiers in order for
|
||||||
; namespacing to work
|
; namespacing to work
|
||||||
namespace=troisdorf
|
namespace={{ communityname }}
|
||||||
|
|
||||||
; Reject connections if there are less than N seconds since the last connection.
|
; Reject connections if there are less than N seconds since the last connection.
|
||||||
; Can be less than a second (e.g., 0.1).
|
; Can be less than a second (e.g., 0.1).
|
||||||
|
Loading…
Reference in New Issue
Block a user