Initial commit, squashed
This commit is contained in:
		
						commit
						158e8740b8
					
				
					 83 changed files with 2718 additions and 0 deletions
				
			
		
							
								
								
									
										22
									
								
								roles/exit/templates/keepalived.conf.j2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								roles/exit/templates/keepalived.conf.j2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
{% set exits = [inventory_hostname, peer] -%}
 | 
			
		||||
 | 
			
		||||
global_defs {
 | 
			
		||||
    enable_script_security
 | 
			
		||||
    script_user root
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
vrrp_instance dhcrelay {
 | 
			
		||||
    virtual_router_id 50
 | 
			
		||||
    virtual_ipaddress { 169.254.1.1/24 }
 | 
			
		||||
    interface peerlink.4
 | 
			
		||||
{% for exit in exits %}
 | 
			
		||||
    @{{ exit }} priority {{ loop.index }}
 | 
			
		||||
    @{{ exit }} unicast_src_ip {{ "169.254.1.0/24" | ipaddr(loop.index + 1) | ipaddr('address') }}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
    unicast_peer {
 | 
			
		||||
{% for exit in exits %}
 | 
			
		||||
        @^{{ exit }} {{ "169.254.1.0/24" | ipaddr(loop.index + 1) | ipaddr('address') }}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
    }
 | 
			
		||||
    notify /usr/local/bin/keepalive-service
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue