Assign the role to nodes

Assign the exampleserver role to the node group containing the nodes that you want to have the iis_site configuration you wrote in the webserver::example profile.

For this example, assume you want to add role::exampleserver to all nodes in the iis node group.

  1. In the console, click Node groups and select the iis node group.
  2. On the Classes tab, select role::exampleserver and click Add class.
  3. Commit the change.
Results
Now, the iis node group manages your iis_site website based on the rules you wrote in your webserver profile. When the nodes check in with PE, PE distributes the role (and the contained profiles) to the individual nodes and ensures the individual nodes have the IIS service and the desired configurations.