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

261 lines
7.1 KiB
YAML
Raw Normal View History

DeploymentConfigurations:
- Id: cp1w1
Label: 'Workload-cluster: 1 control-plane node/1 worker node'
Description: 1 control-plane node/1 worker node
- Id: cp1w2
Label: 'Workload-cluster: 1 control-plane node/2 worker nodes'
Description: 1 control-plane node/2 worker nodes
- Id: core
Label: No workload-cluster
Description: Only the metacluster is deployed (useful for recovery scenario's)
2022-07-07 18:16:18 +00:00
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: 2
PropertyCategories:
- Name: 0) Deployment information
ProductProperties:
- Key: deployment.type
Type: string
Value:
- cp1w1
- cp1w2
- core
UserConfigurable: false
2022-11-09 10:40:27 +00:00
- Name: 1) Meta-cluster
ProductProperties:
- Key: metacluster.fqdn
Type: string(1..)
Label: Meta-cluster 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
- 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.token
Type: string(1..)
Label: K3s install token*
Description: Auto-generated; this value is used to join future new nodes to the metacluster after deployment
DefaultValue: '{{ metacluster.token }}'
Configurations: '*'
UserConfigurable: true
- Name: 2) Meta-cluster initial node
ProductProperties:
- Key: guestinfo.hostname
Type: string(1..15)
Label: Hostname*
Description: ''
DefaultValue: 'meta-{{ hostname.suffix }}'
Configurations: '*'
UserConfigurable: true
- Key: metacluster.password
Type: password(7..)
Label: Appliance password*
Description: 'Initial password for respective administrator accounts within each component'
2021-06-09 12:39:43 +00:00
DefaultValue: ''
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: 'A default route is *required*, use a dummy IP address if there is no actual gateway router present'
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) Workload-cluster
2022-11-09 10:40:27 +00:00
ProductProperties:
- Key: workloadcluster.name
Type: string(1..15)
Label: Workload-cluster name*
Description: ''
DefaultValue: 'workload-{{ hostname.suffix }}'
Configurations:
2023-03-19 16:43:29 +00:00
- cp1w1
- cp1w2
UserConfigurable: true
2022-11-09 10:40:27 +00:00
- Key: workloadcluster.vip
Type: ip
Label: Workload-cluster virtual IP address*
Description: Workload-cluster control plane endpoint virtual IP address
DefaultValue: '0.0.0.0'
Configurations:
2023-03-19 16:43:29 +00:00
- cp1w1
- cp1w2
2022-11-09 10:40:27 +00:00
UserConfigurable: true
- Key: ippool.startip
Type: ip
Label: Workload-cluster IP-pool start IP address*
2022-11-09 10:40:27 +00:00
Description: All nodes for the workload-cluster will be provisioned within this IP pool
DefaultValue: '0.0.0.0'
Configurations:
2023-03-19 16:43:29 +00:00
- cp1w1
- cp1w2
2022-11-09 10:40:27 +00:00
UserConfigurable: true
- Key: ippool.endip
Type: ip
Label: Workload-cluster IP-pool end IP address*
2022-11-09 10:40:27 +00:00
Description: All nodes for the workload-cluster will be provisioned within this IP pool
DefaultValue: '0.0.0.0'
Configurations:
2023-03-19 16:43:29 +00:00
- cp1w1
- cp1w2
2022-11-09 10:40:27 +00:00
UserConfigurable: true
- Key: workloadcluster.nodesize
Type: string["small", "medium"]
Label: Workload-cluster node size*
Description: |
All worker-nodes for the workload-cluster will be provisioned with number of cpu-cores and memory as specified:
- SMALL: 2 vCPU/6GB RAM
- MEDIUM: 4 vCPU/8GB RAM
DefaultValue: 'small'
Configurations:
2023-03-19 16:43:29 +00:00
- cp1w1
- cp1w2
UserConfigurable: true
- Key: workloadcluster.additionaldisk
Type: int(0..120)
Label: Workload-cluster block storage disk size*
Description: 'All worker-nodes for the workload-cluster will be provisioned with an additional disk of the specified size'
DefaultValue: '20'
Configurations:
2023-03-19 16:43:29 +00:00
- cp1w1
- cp1w2
UserConfigurable: true
- Name: 4) Common
2022-11-09 10:40:27 +00:00
ProductProperties:
- Key: guestinfo.rootsshkey
Type: password(1..)
Label: SSH public key*
Description: Authentication for any node (meta-cluster *and* workloadcluster); this line should start with 'ssh-rsa AAAAB3N'
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Name: 5) 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
- Name: 6) Identity provider
ProductProperties:
- Key: ldap.fqdn
Type: string(1..)
Label: LDAP server FQDN/IP-address*
Description: The address of the LDAP server which this bootstrap appliance will perform LDAP queries against.
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: ldap.dn
Type: string(1..)
Label: LDAP bind distinguished name*
2023-02-17 16:43:41 +00:00
Description: The distinguished name of the user account used for LDAP queries; for example 'CN=ldapreader,OU=Useraccounts,DC=example,DC=com'
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
- Key: ldap.password
Type: password(1..)
Label: LDAP bind password*
2023-02-17 16:43:41 +00:00
Description: The password of the user account used for LDAP queries.
DefaultValue: ''
Configurations: '*'
UserConfigurable: true
---
Variables:
- Name: hostname.suffix
Expression: |
(-join ((48..57) + (97..122) | Get-Random -Count 5 | % {[char]$_})).ToLower()
- Name: metacluster.token
Expression: |
(New-Guid).Guid -replace '-', ''