Conservazione delle modifiche ai file degli host per l'infrastruttura Roving Edge

Conserva le modifiche apportate al file /etc/hosts in un'istanza di computazione nel dispositivo dell'infrastruttura Roving Edge.

Per conservare le modifiche apportate al file /etc/hosts in un'istanza di computazione nell'infrastruttura Roving Edge, aprire il file seguente:

/etc/oci-hostname.conf

Aggiornare il valore PRESERVE_HOSTINFO nella parte inferiore della configurazione dal valore predefinito 0 a 2 o 3. Ad esempio:

# This configuration file controls the hostname persistence behavior for Oracle Linux
# compute instance on Oracle Cloud Infrastructure (formerly Baremetal Cloud Services)
# Set PRESERVE_HOSTINFO to one of the following values
#   0 -- default behavior to update hostname, /etc/hosts and /etc/resolv.conf to 
#        reflect the hostname set during instance creation from the metadata service
#   1 -- preserve user configured hostname across reboots; update /etc/hosts and 
#           /etc/resolv.conf from the metadata service  
#   2 -- preserve user configured hostname across instance reboots; no custom  
#        changes to /etc/hosts and /etc/resolv.conf from the metadata service,
#        but dhclient will still overwrite /etc/resolv.conf
#   3 -- preserve hostname and /etc/hosts entries across instance reboots; 
#        update /etc/resolv.conf from instance metadata service
PRESERVE_HOSTINFO=2

L'aggiornamento del valore PRESERVE_HOSTINFO impedisce al servizio metadati di sovrascrivere le modifiche apportate al file /etc/hosts.