+++ title = "Manage Roles" draft = false robots = "noindex"
aliases = ["/server_manage_roles.html"]
[menu] [menu.docs] title = "Roles" identifier = "chef_infra/features/management_console/server_manage_roles.md Roles" parent = "chef_infra/features/management_console" weight = 80 +++
{{% EOL_manage %}}
{{< note >}}
This topic is about using the Chef management console to manage roles.
{{< /note >}}
{{% role %}}
Roles can be managed from the Chef management console web user interface.
To add a role:
-
Open the Chef management console.
-
Click Policy.
-
Click Roles.
-
Click Create.
-
In the Create Role dialog box, enter the name of the role and a description.
Click Next.
-
Optional. Build the run-list from the list of available roles and recipes:
Click Next.
-
Optional. Add default attributes as JSON data:
Click Next.
-
Optional. Add override attributes as JSON data:
-
Click Create Role.
To delete a role:
To view all roles uploaded to the Chef Infra Server organization:
- Open the Chef management console.
- Click Policy.
- Click Roles.
{{% node_run_list %}}
{{% manage_webui_policy_role_edit_run_list %}}
{{% node_attribute_type_default %}}
To edit default attributes for a role:
-
Open the Chef management console.
-
Click Policy.
-
Click Roles.
-
Select a role.
-
Click the Attributes tab.
-
Under Default Attributes, click Edit.
-
In the Edit Role Attributes dialog box, enter the JSON data that defines the attribute (or attributes).
-
Click Save Attributes.
To view default attributes for a role:
- Open the Chef management console.
- Click Policy.
- Click Roles.
- Select a role.
- Click the Attributes tab.
{{% node_attribute_type_override %}}
To edit override attributes for a role:
-
Open the Chef management console.
-
Click Policy.
-
Click Roles.
-
Select a role.
-
Click the Attributes tab.
-
Under Override Attributes, click Edit.
-
In the Edit Role Attributes dialog box, enter the JSON data that defines the attribute (or attributes).
-
Click Save Attributes.
To view role details:
- Open the Chef management console.
- Click Policy.
- Click Roles.
- Select a role.
- Click the Details tab.
{{% server_rbac_permissions %}}
{{% server_rbac_permissions_object %}}
To set permissions list for a role object:
- Open the Chef management console.
- Click Policy.
- Click Roles.
- Select a role.
- Click the Permissions tab.
- For each group listed under Name, select or de-select the Read, Update, Delete, and Grant permissions.
To update the permissions list for a role object:
- Open the Chef management console.
- Click Policy.
- Click Roles.
- Select a role.
- Click the Permissions tab.
- Click the + Add button and enter the name of the user or group to be added.
- Select or de-select Read, Update, Delete, and Grant to update the permissions list for the user or group.
To view permissions for a role object:
- Open the Chef management console.
- Click Policy.
- Click Roles.
- Select a role.
- Click the Permissions tab.
- Set the appropriate permissions: Delete, Grant, Read, and/or Update.