Sun N1 Service Provisioning System 5.1 System Administration Guide

About Host Types

A host type is a container for variables that are assigned to a particular host. These variables are called host-type attributes and are based on some combination of host characteristics, such as function, location, or configuration. A host type determines the set of host-type attributes that are assigned to a host.

Creating a host type or using an existing host type provides two benefits.

By assigning each host a host type, grouping hosts by their most important characteristics is easier. For example, you can define a host type for the hosts that are used as web servers, another host type for hosts that are used for database servers, and so on.

Host types also enable you to set configuration values dynamically when a data center operation is performed. A web server host type might include attributes such as Location, WebServer_User, WebServer_Group, HTTP_Port, and HTTPS_Port. A database server host type might include a different set of attributes such as Location, DB_Directory, DB_InstanceName, DB_Port, and DB_SecurePort. If, in this example, you define a host type for web servers and the host type includes an HTTP port variable, when you perform an installation on hosts of this host type, your installation plan could automatically set the HTTP port variable of each web server based on the HTTP port attribute value set for each host.

Every host that you manage with the provisioning system will be assigned a host type, either the default host type, crhost, or a host type that you have defined. Each host can only have one host type.

When hosts are created by targetable components, the host type is automatically assigned. For more information about targetable components, see Targetable Components.

Default Host Type

The Sun N1 Service Provisioning System software includes the default host type, system#crhost. By default, all hosts are assigned this host type. The system#crhost host type cannot be modified or deleted. The system#crhost type includes two attributes:

There are no default values for these attributes. The name value must be specified for each host when you define the host. The description value is optional.

Host-Type Attributes

A host type is distinguished by its name and its attributes. An attribute is a name-value pair.

Host-Type Attribute Characteristics

When you define a host, you can selectively override the host type's default attribute values. Default values that are not overwritten will be applied to the host. If a host-type attribute's default value is changed after hosts are created, all hosts that did not override the default value are updated to reflect the new attribute value.

Creating Host Types

Host types enable you to group hosts by particular characteristics. Host types also enable you to set up dynamic configuration values.

For more information on substitution variables and configuration generation, see Chapter 6, Configuration Generation, in Sun N1 Service Provisioning System 5.1 Plan and Component Developer’s Guide.

ProcedureHow to Create Host Types

This procedure describes how to create host types by using the browser interface. You can also create host types by using the following command.

For a detailed description of this command, see Chapter 7, hdb: CLI Commands for Managing Hosts, in Sun N1 Service Provisioning System 5.1 Command-Line Interface Reference Manual.


Note –

If you would like to create a new host type from an existing host type, see How to Edit Host Types.


Before You Begin

To create a host type, you must belong to a user group that has Create, Edit, Delete permission on hosts.

Steps
  1. Go to the Host Types page.

    See How to View Host Types.

  2. In the top row of the table on the Host Types page, type a name and brief description for the new host type and click Create.

    For more information about the syntax of host types and descriptions, see Appendix C, Accepted Values for Provisioning System Objects.

    The Host Types Details page for the new host type is displayed.

  3. Perform the following steps for each attribute that you plan to assign to the new host type.

    1. Type a name for the attribute in the Attribute column.

      For more information about the syntax of host-type attribute names, see Appendix C, Accepted Values for Provisioning System Objects.

    2. (Optional) To assign a default value to the attribute , type a value in the Default Value column.

      If you do not assign a value to the attribute, the default value is an empty string.

      For more information about the syntax of host-type attribute values, see Appendix C, Accepted Values for Provisioning System Objects.

    3. In the action column, click Add.

  4. (Optional) To hide the host type, select Hidden.

  5. To save the host type, click Save.

ProcedureHow to Create a Host Type Based on an Existing Host Type

Before You Begin

To edit a host type, you must belong to a user group that has Create, Edit, Delete permission on hosts.

Steps
  1. Go to the Host Types page.

    See How to View Host Types.

  2. On the Host Types page, find the row listing the host type that you plan to edit and click Details.

    A Details page appears for the selected host type.

  3. Use the controls on the Edit page to modify the host type.

  4. To save the modified host type as a new host type, click Save As.

    Another Details page appears.

  5. Type the name of the new host type.

    The new host type name must be unique to existing host types.

    For more information about the syntax of host-type names, see Appendix C, Accepted Values for Provisioning System Objects.

  6. Click Continue to Save As.

ProcedureHow to View Host Types

This procedure describes how to view host types by using the browser interface. You can also view host types by using the following commands.

For a detailed description of these commands, see Chapter 7, hdb: CLI Commands for Managing Hosts, in Sun N1 Service Provisioning System 5.1 Command-Line Interface Reference Manual.

Steps
  1. From the navigation menu, choose Administration.

    The browser interface displays the Administration page.

  2. In the Administration page, click Host Types.

    The browser interface displays the Host types page.

  3. (Optional) To include hidden host types, select Show Hidden Host Types in the upper right corner of the page.

  4. (Optional) To view the details of a specific host type, click Details in the row that lists the host type that you want to view.

    A Details page for the Host Type is displayed.

Editing Host Types

You can make the following modifications to the host type.

For more information about the impact of updating host-type attributes, see Host-Type Attributes.

ProcedureHow to Edit Host Types

If you need to edit the host-type attributes of a particular host, see How to Modify Host-Type Attributes of a Host.

This procedure describes how to edit host types by using the browser interface. You can also edit host types by using the following command.

For a detailed description of this command, see Chapter 7, hdb: CLI Commands for Managing Hosts, in Sun N1 Service Provisioning System 5.1 Command-Line Interface Reference Manual.

Before You Begin

To edit a host type, you must belong to a user group that has Create, Edit, Delete permission on hosts.

Steps
  1. Go to the Details page of the host type that you want to edit.

    See How to View Host Types.

  2. Use the controls on the Details page to modify the host type.

  3. (Optional) To hide the host type, click Hidden.

  4. To save the host type, click Save.

ProcedureHow to Delete Host Types


Caution – Caution –

Deleting a host type is permanent and cannot be undone. Deleting a host type might also be time consuming.


This procedure describes how to delete host types by using the browser interface. You can also delete host types by using the following command.

For a detailed description of this command, see Chapter 7, hdb: CLI Commands for Managing Hosts, in Sun N1 Service Provisioning System 5.1 Command-Line Interface Reference Manual.

Before You Begin

You cannot delete a host type if any hosts of that type exist. You also cannot delete a host type that is owned by a plug-in.

To delete a host type, you must belong to a user group that has Create, Edit, Delete permission on hosts.

Steps
  1. Go to the Details page of the host type that you plan to delete.

    See How to View Host Types.

  2. Click the Delete button at the bottom of the page.

    Another page appears that provides the option to cancel the deletion.


    Note –

    You cannot delete host types that are in use. If a host type that you try to delete is being used, a message will list the host type and the reason that it was not deleted.


  3. Verify that you are deleting the correct host type and click the Continue to Delete button.

    The host type that you deleted is no longer listed in table on the Host Types page.