From 0e7cfa0934e9cb61320c697e41cdf8dfdb21d495 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 28 Jun 2022 15:46:55 +0200 Subject: [PATCH] Add dynamic disk;Add kubectl tab completion --- .../ansible_payload/roles/metacluster/tasks/main.yml | 4 ++++ scripts/Update-OvfConfiguration.yml | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/main.yml b/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/main.yml index 791ed1c..03edc0a 100644 --- a/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/main.yml +++ b/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/main.yml @@ -6,6 +6,10 @@ INSTALL_K3S_SKIP_DOWNLOAD: 'true' INSTALL_K3S_EXEC: 'server --cluster-init --disable local-storage' +- name: Install kubectl tab-completion + ansible.builtin.command: + cmd: kubectl completion bash | tee /etc/bash_completion.d/kubectl + - name: Ensure API availability ansible.utils.cli_parse: command: curl -k https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose diff --git a/scripts/Update-OvfConfiguration.yml b/scripts/Update-OvfConfiguration.yml index 09b8bb4..3b623d3 100644 --- a/scripts/Update-OvfConfiguration.yml +++ b/scripts/Update-OvfConfiguration.yml @@ -14,7 +14,14 @@ DeploymentConfigurations: CPU: 2 Memory: 4096 -DynamicDisks: [] +DynamicDisks: + + - Description: Longhorn persistent storage + UnitSize: GB + Constraints: + Minium: 100 + Maximum: '' + PropertyCategories: # - Name: 0) Deployment information