Compare commits

..

2 Commits

Author SHA1 Message Date
JamesAllenby 0c1c1a24ee fix: use import instead of include 2026-08-14 23:15:32 +01:00
JamesAllenby 9a5c8288b0 feat: add init target to justfile 2026-08-14 23:10:25 +01:00
2 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -4,16 +4,17 @@ opentofu_dir := "infra/"
ansible_proton_pass_plugin_ref := "4bd0741c347646060ec59c73f8adf7ed8e706cf3"
ansible_proton_pass_plugin_url := "https://raw.githubusercontent.com/protonpass/proton-pass-ansible-integration/" + ansible_proton_pass_plugin_ref + "/lookup_plugins/proton_pass.py"
init: tofu-init fetch-ansible-deps fetch-ansible-plugins
up: tofu-apply ansible-run-playbook
down: tofu-destroy
tofu-init:
tofu -chdir={{ opentofu_dir }} init -upgrade
tofu-apply: tofu-init
tofu-apply:
tofu -chdir={{ opentofu_dir }} apply -auto-approve
tofu-destroy: tofu-init
tofu-destroy:
tofu -chdir={{ opentofu_dir }} apply -auto-approve -destroy
tofu-destroy-instances:
@@ -33,6 +34,6 @@ clean: tofu-destroy
fetch-ansible-deps:
ansible-galaxy install --role-file ansible/requirements.yml --roles-path ansible/galaxy_roles
fetch-plugins:
fetch-ansible-plugins:
mkdir -p ansible/lookup_plugins
curl -fsSL -o ansible/lookup_plugins/proton_pass.py {{ ansible_proton_pass_plugin_url }}
@@ -2,13 +2,13 @@
ansible.builtin.import_tasks: kube-vip.yaml
- name: Initialise Kubernetes cluster
ansible.builtin.include_tasks: init-cluster.yaml
ansible.builtin.import_tasks: init-cluster.yaml
- name: Join nodes as control planes
ansible.builtin.include_tasks: join-cluster.yaml
ansible.builtin.import_tasks: join-cluster.yaml
- name: Copy Kubernetes admin configuration on all nodes
ansible.builtin.include_tasks: copy-config.yaml
ansible.builtin.import_tasks: copy-config.yaml
- name: Remove control plane scheduling restrictions
ansible.builtin.include_tasks: untaint.yaml
ansible.builtin.import_tasks: untaint.yaml