Mercurial > code > home > repos > infra
changeset 40:193cd3b051c6 master
versions and ips
author | drewp@bigasterisk.com |
---|---|
date | Mon, 17 Jan 2022 12:12:02 -0800 |
parents | 3a52d3e69724 |
children | 768e655e487b |
files | inventory.py kube.py tasks.py |
diffstat | 3 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/inventory.py Sun Jan 16 12:12:50 2022 -0800 +++ b/inventory.py Mon Jan 17 12:12:02 2022 -0800 @@ -18,8 +18,8 @@ 'wireguard_address': '10.5.0.6', }), ('dot', { - 'interface': 'enp3s0', - 'ssh_hostname': '10.2.0.25', + 'mac': 'd4:85:64:c3:db:56', + 'ssh_hostname': '10.2.0.30', 'addr': '10.2.0.30', 'wireguard_address': '10.5.0.30', }) @@ -48,7 +48,7 @@ 'wireguard_address': '10.5.0.2', }), ('plus', { - 'ssh_hostname': '10.2.0.110', + 'ssh_hostname': '10.2.0.131', 'wireguard_address': '10.5.0.110', }), ]
--- a/kube.py Sun Jan 16 12:12:50 2022 -0800 +++ b/kube.py Mon Jan 17 12:12:02 2022 -0800 @@ -5,7 +5,12 @@ is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux'] +# https://github.com/k3s-io/k3s/releases k3s_version = 'v1.23.1+k3s1' + +# https://github.com/GoogleContainerTools/skaffold/releases +skaffold_version = 'v1.35.2' + master_ip = "10.5.0.1" server_node = 'bang' nodes = ['slash', 'dash', 'frontbed', 'garage'] @@ -93,7 +98,7 @@ files.chmod(target='/etc/rancher/k3s/k3s.yaml', mode='640') # see https://github.com/GoogleContainerTools/skaffold/releases - files.download(src='https://storage.googleapis.com/skaffold/releases/v1.35.1/skaffold-linux-amd64', + files.download(src=f'https://storage.googleapis.com/skaffold/releases/{skaffold_version}/skaffold-linux-amd64', dest='/usr/local/bin/skaffold', user='root', group='root',
--- a/tasks.py Sun Jan 16 12:12:50 2022 -0800 +++ b/tasks.py Mon Jan 17 12:12:02 2022 -0800 @@ -30,7 +30,7 @@ @task def net(ctx): - ctx.run(cmd + 'inventory.py net.py -v --limit garage', pty=True) + ctx.run(cmd + 'inventory.py net.py -v', pty=True) @task @@ -55,7 +55,7 @@ @task def mail(ctx): - ctx.run(cmd + 'inventory.py mail.py -vv', pty=True) + ctx.run(cmd + 'inventory.py mail.py', pty=True) @task