Packer.Images/scripts/Update-OvfConfiguration.upgrade.yml

141 lines
3.6 KiB
YAML
Raw Permalink Normal View History

DynamicDisks:
2022-06-28 15:11:11 +00:00
- Description: Longhorn persistent storage
UnitSize: GB
Constraints:
2022-07-04 12:02:55 +00:00
Minimum: 100
2022-06-28 15:11:11 +00:00
Maximum: ''
PropertyCategory: 1
PropertyCategories:
- Name: 1) Existing meta-cluster
ProductProperties:
- Key: metacluster.fqdn
Type: string(1..)
Label: Meta-cluster FQDN*
Description: The FQDN of the target meta-cluster which this appliance will perform an upgrade on.
DefaultValue: meta.k8s.cluster
Configurations: '*'
UserConfigurable: true
- key: metacluster.vip
Type: ip
Label: Meta-cluster virtual IP address*
Description: Meta-cluster control plane endpoint virtual IP address
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: metacluster.password
Type: password(7..)
Label: Meta-cluster administrator password*
Description: Needed to authenticate with target meta-cluster
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- key: metacluster.token
Type: string(1..)
Label: K3s install token*
Description: Must match the token originally used for the target meta-cluster
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Name: 2) Add meta-cluster node
ProductProperties:
- Key: guestinfo.hostname
Type: string(1..15)
Label: Hostname*
Description: ''
DefaultValue: 'meta-{{ hostname.suffix }}'
Configurations: '*'
UserConfigurable: true
- Key: guestinfo.ipaddress
Type: ip
Label: IP Address*
Description: ''
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: guestinfo.prefixlength
Type: int(8..32)
Label: Subnet prefix length*
Description: ''
DefaultValue: '24'
Configurations: '*'
UserConfigurable: true
- Key: guestinfo.dnsserver
Type: ip
Label: DNS server*
Description: ''
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: guestinfo.gateway
Type: ip
Label: Gateway*
Description: ''
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
2022-06-27 14:46:27 +00:00
# - Key: guestinfo.ntpserver
# Type: string(1..)
# Label: Time server*
# Description: A comma-separated list of timeservers
# DefaultValue: 0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org
# Configurations: '*'
# UserConfigurable: true
- Name: 3) Common
2022-11-09 10:40:27 +00:00
ProductProperties:
- Key: guestinfo.rootsshkey
Type: password(1..)
Label: SSH public key*
Description: Authentication for this meta-cluster node; this line should start with 'ssh-rsa AAAAB3N'
2022-11-09 10:40:27 +00:00
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Name: 4) Hypervisor
ProductProperties:
- Key: hv.fqdn
Type: string(1..)
Label: vCenter FQDN/IP-address*
2022-07-31 16:21:18 +00:00
Description: The address of the vCenter instance which this bootstrap appliance will interact with for provisioning new VM's.
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: hv.username
Type: string(1..)
Label: vCenter username*
2022-07-31 16:21:18 +00:00
Description: The username which this bootstrap appliance will authenticate with to the vCenter instance.
2022-08-23 12:38:03 +00:00
DefaultValue: 'administrator@vsphere.local'
Configurations: '*'
UserConfigurable: true
- Key: hv.password
Type: password(1..)
2022-11-08 18:46:37 +00:00
Label: vCenter password*
2022-07-31 16:21:18 +00:00
Description: The password which this bootstrap appliance will authenticate with to the vCenter instance.
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
---
Variables:
- Name: hostname.suffix
Expression: |
(-join ((48..57) + (97..122) | Get-Random -Count 5 | % {[char]$_})).ToLower()