Snippets

Vernon D. Cole SaltStack IPv6 time complaint fix

Created by Vernon D. Cole
---
# /srv/salt/define_ipv6_local.sls
# salt state file to create an IPv6 /etc/hosts entry for self

make_self_ipv6:
  host.present:
    - ip: ::1
    - names:
      - {{ salt['grains.get']('fqdn') }}
...

Comments (1)

  1. Vernon D. Cole

    When a Salt minion cannot autoconfigure its IPv6 address, it prints...

     [WARNING ] Unable to find IPv6 record for "dynamux.local" causing a 10 second timeout when rendering grains. Set the dns or /etc/hosts for IPv6 to clear this.
    

    This little state file makes it happy.

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.