Packer.Images/scripts/Update-OvfConfiguration.yml

187 lines
4.5 KiB
YAML
Raw Normal View History

DeploymentConfigurations:
- Id: small
Label: 'Ubuntu Server 22.04 [SMALL: 2 vCPU/4GB RAM]'
2022-06-27 14:46:27 +00:00
Description: Ubuntu Server 22.04.x
Size:
2022-06-27 14:46:27 +00:00
CPU: 2
Memory: 4096
- Id: medium
Label: 'Ubuntu Server 22.04 [MEDIUM: 4 vCPU/8GB RAM]'
2022-07-07 18:16:18 +00:00
Description: Ubuntu Server 22.04.x
Size:
CPU: 4
2022-07-07 18:16:18 +00:00
Memory: 8192
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: ''
PropertyCategories:
# - Name: 0) Deployment information
# ProductProperties:
# - Key: deployment.type
# Type: string
# Value:
# - small
2022-06-27 14:46:27 +00:00
# - medium
# UserConfigurable: false
- Name: 1) Kubernetes
ProductProperties:
- Key: metacluster.fqdn
Type: string(1..)
Label: Appliance FQDN*
Description: Respective subdomains will be available for each component (e.g. storage.example.org); this address should already be configured as a wildcard record within your DNS zone.
DefaultValue: meta.k8s.cluster
Configurations: '*'
UserConfigurable: true
2022-11-08 14:48:00 +00:00
- Key: workloadcluster.vip
Type: ip
Label: Workload-cluster Virtual IP*
Description: Workload-cluster control plane endpoint virtual IP
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: ippool.startip
Type: ip
2022-11-08 14:48:00 +00:00
Label: Workload-cluster IP-pool start IP*
Description: All nodes for the workload-cluster will be provisioned within this IP pool
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: ippool.endip
Type: ip
2022-11-08 14:48:00 +00:00
Label: Workload-cluster IP-pool end IP*
Description: All nodes for the workload-cluster will be provisioned within this IP pool
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Name: 2) Operating System
ProductProperties:
- Key: guestinfo.hostname
Type: string(1..15)
Label: Hostname*
Description: ''
DefaultValue: 'META-NODE-{{ hostname.suffix }}'
Configurations: '*'
UserConfigurable: true
- Key: guestinfo.rootpw
Type: password(7..)
Label: Local root password*
Description: ''
2021-06-09 12:39:43 +00:00
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: guestinfo.rootsshkey
2021-06-14 14:59:20 +00:00
Type: password(1..)
Label: Local root SSH public key*
Description: This line should start with 'ssh-rsa AAAAB3N'
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Name: 3) Networking
ProductProperties:
- 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: 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
AdvancedOptions:
- Key: appliance.name
Value: "{{ appliance.name }}"
Required: false
- Key: appliance.version
Value: "{{ appliance.version }}"
Required: false
---
Variables:
- Name: hostname.suffix
Expression: |
(-join ((48..57) + (97..122) | Get-Random -Count 5 | % {[char]$_})).ToUpper()
- Name: appliance.name
Expression: |
$Parameter['appliance.name']
- Name: appliance.version
Expression: |
$Parameter['appliance.version']