+++ title = "Manage Environments" draft = false robots = "noindex"
aliases = ["/server_manage_environments.html"]
[menu] [menu.docs] title = "Environments" identifier = "chef_infra/features/management_console/server_manage_environments.md Environments" parent = "chef_infra/features/management_console" weight = 60 +++
{{< note >}}
This topic is about using the Chef management console to manage environments.
{{< /note >}}
{{% EOL_manage %}}
{{% environment %}}
Environments can be managed from the Chef management console web user interface.
To add an environment:
-
Open the Chef management console.
-
Click Policy.
-
Click Environments.
-
Click Create.
-
In the Create an Environment dialog box, enter the name of the environment and a description.
Click Next.
-
Optional. Set a constraint by choosing a name, an operator, and a version:
Click Add. Continue this process until all constraints are added. When finished, click Next.
-
Optional. Add default attributes as JSON data:
Click Next.
-
Optional. Add override attributes as JSON data:
-
Click Create Environment.
To delete an environment:
-
Open the Chef management console.
-
Click Policy.
-
Click Environments.
-
Select an environment.
-
Click Delete.
To edit the details of an environment:
- Open the Chef management console.
- Click Policy.
- Click Environments.
- Select an environment.
- Click the Details tab.
- Click Edit.
To set the environment for a node:
-
Open the Chef management console.
-
Click Nodes.
-
Select a node.
-
Click the Details tab.
-
In the top right, from the Environment drop-down, select the environment:
-
Click Save.
To view environment details:
- Open the Chef management console.
- Click Policy.
- Click Environments.
- Select an environment.
- Click the Details tab.
{{% node_attribute_type_default %}}
To edit default attributes for an environment:
-
Open the Chef management console.
-
Click Policy.
-
Click Environments.
-
Select an environment.
-
Click the Attributes tab.
-
Under Default Attributes, click Edit.
-
In the Edit Environment Attributes dialog box, enter the JSON data that defines the attribute (or attributes).
-
Click Save.
To view default attributes for an environment:
- Open the Chef management console.
- Click Policy.
- Click Environments.
- Select an environment.
- Click the Attributes tab.
{{% node_attribute_type_override %}}
To edit override attributes for an environment:
-
Open the Chef management console.
-
Click Policy.
-
Click Environments.
-
Select an environment.
-
Click the Attributes tab.
-
Under Override Attributes, click Edit.
-
In the Edit Environment Attributes dialog box, enter the JSON data that defines the attribute (or attributes).
-
Click Save Attributes.
To view override attributes for an environment:
- Open the Chef management console.
- Click Policy.
- Click Environments.
- Select an environment.
- Click the Attributes tab.
{{% server_rbac_permissions %}}
{{% server_rbac_permissions_object %}}
To set permissions list for an environment object:
- Open the Chef management console.
- Click Policy.
- Click Environments.
- Select an environment.
- 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 an environment object:
- Open the Chef management console.
- Click Policy.
- Click Environments.
- Select an environment.
- 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 an environment object:
- Open the Chef management console.
- Click Policy.
- Click Environments.
- Select an environment.
- Click the Permissions tab.
- Set the appropriate permissions: Read, Update, Delete, and Grant.