linux_ref - OpenNebula/one-apps GitHub Wiki
Context Attributes Reference
This table lists all the attributes supported by the context packages.
Attribute | Description |
---|---|
START_SCRIPT |
Script executed on machine boot. The attribute may contain a shebang if not calling a default shell script. Example: START_SCRIPT="yum upgrade" or START_SCRIPT="choco upgrade all" for Bash and PowerShell respectively. |
START_SCRIPT_BASE64 |
Same as START_SCRIPT , but encoded in Base64. |
TOKEN |
Set to YES to create a token.txt file for OneGate monitoring. |
ONEGATE_ENDPOINT |
Listening address of the OneGate server. Automatically added by OpenNebula if TOKEN is YES . Defaults to http://169.254.16.9:5030 . Value loaded from /etc/one/oned.conf . |
NETWORK |
Set to YES to automatically fill networking parameters for each NIC, used by Contextualization packages. |
NETCFG_TYPE |
Network configuration service inside guest VM responsible for configuring NICs. Possible values: empty (autodetects suitable service inside VM), bsd (for FreeBSD network configuration), interfaces (for Debian-style configuration via /etc/network/interfaces ), netplan (for Netplan; set custom Netplan renderer via NETCFG_NETPLAN_RENDERER ), networkd (for systemd-networkd), nm (for NetworkManager), scripts (for legacy Red Hat-style configuration via ifcfg-ethX files). |
NETCFG_NETPLAN_RENDERER |
Netplan renderer (effective only when NETCFG_TYPE=netplan ): empty or networkd (for systemd-networkd), NetworkManager (for NetworkManager). |
SET_HOSTNAME |
Sets the VM hostname. |
DNS_HOSTNAME |
Set to YES to set the VM hostname to the reverse DNS name (from the first IP). |
DNS |
Specific DNS server for the Virtual Machine. |
USERNAME |
User to be created in the guest OS. Defaults to root if password or SSH_PUBLIC_KEY is defined. |
CRYPTED_PASSWORD_BASE64 |
Crypted password encoded in base64, to be set for the USERNAME . |
PASSWORD_BASE64 |
Password encoded in base64, to be set for the USERNAME . |
CRYPTED_PASSWORD |
Crypted password to be set for the USERNAME . Use CRYPTED_PASSWORD_BASE64 instead. |
PASSWORD |
Password to be set for the USERNAME . Use PASSWORD_BASE64 instead. |
SSH_PUBLIC_KEY |
Key to be added to USERNAME authorized_keys file or root if USERNAME is not set. Requires OpenSSH server on Windows, user automatically detected. USERNAME ignored. |
TIMEZONE |
Time zone to set. On Linux, the name must match the zone file name relative to /usr/share/zoneinfo/ (e.g. US/Central ). On Windows, the name must match supported zone listed by tzutil /l (e.g. Central Standard Time ). |
GROW_ROOTFS |
If set to NO , disables automatic growing of root filesystem or C: on Windows. |
GROW_FS |
Mountpoints on Linux (e.g.: /mnt/disk /data ) or drive letters on Windows (e.g.: X: Y: ) of extra filesystems to extend. The rootfs / on Linux or C: on Windows is implied if GROW_ROOTFS is empty or YES . |
IGNORE_SWAP |
If set to YES , one-contexd service skips auto-mounting of any found swap devices (does not affect swap defined in /etc/fstab ). |
RECREATE_RUN |
If set to YES , restores missing directories and files persisted in the image in /run (or /var/run ) to the ephemeral /run (or /var/run ) of the VM instance. |