fix: update makeninja - rename Archfile - check for k0sctl (#1161)
* fix: update makeninja * Update Taskfile.yaml * fix: check for k0sctl when k0s is choosen Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
2ad3d87b06
commit
b602a7a1f5
5 files changed
+15
-7
No files matched your search
File renamed without changes.
@@ -16,20 +16,20 @@ tasks:
|
|||||||
|
|
||||||
paru:
|
paru:
|
||||||
desc: Install workstation dependencies with Paru
|
desc: Install workstation dependencies with Paru
|
||||||
cmd: paru -Syu --needed --noconfirm --noprogressbar $(cat {{.ROOT_DIR}}/.taskfiles/Workstation/ArchPackages | xargs)
|
cmd: paru -Syu --needed --noconfirm --noprogressbar $(cat {{.ROOT_DIR}}/.taskfiles/Workstation/Archfile | xargs)
|
||||||
preconditions:
|
preconditions:
|
||||||
- sh: command -v paru
|
- sh: command -v paru
|
||||||
msg: |
|
msg: |
|
||||||
Paru is not installed. Using ArchLinux?
|
Paru is not installed. Using ArchLinux?
|
||||||
Head over to https://github.com/Morganamilo/paru to get up and running.
|
Head over to https://github.com/Morganamilo/paru to get up and running.
|
||||||
- { msg: "ArchPackages not found", sh: "test -f {{.ROOT_DIR}}/.taskfiles/Workstation/ArchPackages" }
|
- { msg: "Archfile not found", sh: "test -f {{.ROOT_DIR}}/.taskfiles/Workstation/Archfile" }
|
||||||
|
|
||||||
yay:
|
yay:
|
||||||
desc: Install workstation dependencies with Yay
|
desc: Install workstation dependencies with Yay
|
||||||
cmd: yay -Syu --needed --noconfirm --noprogressbar $(cat {{.ROOT_DIR}}/.taskfiles/Workstation/ArchPackages | xargs)
|
cmd: yay -Syu --needed --noconfirm --noprogressbar $(cat {{.ROOT_DIR}}/.taskfiles/Workstation/Archfile | xargs)
|
||||||
preconditions:
|
preconditions:
|
||||||
- sh: command -v yay
|
- sh: command -v yay
|
||||||
msg: |
|
msg: |
|
||||||
Yay is not installed. Using ArchLinux?
|
Yay is not installed. Using ArchLinux?
|
||||||
Head over to https://github.com/Jguer/yay to get up and running.
|
Head over to https://github.com/Jguer/yay to get up and running.
|
||||||
- { msg: "ArchPackages not found", sh: "test -f {{.ROOT_DIR}}/.taskfiles/Workstation/ArchPackages" }
|
- { msg: "Archfile not found", sh: "test -f {{.ROOT_DIR}}/.taskfiles/Workstation/Archfile" }
|
||||||
@@ -66,8 +66,6 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- ./.venv/bin/makejinja
|
- ./.venv/bin/makejinja
|
||||||
- task: sops:encrypt:all
|
- task: sops:encrypt:all
|
||||||
# TODO: https://github.com/mirkolenz/makejinja/issues/94
|
|
||||||
- find {{.ANSIBLE_DIR}} {{.KUBERNETES_DIR}} -type d -empty -delete
|
|
||||||
preconditions:
|
preconditions:
|
||||||
- { msg: "bootstrap addons file not found", sh: "test -f {{.BOOTSTRAP_DIR}}/vars/addons.yaml" }
|
- { msg: "bootstrap addons file not found", sh: "test -f {{.BOOTSTRAP_DIR}}/vars/addons.yaml" }
|
||||||
- { msg: "bootstrap config file not found", sh: "test -f {{.BOOTSTRAP_DIR}}/vars/config.yaml" }
|
- { msg: "bootstrap config file not found", sh: "test -f {{.BOOTSTRAP_DIR}}/vars/config.yaml" }
|
||||||
|
|||||||
@@ -7,3 +7,13 @@
|
|||||||
check_mode: false
|
check_mode: false
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.rc != 0 and result.rc != 127
|
failed_when: result.rc != 0 and result.rc != 127
|
||||||
|
|
||||||
|
- name: Check if required CLI tools are present for k0s
|
||||||
|
when: bootstrap_distribution == "k0s"
|
||||||
|
ansible.builtin.shell: |
|
||||||
|
command -v {{ item }} >/dev/null 2>&1
|
||||||
|
loop: ["k0sctl"]
|
||||||
|
changed_when: false
|
||||||
|
check_mode: false
|
||||||
|
register: result
|
||||||
|
failed_when: result.rc != 0 and result.rc != 127
|
||||||
+1
-1
@@ -3,7 +3,7 @@ ansible-lint==6.22.1
|
|||||||
# https://github.com/pyca/bcrypt/issues/684
|
# https://github.com/pyca/bcrypt/issues/684
|
||||||
bcrypt==4.1.2
|
bcrypt==4.1.2
|
||||||
jmespath==1.0.1
|
jmespath==1.0.1
|
||||||
makejinja==2.3.3
|
makejinja==2.3.4
|
||||||
netaddr==0.10.1
|
netaddr==0.10.1
|
||||||
openshift==0.13.2
|
openshift==0.13.2
|
||||||
passlib==1.7.4
|
passlib==1.7.4
|
||||||
Reference in new issue
Block a user