23 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| files = {
 | |
|     '/etc/nftables.conf': {
 | |
|         'content_type': 'mako',
 | |
|         'mode': '0755',
 | |
|         'context': {
 | |
|             'input': node.metadata.get('nftables/input'),
 | |
|             'forward': node.metadata.get('nftables/forward'),
 | |
|             'output': node.metadata.get('nftables/output'),
 | |
|             'nat': node.metadata.get('nftables/nat'),
 | |
|         },
 | |
|         'triggers': [
 | |
|             'svc_systemd:nftables.service:reload',
 | |
|         ],
 | |
|     },
 | |
| }
 | |
| 
 | |
| svc_systemd = {
 | |
|     'nftables.service': {
 | |
|         'needs': [
 | |
|             'pkg_apt:nftables',
 | |
|         ],
 | |
|     },
 | |
| }
 |