Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Features of Chef for Junos OS

    Chef for Junos OS provides the following features:

    netdev Cookbook Resources

    The netdev cookbook, developed and maintained by Chef, contains platform-neutral primitives for the following network resources:

    • Physical interfaces—Physical Ethernet interface attributes, such as administrative state, description, speed, duplex mode, and MTU with the netdev_interface resource

    • Layer 2 Ethernet switching services—Logical Ethernet switching interface attributes, such as description, VLAN membership, and port mode (access or trunk) with the netdev_l2_interface resource

    • Link aggregation groups (LAGs)—LAG interface attributes, such as name, member links, Link Aggregation Control Protocol (LACP) mode, and minimum up links required with the netdev_lag resource

    • VLANs—VLAN attributes, such as name, ID, and description with the netdev_vlan resource

    • Configuration at any hierarchy level—Custom configuration with the netdev_group resource

    Note: Juniper Networks OCX1100 switches support only the netdev_interface physical interface resource.

    Native Chef Client

    The Chef client (chef-client) is an agent that runs locally on every managed node in a Chef deployment and performs the configuration defined in recipes. Chef for Junos OS provides a Chef client that runs natively on supported Juniper Networks devices running Junos OS.

    Native Ohai

    Ohai is a tool that collects detailed data about a node, such as hardware properties, memory and processor usage, networking statistics, kernel data, and hostname. It provides this data to the Chef client at the start of every Chef client run. This data is also uploaded to the Chef server at the end of each Chef client run, making it available to searches.

    Chef for Junos OS provides a version of Ohai that runs natively on supported Juniper Networks devices running Junos OS. This version includes a plug-in that extends Ohai to collect Junos OS and platform-specific attributes. For a description of Ohai options and an example of using Ohai, see the Chef website at

    Ruby Interpreter and junos-ez-stdlib

    Chef for Junos OS provides a version of the Ruby Interpreter that is compatible with the Chef client. It also provides junos-ez-stdlib, which contains libraries used by the netdev cookbook providers and by Ohai.

    Modified: 2018-04-26