Browse Source

Prod server: force ipv4 in apt

Without this, apt seems to try to use ipv6 to connect to some of the
repos, and it often hangs or fails.
merge-requests/40/head
Deimos 6 years ago
parent
commit
0bd4bb722a
  1. 4
      salt/salt/prod-config.sls
  2. 1
      salt/salt/top.sls

4
salt/salt/prod-config.sls

@ -0,0 +1,4 @@
# Force apt not to use IPv6 (seems to hang often)
/etc/apt/apt.conf.d/99force-ipv4:
file.managed:
- contents: 'Acquire::ForceIPv4 "true";'

1
salt/salt/top.sls

@ -30,6 +30,7 @@ base:
'prod':
- nginx.static-sites-config
- raven
- prod-config
'monitoring':
- nginx
- self-signed-cert

Loading…
Cancel
Save