feat(role): Initial commit
This commit is contained in:
		
							
								
								
									
										12
									
								
								files/etc/systemd/system/update-firewall-source.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								files/etc/systemd/system/update-firewall-source.service
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| [Unit] | ||||
| Description=firewalld direct rules generator | ||||
| After=multi-user.target network-online.target | ||||
|  | ||||
| [Service] | ||||
| Type=oneshot | ||||
| RemainAfterExit=no | ||||
| Environment='PATH=/usr/local/sbin:/usr/local/bin:/usr/bin' 'UFS_LOGLEVEL=INFO' | ||||
| ExecStart=/opt/miniconda3/envs/update-firewall-source/bin/python /opt/python/update-firewall-source/master/update-firewall-source.py | ||||
|  | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
| @@ -0,0 +1,12 @@ | ||||
| [Unit] | ||||
| Description=firewalld direct rules generator | ||||
| After=multi-user.target network-online.target | ||||
|  | ||||
| [Service] | ||||
| Type=oneshot | ||||
| RemainAfterExit=no | ||||
| Environment='PATH=/usr/local/sbin:/usr/local/bin:/usr/bin' 'UFS_LOGLEVEL=INFO' | ||||
| ExecStart=/opt/miniconda3/envs/update-firewall-source/bin/python /opt/python/update-firewall-source/master/update-firewall-source.py | ||||
|  | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										13
									
								
								files/etc/systemd/system/update-firewall-source.timer
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								files/etc/systemd/system/update-firewall-source.timer
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| [Unit] | ||||
| Description=Run firewalld direct rules generator | ||||
|  | ||||
| [Timer] | ||||
| OnCalendar= | ||||
| OnCalendar=4,5,6:00,15,30,45 Europe/Berlin | ||||
| OnCalendar=1,10,14,18,22:00 Europe/Berlin | ||||
| OnBootSec=5min | ||||
| RandomizedDelaySec=2min | ||||
| Persistent=true | ||||
|  | ||||
| [Install] | ||||
| WantedBy=timers.target | ||||
| @@ -0,0 +1,13 @@ | ||||
| [Unit] | ||||
| Description=Run firewalld direct rules generator | ||||
|  | ||||
| [Timer] | ||||
| OnCalendar= | ||||
| OnCalendar=4,5,6:00,15,30,45 Asia/Shanghai | ||||
| OnCalendar=1,10,14,18,22:00 Asia/Shanghai | ||||
| OnBootSec=5min | ||||
| RandomizedDelaySec=2min | ||||
| Persistent=true | ||||
|  | ||||
| [Install] | ||||
| WantedBy=timers.target | ||||
		Reference in New Issue
	
	Block a user