Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Last active January 5, 2018 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whytewolf/f6615c91c82586328a88a487f54ea8bb to your computer and use it in GitHub Desktop.
Save whytewolf/f6615c91c82586328a88a487f54ea8bb to your computer and use it in GitHub Desktop.
{% set current_ip = salt.http.query('https://api.ipify.org')['body'] %}
boto_dyncdns:
boto_route53.present:
- name: url1
- value: {{current_ip}}
- zone: bad4.us
- ttl: 18000
- record_type: A
boto_mediaserver:
boto_route53.present:
- name: url2
- value: {{current_ip}}
- zone: bad4.us
- ttl: 18000
- record_type: A
Salt_DynDNS_update:
ifttt.trigger_event:
- event: "Salt_DynDNS_update"
- onchanges:
- boto_route53: boto_mediaserver
- boto_route53: boto_dyncdns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment