Fix task order;Add default hostname value
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fdc5c44e6a
commit
ccbd4ed984
@ -13,6 +13,17 @@
|
|||||||
INSTALL_K3S_EXEC: 'server --cluster-init --disable local-storage'
|
INSTALL_K3S_EXEC: 'server --cluster-init --disable local-storage'
|
||||||
when: ansible_facts.services['k3s.service'] is undefined
|
when: ansible_facts.services['k3s.service'] is undefined
|
||||||
|
|
||||||
|
- name: Ensure API availability
|
||||||
|
ansible.utils.cli_parse:
|
||||||
|
command: curl -k https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose
|
||||||
|
parser:
|
||||||
|
name: ansible.utils.json
|
||||||
|
set_fact: api_readycheck
|
||||||
|
ignore_errors: yes
|
||||||
|
until: api_readycheck.apiVersion is defined
|
||||||
|
retries: 3
|
||||||
|
delay: 30
|
||||||
|
|
||||||
- name: Initialize tempfile
|
- name: Initialize tempfile
|
||||||
ansible.builtin.tempfile:
|
ansible.builtin.tempfile:
|
||||||
state: file
|
state: file
|
||||||
@ -57,17 +68,6 @@
|
|||||||
- name: Trigger handlers
|
- name: Trigger handlers
|
||||||
ansible.builtin.meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
|
|
||||||
- name: Ensure API availability
|
|
||||||
ansible.utils.cli_parse:
|
|
||||||
command: curl -k https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose
|
|
||||||
parser:
|
|
||||||
name: ansible.utils.json
|
|
||||||
set_fact: api_readycheck
|
|
||||||
ignore_errors: yes
|
|
||||||
until: api_readycheck.apiVersion is defined
|
|
||||||
retries: 3
|
|
||||||
delay: 30
|
|
||||||
|
|
||||||
- name: Install kubectl tab-completion
|
- name: Install kubectl tab-completion
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: kubectl completion bash | tee /etc/bash_completion.d/kubectl
|
cmd: kubectl completion bash | tee /etc/bash_completion.d/kubectl
|
||||||
|
@ -50,8 +50,8 @@ PropertyCategories:
|
|||||||
- Key: guestinfo.hostname
|
- Key: guestinfo.hostname
|
||||||
Type: string(1..15)
|
Type: string(1..15)
|
||||||
Label: Hostname*
|
Label: Hostname*
|
||||||
Description: '(max length: 15 characters)'
|
Description: ''
|
||||||
DefaultValue: ''
|
DefaultValue: 'META-NODE-{{ hostname.suffix }}'
|
||||||
Configurations: '*'
|
Configurations: '*'
|
||||||
UserConfigurable: true
|
UserConfigurable: true
|
||||||
|
|
||||||
@ -151,6 +151,9 @@ AdvancedOptions:
|
|||||||
|
|
||||||
---
|
---
|
||||||
Variables:
|
Variables:
|
||||||
|
- Name: hostname.suffix
|
||||||
|
Expression: |
|
||||||
|
(-join ((48..57) + (97..122) | Get-Random -Count 5 | % {[char]$_})).ToUpper()
|
||||||
- Name: appliance.name
|
- Name: appliance.name
|
||||||
Expression: |
|
Expression: |
|
||||||
$Parameter['appliance.name']
|
$Parameter['appliance.name']
|
||||||
|
Loading…
Reference in New Issue
Block a user