view multikube_wipe.py @ 130:168bc1c44e6f

stop telling arm machines to get i386 pkgs
author drewp@bigasterisk.com
date Wed, 21 Dec 2022 13:09:32 -0800
parents c520672d0930
children 375515ab60ba
line wrap: on
line source

from pyinfra import host
from pyinfra.operations import server, files

from multikube_config import nodes, server_node

if host.name in nodes + [server_node]:
    files.put(dest='/usr/local/bin/k3s-killall.sh', src='files/kube/k3s-killall.sh', mode='a+rx')
    files.put(dest='/usr/local/bin/k3s-uninstall.sh', src='files/kube/k3s-uninstall.sh', mode='a+rx')
    server.shell(['k3s-uninstall.sh'])