pine64 hardware and arm64 arch for kubernetes

This commit is contained in:
do
2022-10-18 16:44:16 +02:00
parent 9e1a05a4e8
commit 6b8e1049cf
2 changed files with 3 additions and 1 deletions

View File

@@ -17,6 +17,8 @@ def _hardware():
for line in open("/etc/armbian-release","r").readlines():
if re.match("BOARD=espressobin", line):
h = "Espressobin"
if re.match("BOARD=pine64", line):
h = "Pine64"
return h
def main():

View File

@@ -1,7 +1,7 @@
repo_kubernetes.io:
pkgrepo.managed:
- name: 'deb https://apt.kubernetes.io kubernetes-xenial main'
- name: 'deb [arch=arm64] https://apt.kubernetes.io/ kubernetes-xenial main'
- file: /etc/apt/sources.list.d/kubernetes.list
- key_url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
- clean_file: True