Add a recipe to install the zerotier ohai plugin #647

Merged
raucao merged 8 commits from feature/ohai_zerotier into master 2026-07-13 15:00:48 +00:00
Owner

While working on this I have also simplified attribute whitelists and switched to the new configurations for allowed attributes.

This is running on prometheus-1. See the node file for prometheus-1 for an example of the automatic attributes

Closes #263

While working on this I have also simplified attribute whitelists and switched to the new configurations for allowed attributes. This is running on prometheus-1. See the node file for prometheus-1 for an example of the automatic attributes Closes #263
greg added 4 commits 2026-07-11 15:42:32 +00:00
Set the attributes in a Ruby file under /etc/chef/client.d/ instead of
editing /etc/chef/client.rb
Now uses the new whitelist attribute:
https://docs.chef.io/client/19/cookbooks/attributes/attribute_persistence/

Local chef config also uses the same file. That means there is no longer
a need to use the sanitize script to remove override and default
attributes from nodes.
The attributes are saved as "automatic" attributes and look like this:

  "zerotier": {
    "version": "1.16.2",
    "node_id": "NODEID",
    "networks": {
      "NETWORKID": {
        "network_name": "networkname",
        "mac": "ff:ff:ff:ff:ff:ff",
        "status": "OK",
        "type": "PRIVATE",
        "interface": "abcdefg",
        "addresses": [
          "10.1.1.255/24"
        ]
      }
    }
  }

Refs #263
It now contains the attributes from the ohai plugin
greg requested review from raucao 2026-07-11 15:42:41 +00:00
greg added the enhancement label 2026-07-11 15:43:16 +00:00
greg added 1 commit 2026-07-11 18:10:16 +00:00
This is no longer needed with the properly set allowed attributes
greg added 3 commits 2026-07-13 14:59:41 +00:00
Both old and new styles. We define our allow list in the client.d file
It is not needed
raucao added the kredits-2 label 2026-07-13 15:00:29 +00:00
raucao approved these changes 2026-07-13 15:00:35 +00:00
raucao merged commit 626662a7ff into master 2026-07-13 15:00:48 +00:00
raucao deleted branch feature/ohai_zerotier 2026-07-13 15:00:48 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#647