Starting Chef

Configuring the Chef server

  1. Create key files for the workstation and the Chef client.

  2. Create a Chef configuration file for the Chef client.

For more information about configuring the Chef server, see the Chef server installation and configuration guides.


[IMPORTANT: ]

IMPORTANT:

The Chef server cannot run a lower version than Chef clients.


Configuring a workstation

  1. Create the working path for the workstation.

  2. Create the directory for storing the Chef configuration file for the workstation.

  3. Create a Chef configuration file for the workstation.

  4. Download the key file for the workstation from the Chef server to the directory specified in the workstation configuration file.

  5. Create a Chef resource file.

  6. Upload the resource file to the Chef server.

For more information about configuring a workstation, see the workstation installation and configuration guides.

Configuring a Chef client

  1. Download the key file for the client from the Chef server to the directory specified in the Chef client configuration file.

  2. Download the Chef configuration file from the Chef server to a directory on the Chef client. The directory must be the same as the directory that will be specified by using the --config=filepath option in the third-part-process start command.

  3. Start Chef on the device:

    Step

    Command

    Remarks

    1. Enter system view.

    system-view

    N/A

    2. Start up Chef.

    third-part-process start name chef-client arg --config=filepath --runlist recipe[Directory]

    By default, Chef is shut down.

    Specify the path and name of the Chef configuration file for the --config=filepath option.

    Specify the name of the directory that contains files and subdirectories associated with the resource for the --runlist recipe[Directory] option.