Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Created January 18, 2016 10:18
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/f9e83934e4158d2aad48 to your computer and use it in GitHub Desktop.
Save whytewolf/f9e83934e4158d2aad48 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: home.fakeaddress
- value: {{current_ip}}
- zone: fakezone
- ttl: 18000
- record_type: A
boto_mediaserver:
boto_route53.present:
- name: mediaserver.fakeaddress
- value: {{current_ip}}
- zone: fakezone
- 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