Create the cluster and site configuration files that pre-fill the installer fields and supply all input for an unattended run.
Configuration files pre-fill the installer fields. The terminal user interface still shows every screen, with the supplied values as editable defaults, and an unattended run takes all of its input from these files. Split the values across two files, one for the cluster and one for the site, and place both under /srv/ccc-lcm/configs/.
-
Create configs/inventory.yaml with the cluster and registry values.
kubernetes_inventory_file: configs/inventory.ini
kubernetes_ssh_user: ssh-user
kubernetes_ssh_private_key_path: ssh-key-path
network_plugin_mtu: "9000"
calico_vxlan_mode: Never
calico_ipip_mode: Never
oci_registry_base: registry-host
oci_registry_username: username
# Site manifest registry, only for a split registry layout:
# oci_site_registry_base: registry-host
# oci_site_registry_username: username
# Where the base manifest is read from, either "source" or "site":
# oci_base_manifest_registry: source
-
Create configs/site.yaml with the site values.
base_domain: cloud.example.com
tunnel_interface: bond0.1832
bridge_interface: bond0
ceph_mons_raw: "192.0.2.11,192.0.2.12,192.0.2.13"
ceph_public: 203.0.113.0/25
ceph_cluster: 203.0.113.128/25
route53_hosted_zone_id: hosted-zone-id
# Optional control plane virtual IP, an unused address in the
# management range, shared across the control plane hosts:
# control_plane_vip: 192.0.2.10
# Optional storage cipher. Omit it to let the installer choose
# from the host kernels:
# ceph_cephx_cipher: aes256k
# Customer-provided certificate authority instead of Route 53:
# cert_manager_mode: custom-ca
# ca_cert_file: /opt/ccc-lcm/ca.crt
# ca_key_file: /opt/ccc-lcm/ca.key
You can embed the inventory in the file instead of referencing it, by replacing the inventory file key with an inline block. Both YAML and JSON files are accepted, and several files can be combined. When you pass more than one file, the files are merged from left to right: a later file wins for any key it names, and for nested settings only the named sub-keys are replaced.