Background ========== Currently the nodename configuration is stored in the /etc/nodename file. During installation, the installer will prompt the user for the nodename and save the configuration into the /etc/nodename file. When the system boots up, if the system is standalone or the IP address is configured locally, the /etc/nodename file contains the system name. Users can modify the file /etc/nodename to change the hostname for a standalone system or if the IP address is configured locally. In such a case the change will take effect at next boot. Problem Statement ================= Update the svc:/system/identity:node SMF service which will take care of setting the nodename of the system installed by means of the Installer technologies. Furthermore, update various components that currently reference /etc/nodename to use the new mechanism, namely cvcd, setuname, metaset and nodename(4) for nodename. Requirement =========== The nodename will be configurable via SMF property of svc:/system/identity:node SMF service. Proposal ======== 1. Add the nodename property to the svc:/system/identity:node SMF service. The property definition (config/nodename) will be added in the SMF manifest. Update the identity-node method to use the new property. 2. RBAC for nodename access to include solaris.smf.manage.nodename as the authorization and with a profile description of "Node Name Management". 3. Update the various Caiman installers to use the new property. 4. Obsolete file /etc/nodename. This file will no longer exist in the system 5. Modify existing /etc/nodename consumers, so that they operate on the SMF property instead of the file. The following consumers were found in the ON gate: cvcd setuname metaset Other consolidations will receive a flag day announcement and be given 2 builds prior to the removal of the nodename file. 6. Update appropriate man pages: nodename(4) metaset(1M) 7. Make appropriate announcements in a Patch release of Solaris and to internal development aliases. Interfaces ========== Exported Interfaces Name Commitment Comments ----------------------------------------------------------------------- svc:/system/identity:node Committed SMF service name config/nodename SMF property identity-domain SMF service method solaris.smf.manage.nodename Committed RBAC authorization property /etc/nodename Removed Obsolete in a Patch release Text Installer Uncommitted PSARC/2010/165 GUI Installer Uncommitted PSARC 2007/284, PSARC/2010/069 cvcd Uncommitted virtual console daemon setuname Removed change machine information utility, used for an old standard, Obsolete in a Patch release. metaset Committed configure disk sets utility man pages Uncommitted nodename(4) metaset(1M) Imported Interfaces Name Commitment Comments ----------------------------------------------------------------------- uname Uncommitted libscf Committed Service Configuration Facility Library Functions References ========== [1] Example of SMF profile configuring nodename property [2] Related SMF System Configuration cases PSARC 2010/183 Kernel Keyboard Configuration in SMF PSARC 2010/164 interfaces for basic install network configuration