Added cron job for freebsd
This commit is contained in:
		
							parent
							
								
									088242592a
								
							
						
					
					
						commit
						35144901fa
					
				
							
								
								
									
										15
									
								
								certbot.cf
								
								
								
								
							
							
						
						
									
										15
									
								
								certbot.cf
								
								
								
								
							|  | @ -40,6 +40,21 @@ packages: | |||
| 			policy => "present", | ||||
| 			package_module => apt_get, | ||||
| 			handle => "certbot_installed"; | ||||
| files: | ||||
| 	freebsd:: | ||||
| 		"/etc/cron.d/certbot" | ||||
| 			create => "true", | ||||
| 			copy_from => local_cp("$(sys.workdir)/inputs/$(def.mfdomain)/templates/certbot-cron.mustache"); | ||||
| 	 | ||||
| #			content => '#  | ||||
| # Managed by CFEngine | ||||
| # | ||||
| #SHELL=/bin/sh | ||||
| #PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||||
| 
 | ||||
| #0 */12 * * * root certbot -q renew --no-random-sleep-on-renew | ||||
| 
 | ||||
| #'; | ||||
| } | ||||
| 
 | ||||
| bundle agent certbot_cert(site,webroot) | ||||
|  |  | |||
|  | @ -0,0 +1,8 @@ | |||
| #  | ||||
| # Managed by CFEngine | ||||
| # | ||||
| SHELL=/bin/sh | ||||
| PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||||
| 
 | ||||
| 0 */12 * * * root certbot -q renew --no-random-sleep-on-renew | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue