Mercurial > code > home > repos > infra
view multikube_wipe.py @ 114:7e280bf26dba
package lists big update, pulling from /var/log/apt on a few hosts
author | drewp@bigasterisk.com |
---|---|
date | Sat, 29 Oct 2022 21:34:50 -0700 |
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'])