Mercurial > code > home > repos > infra
changeset 17:0c1496e11b8f
get skaffold on hosts that want to do deploys
author | drewp@bigasterisk.com |
---|---|
date | Sat, 13 Nov 2021 13:51:55 -0800 |
parents | c5784e3d4f8d |
children | fb226978c4d7 |
files | inventory.py kube.py net.py |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/inventory.py Sat Nov 13 13:51:26 2021 -0800 +++ b/inventory.py Sat Nov 13 13:51:55 2021 -0800 @@ -18,7 +18,7 @@ 'wireguard_address': '10.5.0.6', }), ('dot', { - 'ssh_hostname': '10.2.0.49', + 'ssh_hostname': '10.2.0.57', 'interface': 'enp3s0', 'addr': '10.2.0.30', 'wireguard_address': '10.5.0.30',
--- a/kube.py Sat Nov 13 13:51:26 2021 -0800 +++ b/kube.py Sat Nov 13 13:51:55 2021 -0800 @@ -73,3 +73,9 @@ files.chown(target='/etc/rancher/k3s/k3s.yaml', user='root', group='drewp') files.chmod(target='/etc/rancher/k3s/k3s.yaml', mode='640') + + files.download(src='https://storage.googleapis.com/skaffold/releases/v1.34.0/skaffold-linux-amd64', + dest='/usr/local/bin/skaffold', + user='root', + group='root', + mode='755')
--- a/net.py Sat Nov 13 13:51:26 2021 -0800 +++ b/net.py Sat Nov 13 13:51:55 2021 -0800 @@ -3,10 +3,8 @@ from pyinfra.facts.server import LinuxDistribution from pyinfra.operations import apt, files, server, systemd -bang_is_old = True is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux'] is_wifi = host.name in ['frontdoor', 'living', 'plus'] -ssh_host = host.host_data.get('ssh_hostname', host.name) if is_wifi: # todo: netplan could do this, below