Mercurial > code > home > repos > infra
comparison net.py @ 95:dd0db3c78329
disable ipv6 all hosts
author | drewp@bigasterisk.com |
---|---|
date | Fri, 15 Jul 2022 14:32:42 -0700 |
parents | 2fddde57231b |
children | 5a1f6b4d1d4a |
comparison
equal
deleted
inserted
replaced
94:122ba5444176 | 95:dd0db3c78329 |
---|---|
31 # On prime: | 31 # On prime: |
32 # using digitalocean network config: | 32 # using digitalocean network config: |
33 # https://cloud.digitalocean.com/networking/firewalls/f68899ae-1aac-4469-b379-59ce2bbc988f/droplets?i=7c5072 | 33 # https://cloud.digitalocean.com/networking/firewalls/f68899ae-1aac-4469-b379-59ce2bbc988f/droplets?i=7c5072 |
34 apt.packages(packages=['ufw'], present=False) | 34 apt.packages(packages=['ufw'], present=False) |
35 | 35 |
36 server.sysctl(key='net.ipv6.conf.all.disable_ipv6', value=1, persist=True) | |
36 | 37 |
37 if host.name == 'prime': | 38 if host.name == 'prime': |
38 cleanup() | 39 cleanup() |
39 | 40 |
40 files.directory('/etc/systemd/network') | 41 files.directory('/etc/systemd/network') |