From 3f893c13cc7b756b89541c332207669a980c9544 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Mon, 25 Jul 2022 15:51:56 +0200
Subject: Add logging to playbook_add
---
playbooks.d/k3s/playbook.bash | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/playbooks.d/k3s/playbook.bash b/playbooks.d/k3s/playbook.bash
index 60d6eba..518b734 100644
--- a/playbooks.d/k3s/playbook.bash
+++ b/playbooks.d/k3s/playbook.bash
@@ -3,6 +3,7 @@
playbook_add() {
pkg install k3s
+ info "$BASHTARD_PLAYBOOK" "Writing config.yaml for k3s"
mkdir -pv -- /etc/rancher/k3s
cat <<-EOF > /etc/rancher/k3s/config.yaml
node-name: ${BASHTARD_PLATFORM[fqdn]}
@@ -16,10 +17,10 @@ playbook_add() {
- traefik
EOF
- # Install k3s
+ info "$BASHTARD_PLAYBOOK" "Installing k3s"
curl -sfL https://get.k3s.io | sh - # I hate this
- # Install ArgoCD
+ info "$BASHTARD_PLAYBOOK" "Installing ArgoCD on k3s"
k3s kubectl create namespace argocd
k3s kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
}
--
cgit v1.1