Add CRON schedule to route53-ddns service

Signed-off-by: Webster Mudge <wmudge@gmail.com>
This commit is contained in:
Webster Mudge 2022-08-03 17:44:00 -04:00
parent 16caf4f27f
commit ea91f72744
No known key found for this signature in database
GPG key ID: DDD99B2BBDAE708C
3 changed files with 11 additions and 0 deletions

View file

@ -32,3 +32,9 @@ To set up Route53 to work with the service, please review the [Prerequisites](ht
| route53_hosted_zone_id | Route53 hosted zone ID | mandatory |
| route53_ttl | Time-to-live for the DNS entry | |
| route53_host | Wildcard domain to update | |
### Application
| Parameter | Description | Status |
|------------------|-----------------------------------------------------|-----------|
| route53_schedule | [CRON](https://pkg.go.dev/github.com/robfig/cron?utm_source=godoc#hdr-CRON_Expression_Format) schedule for checking and updating DNS entry | |

View file

@ -18,5 +18,8 @@ route53_host: "*.{{ ansible_nas_domain }}"
# The Time-To-Live for the DNS entry
route53_ttl: 600
# The CRON string schedule for checking and updating
route53_schedule: "*/30 * * * *"
# Container
route53_memory: 512MB

View file

@ -16,6 +16,8 @@
name: route53-ddns
image: crazymax/ddns-route53:latest
pull: true
env:
SCHEDULE: "{{ route53_schedule | string }}"
volumes:
- "{{ route53_data_directory }}/ddns-route53.yml:/etc/ddns-route53/ddns-route53.yml"
restart_policy: unless-stopped