summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-07-29 16:33:49 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-07-29 16:33:49 +0200
commit2ce13c62fd1ea5c7e7b3f657f2b3417472ee7762 (patch)
tree26fa8b99a68880bce7973f6c820c0ae438be7298
parentaccesspoints: horst package is no longer available for openwrt 23.05.4+ (diff)
add qmk package for new keyboard
-rw-r--r--chaos-at-home/ch-equinox-ws.yml1
-rw-r--r--inventory/host_vars/ch-equinox-ws.yml2
-rw-r--r--roles/apt-repo/qmk/files/repo.gpgbin0 -> 454 bytes
-rw-r--r--roles/apt-repo/qmk/tasks/main.yml18
4 files changed, 21 insertions, 0 deletions
diff --git a/chaos-at-home/ch-equinox-ws.yml b/chaos-at-home/ch-equinox-ws.yml
index 24e071b5..43288d79 100644
--- a/chaos-at-home/ch-equinox-ws.yml
+++ b/chaos-at-home/ch-equinox-ws.yml
@@ -27,6 +27,7 @@
- role: apt-repo/tor-project
- role: apt-repo/kubernetes
- role: apt-repo/element
+ - role: apt-repo/qmk
- role: storage/zfs/base
- role: storage/zfs/sanoid
- role: ws/base
diff --git a/inventory/host_vars/ch-equinox-ws.yml b/inventory/host_vars/ch-equinox-ws.yml
index 4ead9282..f2456b54 100644
--- a/inventory/host_vars/ch-equinox-ws.yml
+++ b/inventory/host_vars/ch-equinox-ws.yml
@@ -307,6 +307,8 @@ ws_base_extra_packages:
- kubectl
# needs apt-repo/element
- element-desktop
+ # needs apt-repo/qmk
+ - qmk
kubernetes_version: "1.30"
diff --git a/roles/apt-repo/qmk/files/repo.gpg b/roles/apt-repo/qmk/files/repo.gpg
new file mode 100644
index 00000000..b9c59a08
--- /dev/null
+++ b/roles/apt-repo/qmk/files/repo.gpg
Binary files differ
diff --git a/roles/apt-repo/qmk/tasks/main.yml b/roles/apt-repo/qmk/tasks/main.yml
new file mode 100644
index 00000000..90bb9c9f
--- /dev/null
+++ b/roles/apt-repo/qmk/tasks/main.yml
@@ -0,0 +1,18 @@
+---
+- name: add repository key
+ copy:
+ src: repo.gpg
+ dest: /etc/apt/keyrings/qmk.gpg
+ register: apt_repo_qmk_key
+
+- name: add repository entry
+ copy:
+ content: |
+ deb [signed-by=/etc/apt/keyrings/qmk.gpg] https://linux.qmk.fm/ {{ ansible_distribution_release }} main
+ dest: /etc/apt/sources.list.d/qmk.list
+ register: apt_repo_qmk_sources
+
+- name: update apt cache
+ when: apt_repo_qmk_key is changed or
+ apt_repo_qmk_sources is changed
+ command: apt-get update