V
V
Vadim2019-12-23 22:59:06
linux
Vadim, 2019-12-23 22:59:06

How to display all or some attributes of a node on the screen in a chef cookbook?

Hello everyone,
if there is some resource in chef that allows you to print host data on the screen, for example using node? Interested in the version of ubuntu (16... 18) cookbook works on the cat!
Analog setup in Ansible
thanks,
Vadim

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2019-12-23
@notwrite

knife exec?

S
sergey, 2019-12-24
kuzmin @sergueik

more likely
:

{
  "kernel": {
    "name": "Linux",
    "release": "3.13.0-165-generic",
    "version": "#215-Ubuntu SMP Wed Jan 16 11:46:47 UTC 2019",
    "machine": "x86_64",
    "processor": "x86_64",
    "os": "GNU/Linux",
    "modules": {
      "vboxsf": {
        "size": "43798",
        "refcount": "2",
        "version": "4.3.36_Ubuntu (interface 0x00010004)"
      },
      "nfsd": {
        "size": "284396",
        "refcount": "2"
      },
      "auth_rpcgss": {
        "size": "59309",
        "refcount": "1"
      },
...
100500 more system configurations..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question