Skip to main content

Node enrollment

Enroll nodes to manage them with Chef 360 Platform. This page compares enrollment methods, explains full and partial enrollment, and lists the connection requirements for server-side enrollment.

Note

Chef 360 Platform doesn’t support node re-enrollment.

Requirements for server-side enrollment

Before using server-side enrollment, confirm that your nodes meet these connection requirements.

Connection requirements

  • Nodes must be accessible through SSH or WinRM:
    • Linux nodes must be enrolled using SSH.
    • Windows nodes must be enrolled using WinRM.
  • Nodes must have a public DNS name or public IP address.
  • A node’s IP address can’t be 127.0.0.1 (localhost).
  • A node’s CIDR address must not overlap with the Chef 360 Platform services’ CIDR range. The default CIDR ranges for Chef 360 Platform services are 10.244.0.0/16 and 10.96.0.0/12.
  • The node’s ports for RabbitMQ and the nginx API gateway must be open to Chef 360 Platform. Chef 360 Platform must also allow inbound connections to these ports from the node.
  • For nodes running Windows Server 2016, download and manually install curl. After installation, ensure the curl executable is added to the system’s PATH environment variable.

SSH connection requirements

  • Port 22 must be open.
  • The user must have sudo privileges.
  • The user must authenticate using an ed25519 or RSA (2048-bit) key without a passphrase.
  • If you’re enrolling a node with a username and password, disable sudo password prompts for the SSH user account on that node.

WinRM connection requirements

  • Ports 5985 (HTTP) and 5986 (HTTPS) must be open.

  • Configure WinRM by running the following commands:

    winrm quickconfig   # Select 'Yes' when prompted
    winrm set winrm/config/service/Auth '@{Basic="true"}'
    winrm set winrm/config/service '@{AllowUnencrypted="true"}'
    netsh advfirewall firewall add rule name="WinRM-HTTP" dir=in localport=5985 protocol=TCP action=allow
    netsh advfirewall firewall add rule name="WinRM-HTTPS" dir=in localport=5986 protocol=TCP action=allow
    

Enrollment methods

You can enroll nodes using the following methods.

Bulk enrollment

With bulk enrollment, you define the nodes, credentials, and enrollment settings in a CSV file that’s uploaded to Chef 360 Platform. Once uploaded, Chef 360 Platform handles the process of connecting to and enrolling each node defined in the file.

Bulk enrollment is performed from the server side and supports full enrollment.

Cookbook-based enrollment

With cookbook-based enrollment, you upload a cookbook with enrollment settings to Chef Infra Server and Chef Infra Client enrolls the node with Chef 360 Platform.

Cookbook-based enrollment is performed from the client side and supports either full or partial node enrollment.

Single-node enrollment

With single-node enrollment, you define the credentials and enrollment settings for each node and then Chef 360 Platform uses those settings to connect to and enroll the node.

Single-node enrollment is performed from the server side and supports full enrollment.

Self enrollment

With self enrollment, you enroll nodes by executing the chef-node-enrollment-cli CLI with an application key ID and its signed config file from the client node.

Self enrollment is performed from the client side and supports full enrollment.

Full and partial enrollment

You can fully or partially enroll nodes with Chef 360 Platform.

Full enrollment

With full enrollment, the Node Management agent and Chef Habitat are installed on each node and the Node Management agent runs as a Habitat-supervised service. Chef 360 Platform manages skill credentials, settings, installation, upgrade, and removal.

You can fully enroll nodes with the following methods:

Partial enrollment
With partial enrollment, the Node Management agent is installed on each node, but Node Management is installed as a native service (not running under the Habitat Supervisor or Habitat package manager). Chef 360 Platform can detect skills and skill credential management, but can’t install, upgrade, configure skills.

Only use partial enrollment if Chef Habitat isn’t supported on the node’s operating system and architecture, but you want to install and run a skill like Courier Runner. For example, on macOS nodes or nodes that have ARM CPU architecture.

You can partially enroll nodes with the following methods:

Client-side and server-side enrollment

You can enroll nodes from either the client side or the server side.

Client-side enrollment

With client-side enrollment, you generate credentials and install Chef Habitat on each node. You install skills and agents manually, with a script, or with a cookbook.

You can enroll nodes from the client side with the following methods:

Server-side enrollment

With server-side enrollment, Chef 360 Platform connects to each node and installs Chef Habitat, Chef Node Management, and any skills or agents assigned to a node cohort.

You can enroll nodes from the server side with following methods:

Choose an enrollment method

  • To have Chef 360 Platform connect to nodes and install components, use bulk or single-node enrollment. Confirm that each node meets the server-side connection requirements above.
  • To run enrollment from the node, use self enrollment or cookbook-based enrollment.
  • Use full enrollment when Chef Habitat is supported on the node. Choose partial enrollment only when Chef Habitat isn’t supported on the node’s operating system and architecture, but you need to run a skill such as Courier Runner.

Thank you for your feedback!

×